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

Jamie Brown Jamie.Brown at mpec.co.uk
Tue May 31 10:42:34 UTC 2016


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



More information about the lxc-users mailing list