I have issues, sometimes the ZFS mounts for some containers are just seem to be disappeared, others are still there, all containers are working without problems and I found, that a similar issue was discussed already in 2016 here: https://lists.linuxcontainers.org/pipermail/lxc-users/2016-May/011742.html
I determined the same effect also several times and usually I just restarted the ‘affected’ containers. But now I just want to find a better solution. I did try zfs mount -a
without any success.
I describe my findings here (with two exactly similar) containers
webhosting2
(mounts are ok)
webhosting3
(nothing seems to be mounted)
lxc list webhosting
+-------------+---------+----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-------------+---------+----------------------+------+------------+-----------+
| webhosting2 | RUNNING | 10.205.65.77 (eth0) | | PERSISTENT | 2 |
+-------------+---------+----------------------+------+------------+-----------+
| webhosting3 | RUNNING | 10.205.65.212 (eth0) | | PERSISTENT | 0 |
+-------------+---------+----------------------+------+------------+-----------+
As said both are functional working. I can login to both. zfs list
shows the mount points:
zfs list | grep containers/webhosting
lxd/containers/webhosting2 14.6G 1.00T 14.4G /var/lib/lxd/storage-pools/lxd/containers/webhosting2
lxd/containers/webhosting3 1.33G 1.00T 1.61G /var/lib/lxd/storage-pools/lxd/containers/webhosting3
But mount
does only list the mountpoint for webhosting2
:
mount | grep webhosting
lxd/containers/webhosting2 on /var/lib/lxd/storage-pools/lxd/containers/webhosting2 type zfs
zfs mountpoints are good:
zfs get mountpoint lxd/containers/webhosting2 lxd/containers/webhosting3
NAME PROPERTY VALUE SOURCE
lxd/containers/webhosting2 mountpoint /var/lib/lxd/storage-pools/lxd/containers/webhosting2 local
lxd/containers/webhosting3 mountpoint /var/lib/lxd/storage-pools/lxd/containers/webhosting3 local
Please give me some hint, what else I can try. I need a solution to get the ZFS mountpoint back without rebooting the container. Please aks, what else I should provide to find a solution. I think I am not the only one who suffer on this problem.
lxc --version
2.21
@stgraber: I really appreciate your diligence, hard and good work - maybe you can give me a hint?
But this zfs mount -a does not help as you told 2 years ago.