我需要将我的 Ubuntu 从 18.04 升级,为此,我需要将 LXC/LXD 升级到 snap 版本。因此,我运行了:lxd.migrate 并得到了以下输出:
=== Destination server
LXD version: 4.0.9
LXD PID: 7439
Resources:
Containers: 1
Images: 0
Networks: 1
Storage pools: 1
但是,我的容器和 ZFS 池挂载点已经消失了:
NAME USED AVAIL REFER MOUNTPOINT
lxd 10.9G 17.9G 19K none
lxd/containers 10.9G 17.9G 19K none
lxd/containers/cms 10.9G 17.9G 5.91G none
lxd/custom 24K 17.9G 24K none
lxd/deleted 120K 17.9G 24K none
lxd/deleted/containers 24K 17.9G 24K none
lxd/deleted/custom 24K 17.9G 24K none
lxd/deleted/images 24K 17.9G 24K none
lxd/deleted/virtual-machines 24K 17.9G 24K none
lxd/images 24K 17.9G 24K none
迁移后的容器从 移至/var/lib/lxd/storage-pools/lxd/containers/cms
。/var/snap/lxd/common/lxd/containers/cms
而 zfs 池从/var/lib/lxd/disks/lxd.img
移至/var/snap/lxd/common/lxd/disks/lxd.img
。
您能帮我运行设置新挂载点所需的命令吗?