Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-07 Thread Serge E. Hallyn
Quoting Trent W. Buck (t...@cybersource.com.au): Serge E. Hallyn serge.hal...@canonical.com writes: Quoting Trent W. Buck (t...@cybersource.com.au): Unfortunately, lxc 0.7's utmp detect requires /var/run to NOT be a tmpfs. The shipped lxc-ubuntu script works around this by deleting the

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Serge E. Hallyn
Quoting Trent W. Buck (t...@cybersource.com.au): Unfortunately, lxc 0.7's utmp detect requires /var/run to NOT be a tmpfs. The shipped lxc-ubuntu script works around this by deleting the ifstate file and not mounting a tmpfs on /var/run, but to me that is simply waiting for something else to

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Brian K. White
On 12/6/2010 2:42 AM, Trent W. Buck wrote: This post describes my attempts to get clean shutdown of Ubuntu 10.04 containers. The goal here is that a shutdown -h now of the dom0 should not result in a potentially inconsistent domU postgres database, cf. a naive lxc-stop. As at Ubuntu 10.04 with

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Michael H. Warfield
On Mon, 2010-12-06 at 12:38 -0500, Brian K. White wrote: On 12/6/2010 2:42 AM, Trent W. Buck wrote: This post describes my attempts to get clean shutdown of Ubuntu 10.04 containers. The goal here is that a shutdown -h now of the dom0 should not result in a potentially inconsistent domU

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Brian K. White
On 12/6/2010 3:34 PM, Michael H. Warfield wrote: On Mon, 2010-12-06 at 12:38 -0500, Brian K. White wrote: On 12/6/2010 2:42 AM, Trent W. Buck wrote: This post describes my attempts to get clean shutdown of Ubuntu 10.04 containers. The goal here is that a shutdown -h now of the dom0 should

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Trent W. Buck
Serge E. Hallyn serge.hal...@canonical.com writes: Quoting Trent W. Buck (t...@cybersource.com.au): Unfortunately, lxc 0.7's utmp detect requires /var/run to NOT be a tmpfs. The shipped lxc-ubuntu script works around this by deleting the ifstate file and not mounting a tmpfs on /var/run, but

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Trent W. Buck
Brian K. White br...@aljex.com writes: On 12/6/2010 2:42 AM, Trent W. Buck wrote: I use the latter in my customized /etc/init.d/lxc stop rule. Note that the lxc-wait's SHOULD be parallelized, but this is not possible as at lxc 0.7.2 :-( Sure it is. Sorry, I meant lxc-wait(8) cannot be

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Trent W. Buck
Michael H. Warfield m...@wittsend.com writes: Yeah, that's something where I wish we had an onboot and/or disabled config file like OpenVZ does. So you can have some configured but that don't autoboot when you boot the system. As that stands, you would have to rename or remove the config

Re: [Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-06 Thread Trent W. Buck
Michael H. Warfield m...@wittsend.com writes: Ubuntu 10.04 simply REQUIRES /var/run to be a tmpfs; this is hard-coded into mountall's (upstart's) /lib/init/fstab. Are you absolutely SURE about this? I was under the impression this was under control of the /etc/default/rcS file and the

[Lxc-users] On clean shutdown of Ubuntu 10.04 containers

2010-12-05 Thread Trent W. Buck
This post describes my attempts to get clean shutdown of Ubuntu 10.04 containers. The goal here is that a shutdown -h now of the dom0 should not result in a potentially inconsistent domU postgres database, cf. a naive lxc-stop. As at Ubuntu 10.04 with lxc 0.7.2, lxc-start detects that a