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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Dwight Schauer (dschauer@xxxxxxxxx):
> On Mon, Jan 4, 2010 at 7:24 PM, Serge E. Hallyn <serue@xxxxxxxxxx> 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.

By 'they are empty' you mean no tasks listed in their tasks file?
What files are you trying to rm -f?  So long as there are no further
cgroup subdirectories, just rmdir each directory - the cgroupfs files
can't be deleted by hand, it's true.

-serge
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux