Volume movement from lvm to zfs fails

Alexa023

Member
May 23, 2020
3
1
8
Hi all,
i am having problems moving the rootfs of a lxc container from the existing lvm to a zfs that exists on the hypervisor and works in proxmox.
When I start the process via "move volume" it aborts after a short time with the message

Ashampoo_Snap_2023.01.06_20h38m09s_001_.png

"stopped: zfs error: cannot mount 'rpool/base1/subvol-125-disk-1': no mountpoint set".

Ashampoo_Snap_2023.01.06_20h38m27s_002_.png

I have also tried to create "rpool/base1/subvol-125-disk-0" manually, with and without mountpoint set.
Either way, Proxmox does not create a subvolume and even if it already exists, Proxmox refuses to use it.

The way via backup & restore generates the same error message.

What is the correct process to move the rootfs of an lxc from LVM to ZFS?
 
Hi,
"stopped: zfs error: cannot mount 'rpool/base1/subvol-125-disk-1': no mountpoint set".
Do you have any special configuration for rpool/base1? What is the output for:
Code:
pvesm alloc ZFS_ep1 125 subvol-125-testing 1G --format subvol
zfs get mountpoint ZFS_ep1/subvol-125-testing
zfs destroy ZFS_ep1/subvol-125-testing

View attachment 45304

I have also tried to create "rpool/base1/subvol-125-disk-0" manually, with and without mountpoint set.
Either way, Proxmox does not create a subvolume and even if it already exists, Proxmox refuses to use it.
Note that Proxmox VE will always create a new subvol for the move operation. It will not overwrite an existing one, because it cannot know that you specifically created the volume for the move operation.

Some more information might be helpful:
Code:
pveversion -v
zfs get all rpool/base1
pct config 125