[lxc-users] LXD and ZFS disappeared container mount points

Stéphane Graber stgraber at ubuntu.com
Tue May 31 15:27:55 UTC 2016


Run: zfs mount -a

That should fix it.

It looks like things occasionaly unmount themselves with zfs and we're
not quite sure why.

I have sent a patch upstream which will make it to LXD 2.0.3 and just
does a "zfs mount" when needed...

On Tue, May 31, 2016 at 10:42:34AM +0000, Jamie Brown wrote:
> Jut experienced the same problem today;
> 
> Ubuntu 16.04 (4.4.0-22-generic)
> LXD 2.0.0
> 
> zfs list
> rpool/containers/cassandra … /var/lib/lxd/containers/cassandra.zfs
> 
> df -h
> Missing
> 
> Container starup error;
> lxc 20160531103027.198 ERROR    lxc_conf - conf.c:mount_rootfs:807 - No such file or directory - failed to get real path for '/var/lib/lxd/containers/cassandra/rootfs'
> 
> On 30/05/2016, 15:15, "lxc-users on behalf of Tamas Papp" <lxc-users-bounces at lists.linuxcontainers.org on behalf of tompos at martos.bme.hu> wrote:
> 
> >
> >
> >On 05/30/2016 04:11 PM, tapczan wrote:
> >> Hi
> >>
> >> When I create LXD container on ZFS backend I see:
> >>
> >> # df
> >> lxd/containers/c1
> >>        30191104   190080  30001024   1% /var/lib/lxd/containers/c1.zfs
> >>
> >> # mount
> >> lxd/containers/c1 on /var/lib/lxd/containers/c1.zfs type zfs
> >> (rw,relatime,xattr,noacl)
> >>
> >> # mountpoint /var/lib/lxd/containers/c1.zfs
> >> /var/lib/lxd/containers/c1.zfs is a mountpoint
> >>
> >> # zfs list
> >> lxd/containers/c1
> >>                2.39M  28.6G   186M  /var/lib/lxd/containers/c1.zfs
> >>
> >> Everything ok.
> >>
> >> But after some time this mount point disappears from df, mount output:
> >>
> >> # mountpoint /var/lib/lxd/containers/c1.zfs
> >> /var/lib/lxd/containers/c1.zfs is not a mountpoint
> >>
> >> What is interesting container is still working and 'zfs list' is
> >> showing that '/var/lib/lxd/containers/c1.zfs' is mounted.
> >> I see this behaviour on multiple hosts.
> >>
> >> Has anybody some clue why is it happening?
> >>
> >
> >I also experience this but still don't have a reproducer.
> >It somehow must be related to stopping instanced.
> >
> >
> >tamas
> >_______________________________________________
> >lxc-users mailing list
> >lxc-users at lists.linuxcontainers.org
> >http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160531/7a1bb8ee/attachment.sig>


More information about the lxc-users mailing list