Migrate Container to ZFS error

Erwin Müller

Active Member
Nov 4, 2018
4
0
41
40
When I try to migrate a Container to a ZFS Pool filesystem I get this error:
TASK ERROR: cannot open directory //zfsdata/vz: No such file or directory

But I am able to migrate a VM (including conversion to RAW) to the same zfs pool filesystem.

storage.cfg
...
zfspool: zfsdata_vz
pool zfsdata/vz
blocksize 4K
content images,rootdir
sparse 1
...

I thought rootdir was for containers.
 
KVM-guests (VM) use zvols and thus have a different path.
containers (LXC) use a zfs-dataset which is mounted under the pools mountpoint.

Have you set a different mountpoint on your pool?
In that case - currently PVE does not support this - we'll try to integrate it - although there is no time of arrival yet:
https://bugzilla.proxmox.com/show_bug.cgi?id=2085
(please drop a note there if you want that feature)

In the meantime - try to not set a mountpoint for the zfs-pool if possible.
Hope this helps