There are several topics in this forum about this issue but I can`t be able migrate VM from zfs node to lvm node.
I`ve tried offline, online, move VM`s disk from zfs to local(dir) with no success.
This is my storage.
I`ve read in this forum there can be migrate VM from zfs to LVM but I can`t do it.
VM is in raw, because lvm don`t like qcow2.
VM is online in this case.
I`ve tried offline, online, move VM`s disk from zfs to local(dir) with no success.
This is my storage.
Local-lvm is on pve2, pve1 has zfs FS.root@pve1:~# pvesm status
Name Type Status Total Used Available %
NAS cifs active 3841408272 865708736 2975699536 22.54%
local dir active 3739953920 63449984 3676503936 1.70%
local-lvm lvmthin disabled 0 0 0 N/A
zfs-local zfspool active 3707678684 31174720 3676503964 0.84%
root@pve1:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 3.6T 0 part
sdb 8:16 0 3.6T 0 disk
├─sdb1 8:17 0 1007K 0 part
├─sdb2 8:18 0 512M 0 part
└─sdb3 8:19 0 3.6T 0 part
sr0 11:0 1 1024M 0 rom
zd0 230:0 0 500G 0 disk
├─zd0p1 230:1 0 549M 0 part
└─zd0p2 230:2 0 499.5G 0 part
I`ve read in this forum there can be migrate VM from zfs to LVM but I can`t do it.
VM is in raw, because lvm don`t like qcow2.
VM is online in this case.
VM is offline in this case.root@pve1:~# qm migrate 100 pve2 --targetstorage local-lvm --with-local-disks --online
2023-05-11 21:52:05 starting migration of VM 100 to node 'pve2' (172.16.0.253)
2023-05-11 21:52:05 found local disk 'local:100/vm-100-disk-0.raw' (in current VM config)
2023-05-11 21:52:05 found local disk 'zfs-local:vm-100-disk-0' (via storage)
2023-05-11 21:52:05 copying local disk images
2023-05-11 21:52:05 ERROR: storage migration for 'zfs-local:vm-100-disk-0' to storage 'local-lvm' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
2023-05-11 21:52:05 aborting phase 1 - cleanup resources
2023-05-11 21:52:05 ERROR: migration aborted (duration 00:00:01): storage migration for 'zfs-local:vm-100-disk-0' to storage 'local-lvm' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
Ok I can use classic backup/restore but I`m curious...there is a possibility to migrate VM online/offline?root@pve1:~# qm migrate 100 pve2 --targetstorage local-lvm --with-local-disks --online
VM isn't running. Doing offline migration instead.
2023-05-11 20:01:55 starting migration of VM 100 to node 'pve2' (172.16.0.253)
2023-05-11 20:01:55 found local disk 'local:100/vm-100-disk-0.raw' (in current VM config)
2023-05-11 20:01:55 found local disk 'zfs-local:vm-100-disk-0' (via storage)
2023-05-11 20:01:55 copying local disk images
2023-05-11 20:01:56 Logical volume "vm-100-disk-0" created.
2023-05-11 21:42:33 131072000+0 records in
2023-05-11 21:42:33 131072000+0 records out
2023-05-11 21:42:33 536870912000 bytes (537 GB, 500 GiB) copied, 6037 s, 88.9 MB/s
2023-05-11 21:42:35 708+53954029 records in
2023-05-11 21:42:35 708+53954029 records out
2023-05-11 21:42:35 536870912000 bytes (537 GB, 500 GiB) copied, 6037.98 s, 88.9 MB/s
2023-05-11 21:42:35 successfully imported 'local-lvm:vm-100-disk-0'
2023-05-11 21:42:35 volume 'local:100/vm-100-disk-0.raw' is 'local-lvm:vm-100-disk-0' on the target
2023-05-11 21:42:35 ERROR: storage migration for 'zfs-local:vm-100-disk-0' to storage 'local-lvm' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
2023-05-11 21:42:35 aborting phase 1 - cleanup resources
2023-05-11 21:42:36 ERROR: migration aborted (duration 01:40:42): storage migration for 'zfs-local:vm-100-disk-0' to storage 'local-lvm' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
migration aborted