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

Brian K. White brian at aljex.com
Mon Dec 6 17:52:19 UTC 2010


On 12/6/2010 3:01 AM, Trent W. Buck wrote:
> Trent W. Buck writes:
>
>> 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.


In my previous note about parallel shutdowns, that same system also 
works for this too. User may ssh in to the container as root and issue 
"shutdown-r now" or "shutdown -h now" and it works as expected from 
their point of view. No cron job on the host. In lxc 0.6.5 you would 
have a watchdog process per container that uses inotify to be alerted 
the instant the containers runlevel file and/or cgroup tasks list file 
changed. I had that as just a shell function right in the init script. 
In 0.7.2 this is handled by lxc internally and is rather more reliable, 
since it was possible to break or kill the separate watchdog processes.

I think you are working harder than necessary for some things although 
it appears you have a legitimate problem with the upstart and tmpfs 
issue. Whether the fault is lxc's or ubuntu's in that case I can't say 
because ideally neither should have such a hard coded assumption.

-- 
bkw




More information about the lxc-users mailing list