[lxc-users] lxc-destroy failure while deleting rootfs for container

Shivraj Ghatkar shivraj2084 at gmail.com
Fri Nov 21 06:51:53 UTC 2014


Hi Serge

Thanks for looking into this!

One of the things that I do is,
mount --make-unbindable /shared

Also, as I mentioned in my original email, I am making the /shared rslave
to ensure that mount points from previous containers dont get blown away
when the second container is created.

I am attaching the config and the fstab file. Any help would be appreciated.

Thanks,

-Shivraj

On Thu Nov 20 2014 at 9:26:12 PM Serge Hallyn <serge.hallyn at ubuntu.com>
wrote:

> Quoting Shivraj Ghatkar (shivraj2084 at gmail.com):
> > Hi Serge
> >
> > Please find the attached files that you requested.
>
> Thanks.  Those look fine.  So I tried to reproduce it here just now, by
> doing
>
> sudo lxc-create -n cap_a -t download -- -d ubuntu -r trusty -a amd64
> sudo lxc-create -n cap_b -t download -- -d ubuntu -r trusty -a amd64
> sudo mkdir /shared
> sudo mount --bind /shared /shared
> sudo mount --make-rshared /shared
> sudo mkdir /shared/cap_a /shared/cap_b
> echo "lxc.mount.entry = /shared/cap_a shared none bind,create=dir 0 0" >>
> /var/lib/lxc/cap_a/config
> echo "lxc.mount.entry = /shared/cap_b shared none bind,create=dir 0 0" >>
> /var/lib/lxc/cap_b/config
>
> Starting, stopping and deleteing the containers doesn't seem to be
> wreaking any havoc, though.
>
> Could you show your container configurations?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141121/a0ccdad9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cap_a_config
Type: application/octet-stream
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141121/a0ccdad9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cap_a_fstab
Type: application/octet-stream
Size: 209 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141121/a0ccdad9/attachment-0001.obj>


More information about the lxc-users mailing list