All of lore.kernel.org
 help / color / mirror / Atom feed
* purpose of /var/lib/xend/state
@ 2007-12-07 15:48 John Levon
  2007-12-07 15:51 ` John Levon
  2007-12-07 15:56 ` Daniel P. Berrange
  0 siblings, 2 replies; 3+ messages in thread
From: John Levon @ 2007-12-07 15:48 UTC (permalink / raw)
  To: xen-devel


What are these XML files actually for? I don't understand why this
information needs to persist - can somebody explain the reason?

When these files become corrupted for whatever reason, xend fails to
start altogether. At the very least, this needs to be made more robust
(I may work on a patch for this once I understand this stuff better).

regards,
john

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

* Re: purpose of /var/lib/xend/state
  2007-12-07 15:48 purpose of /var/lib/xend/state John Levon
@ 2007-12-07 15:51 ` John Levon
  2007-12-07 15:56 ` Daniel P. Berrange
  1 sibling, 0 replies; 3+ messages in thread
From: John Levon @ 2007-12-07 15:51 UTC (permalink / raw)
  To: xen-devel

On Fri, Dec 07, 2007 at 03:48:48PM +0000, John Levon wrote:

> What are these XML files actually for? I don't understand why this
> information needs to persist - can somebody explain the reason?

Hrm, it seems like at least the pif files are for some Linux
configuration thing via the Xen API. Is there really nowhere on Linux
itself to store this stuff?

I'm looking at host.xml and it's got me worried - what happens if I
change the hostname?

What happens if I modify storage stuff outside of the xen api? Is xend
supposed to cope?

Storing info in two places is rarely a good idea :/

regards
john

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

* Re: purpose of /var/lib/xend/state
  2007-12-07 15:48 purpose of /var/lib/xend/state John Levon
  2007-12-07 15:51 ` John Levon
@ 2007-12-07 15:56 ` Daniel P. Berrange
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrange @ 2007-12-07 15:56 UTC (permalink / raw)
  To: John Levon; +Cc: xen-devel

On Fri, Dec 07, 2007 at 03:48:48PM +0000, John Levon wrote:
> 
> What are these XML files actually for? I don't understand why this
> information needs to persist - can somebody explain the reason?
> 
> When these files become corrupted for whatever reason, xend fails to
> start altogether. At the very least, this needs to be made more robust
> (I may work on a patch for this once I understand this stuff better).

Its a serious pain wrt to networking. At startup XenD scans all active
network interfaces and saves a record of them. Next-time you start XenD
it will re-create any that it previously saw.

This is exceedingly bad for interfaces/bridges managed by the distro
init scripts. eg, if I had a bridge configured and then remove its
config, XenD will now happily re-create this bridge itself.  I've got
a patch pending to make XenD leave any externally managed PIFs alone
only touching one it created itself via XenAPI

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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

end of thread, other threads:[~2007-12-07 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-07 15:48 purpose of /var/lib/xend/state John Levon
2007-12-07 15:51 ` John Levon
2007-12-07 15:56 ` Daniel P. Berrange

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.