All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] virDomainDump() API (equivalent to xm dump) in libvirt?
@ 2006-11-03 15:38 Lon Hohberger
  2006-11-03 15:53 ` [Cluster-devel] Re: [Libvir] " Daniel Veillard
  0 siblings, 1 reply; 7+ messages in thread
From: Lon Hohberger @ 2006-11-03 15:38 UTC (permalink / raw)
  To: cluster-devel.redhat.com

There's already one for saving live domains:

int virDomainSave(virDomainPtr domain, const char *to);

Why not use a similar API for a function which does the equivalent of
'xm dump' ?

int virDomainDump(virDomainPtr domain, const char *to, int flags);

Create a kernel dump of the domain in the path contained in *to.  This
API must fail if the domain is not in a panicked/crashed state.

If you set the lowest-bit in flags, however, you can override this
behavior: if the lowest bit is set, the domain will first be crashed
(similar to SysRq-C) - then a dump will be taken from that.


Why?

In the event that a cluster node needs to fence a Xen domain (or other
management tools, to be sure), we could use the API to generate a core
of the domain (if it panicked) to help debug the problem prior to
restarting the domain.

The 'crash-before-dump' bit is just something someone might want to use
at some point; I don't think it is absolutely necessary - but it doesn't
hurt anything either.

-- Lon




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-11-22 17:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 15:38 [Cluster-devel] virDomainDump() API (equivalent to xm dump) in libvirt? Lon Hohberger
2006-11-03 15:53 ` [Cluster-devel] Re: [Libvir] " Daniel Veillard
2006-11-03 16:36   ` Lon Hohberger
2006-11-03 16:40     ` Lon Hohberger
2006-11-03 16:56     ` Daniel Veillard
2006-11-16 15:36       ` Daniel Veillard
2006-11-22 17:01         ` Daniel Veillard

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.