[lxc-users] Containers not shutting down

Mark Constable markc at renta.net
Sat Mar 21 01:10:08 UTC 2015


On 21/03/15 01:27, Serge Hallyn wrote:
>> Since the past 2 days of updates I notice my lxc and lxd containers just hang
>> when trying to shut them down, consequently rebooting my laptop requires a
>> hard power button reset (so far btrfs on a SSD has survived). Also my main
>> system privileged container does not provide any output for free and top and
>> even an apt-get upgrade just hangs (hence I can't get systemd 219-4ubuntu7).
>
> Do any of the tasks in the container stick around after shutdown?

I'm not sure how to determine that because the container is pretty well unusable
at this point.

root at v1 ~ shutdown -h now
Failed to start poweroff.target: Connection timed out

Broadcast message from root at ns on pts/4 (Sat 2015-03-21 10:55:28 AEST):

The system is going down for power-off NOW!

root at v1 ~ ps aux
[hangs]

 From the host I get this but I'm not sure how to analyze any of the info here...

root at mbox ~ ll /sys/fs/cgroup/devices/lxc/v1-1/system.slice/
total 0
drwxr-xr-x 2 root root 0 Mar 20 22:47 -.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 console-getty.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 courier-authdaemon.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 courier-imap-ssl.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 courier-imap.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 courier-mta-ssl.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 courier-mta.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 cron.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-hugepages.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-lxc-console.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-lxc-tty1.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-lxc-tty2.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-lxc-tty3.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-lxc-tty4.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 dev-mqueue.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 getty-static.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 ifup-wait-all-auto.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 lvm2.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 memcached.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 mysql.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 networking.service/
drwxr-xr-x 2 root root 0 Mar 20 22:51 nginx.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 nscd.service/
drwxr-xr-x 2 root root 0 Mar 20 22:49 ondemand.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 php5-fpm.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 proc-cpuinfo.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 proc-meminfo.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 proc-stat.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 proc-sysrq\x2dtrigger.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 proc-uptime.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 rc-local.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 resolvconf.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 rsyslog.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 ssh.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 sys-devices-virtual-net.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 sys-fs-fuse-connections.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 sys-kernel-debug.mount/
drwxr-xr-x 2 root root 0 Mar 20 22:47 sysstat.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 system-container\x2dgetty.slice/
drwxr-xr-x 2 root root 0 Mar 20 22:47 system-getty.slice/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-journal-flush.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-journald.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-random-seed.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-remount-fs.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-tmpfiles-setup.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-update-utmp.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 systemd-user-sessions.service/
drwxr-xr-x 2 root root 0 Mar 20 22:47 udev-finish.service/
-rw-r--r-- 1 root root 0 Mar 20 22:47 cgroup.clone_children
-rw-r--r-- 1 root root 0 Mar 20 22:47 cgroup.procs
--w------- 1 root root 0 Mar 20 22:47 devices.allow
--w------- 1 root root 0 Mar 20 22:47 devices.deny
-r--r--r-- 1 root root 0 Mar 20 22:47 devices.list
-rw-r--r-- 1 root root 0 Mar 20 22:47 notify_on_release
-rw-r--r-- 1 root root 0 Mar 20 22:47 tasks



More information about the lxc-users mailing list