[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-19 Thread Balbir Singh
On Mon, Jan 4, 2010 at 6:40 AM, Dwight Schauer dscha...@gmail.com wrote: I'm starting to get is quite regularly, but not every time: lxc-start: Device or resource busy - failed to remove previous cgroup '/cgroup/CONTAINER_NAME' Can you please paste the output of cat /proc/cgroups and cat

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Dwight Schauer
On Mon, Jan 4, 2010 at 4:40 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: Did you check the file /cgroup/name/tasks is empty ? it's probably a dumb question, but just in case :) Ok, since this is easy enough to reproduce, I got it into this state again. $ cat /cgroup/arch64-1/tasks $ it

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Balbir Singh
munmap(0x7feca822, 4096)            = 0 access(/cgroup/arch64-1, F_OK)        = 0 rmdir(/cgroup/arch64-1)               = -1 EBUSY (Device or resource busy) write(2, lxc-start: ..., 11lxc-start: )          = 11 write(2, Device or resource busy - failed ..., 77Device or resource busy -

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Serge E. Hallyn
Quoting Dwight Schauer (dscha...@gmail.com): On Mon, Jan 4, 2010 at 4:40 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: Did you check the file /cgroup/name/tasks is empty ? it's probably a dumb question, but just in case :) Ok, since this is easy enough to reproduce, I got it into this

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Dwight Schauer
On Mon, Jan 4, 2010 at 12:02 PM, Serge E. Hallyn se...@us.ibm.com wrote: Quoting Dwight Schauer (dscha...@gmail.com): On Mon, Jan 4, 2010 at 4:40 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: Did you check the file /cgroup/name/tasks is empty ? it's probably a dumb question, but just in

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Serge E. Hallyn
Quoting Dwight Schauer (dscha...@gmail.com): On Mon, Jan 4, 2010 at 12:02 PM, Serge E. Hallyn se...@us.ibm.com wrote: Quoting Dwight Schauer (dscha...@gmail.com): On Mon, Jan 4, 2010 at 4:40 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: Did you check the file /cgroup/name/tasks is

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Dwight Schauer
On Mon, Jan 4, 2010 at 7:24 PM, Serge E. Hallyn se...@us.ibm.com wrote: tasks is empty, but there are subdirectories - 102, 26533, etc. This looks like the dirtywork of the ns cgroup.  If each of those subdirs is also empty then you can rmdir them, then rmdir /cgroup/arch64-1. Or, use a

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-04 Thread Serge E. Hallyn
Quoting Dwight Schauer (dscha...@gmail.com): On Mon, Jan 4, 2010 at 7:24 PM, Serge E. Hallyn se...@us.ibm.com wrote: tasks is empty, but there are subdirectories - 102, 26533, etc. This looks like the dirtywork of the ns cgroup.  If each of those subdirs is also empty then you can rmdir

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-03 Thread Dwight Schauer
On Sun, Jan 3, 2010 at 7:22 PM, Balbir Singh bsinghar...@gmail.com wrote: Can you please paste the output of cat /proc/cgroups and cat /proc/mounts Sure. This should not really happen, /proc/cgroups will help us figure out what is going on. As an alternative, if you can compile the debug

[Devel] Re: lxc-start: Device or resource busy - failed to remove previous cgroup

2010-01-03 Thread Dwight Schauer
# strace lxc-start -n arch64-1 /root/boot-init.sh execve(/usr/bin/lxc-start, [lxc-start, -n, arch64-1, /root/boot-init.sh], [/* 21 vars */]) = 0 brk(0) = 0x1bf9000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feca8223000