From: Anthony Wright <anthony@overnetdata.com>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Domains not being destroyed properly
Date: Tue, 21 Jun 2011 17:04:12 +0100 [thread overview]
Message-ID: <4E00C0FC.1060305@overnetdata.com> (raw)
In-Reply-To: <1308671090.6920.89.camel@zakaz.uk.xensource.com>
On 21/06/2011 16:44, Ian Campbell wrote:
> On Tue, 2011-06-21 at 15:52 +0100, Anthony Wright wrote:
>> Ok, to be clear what I did....
>> xl create -e domain-details
>> xl shutdown <domain>
>> (End up with a domain called (null) in state --ps-d according to xl list
>> kill the qemu-dm process associated with the domain
>> the domain goes away
>>
>> note that I didn't need to do an 'xl destroy' the kill of qemu-dm was
>> sufficient
>>
>> If I do....
>>
>> xl create -e domain-details
>> xl destroy <domain>
>> the domain goes away
> The difference is that shutdown is only a request to the guest to shut
> itself down, while destroy is the big hammer which kills the guest with
> prejudice and tidies up any detritus (or at least that is the intention
> IIRC).
>
> I suspect that you will probably find that only the hypervisor parts of
> the domain are being cleaned up by killing qemu -- e.g. the xenstore
> entries and some other stuff (e.g. libxl user data) are not being
> cleaned up.
>
> If you do:
> xl create -e domain-details
> xl shutdown <domain>
> xl destroy <domain>
>
> Does everything get cleaned up?
If I do:
xl create -e domain-details
xl shutdown <domain>
[ Wait for the domain to go to state --ps-d ]
xl destroy <domain>
The 'xl destroy' has no effect. The only thing that has an effect is
killing the qemu-dm processes which destroys the domain even without
running 'xl destroy'.
> If you don't want to run an xl daemon for each domain (although I agree
> with IanJ that they should be pretty cheap) I think a new xl sub-command
> which caused it to behave as a single daemon reaping domains would be a
> fine thing to have in our toolkit.
That would be really helpful, something that would inform me when a
domain died supplying it's domain id & domain name - the name is really
important because that's my reference, and I can't convert from an
domain id to a domain name after the domain has died. I used to have a
script that sat in /etc/xen/scripts/domain-destroyed which was called on
domain death with the dom-id and dom-name as arguments.
Anthony
next prev parent reply other threads:[~2011-06-21 16:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 11:29 Domains not being destroyed properly Anthony Wright
2011-06-17 18:12 ` Nathan March
2011-06-21 11:51 ` Ian Campbell
2011-06-21 12:57 ` Anthony Wright
2011-06-21 13:13 ` Ian Jackson
2011-06-21 13:39 ` Konrad Rzeszutek Wilk
2011-06-21 14:52 ` Anthony Wright
2011-06-21 15:44 ` Ian Campbell
2011-06-21 16:04 ` Anthony Wright [this message]
2011-06-22 7:56 ` Ian Campbell
2011-06-24 12:54 ` Anthony Wright
2011-06-24 13:01 ` Tim Deegan
2011-06-24 13:36 ` Anthony Wright
2011-06-24 14:21 ` Ian Campbell
2011-06-24 13:45 ` Ian Campbell
2011-06-24 14:15 ` Anthony Wright
2011-06-24 14:24 ` Ian Campbell
2011-06-21 16:26 ` Ian Jackson
2011-06-21 16:42 ` Ian Campbell
2011-06-21 17:01 ` Keir Fraser
2011-06-21 19:35 ` Tim Deegan
2011-06-22 8:02 ` Ian Campbell
2011-06-21 13:27 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E00C0FC.1060305@overnetdata.com \
--to=anthony@overnetdata.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.