lxc-start: Device or resource busy - failed to remove previous cgroup

Dwight Schauer dschauer at gmail.com
Mon Jan 4 18:15:03 PST 2010


On Mon, Jan 4, 2010 at 7:24 PM, Serge E. Hallyn <serue at 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 release agent, which is what I do.
>
> cat << EOF > /bin/remove_dead_cgroup.sh
> #!/bin/sh
> echo "Removing dead cgroup .$*." >> /var/log/cgroup
> rmdir /cgroup/$* >> /var/log/cgroup 2>&1
> echo "return value was $?" >> /var/log/cgroup
> EOF
> echo /bin/remove_dead_cgroup.sh > /cgroup/release_agent
> echo 1 > /cgroup/notify_on_release
>

well, In my case those numbered subdirectories are empty, and I can't
remove the files in them as root even with -f.

I'll try with a newer kernel.


More information about the Containers mailing list