VM Migration from ZFS to LVM thin

shofman

New Member
Aug 23, 2024
3
0
1
Hello,
I'm quite new on Proxmox and I'm playing with it on a lab.
2 hosts with Proxmox 8.2.4

1 host has ZFS pool, and the other one has an LVM thin storage on RAID Hardware.
So I try to move a VM (Windows 11, without snapshot) from one host (pve1) to another (pvetest).

I have this error message :
2024-08-23 18:27:07 starting migration of VM 102 to node 'pvetest' (192.168.1.23)
2024-08-23 18:27:07 found local disk 'DATA:vm-102-disk-0' (attached)
2024-08-23 18:27:07 found local disk 'DATA:vm-102-disk-1' (attached)
2024-08-23 18:27:07 found generated disk 'DATA:vm-102-disk-2' (in current VM config)
2024-08-23 18:27:07 copying local disk images
2024-08-23 18:27:07 ERROR: storage migration for 'DATA:vm-102-disk-2' to storage 'RAID' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
2024-08-23 18:27:07 aborting phase 1 - cleanup resources
2024-08-23 18:27:07 ERROR: migration aborted (duration 00:00:00): storage migration for 'DATA:vm-102-disk-2' to storage 'RAID' failed - cannot migrate from storage type 'zfspool' to 'lvmthin'
TASK ERROR: migration aborted

root@pve1:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,backup,vztmpl

zfspool: local-zfs
pool rpool/data
content images,rootdir
nodes pve1
sparse 1

dir: ISO
path /DATA/ISO
content iso,vztmpl
nodes pve1
prune-backups keep-all=1
shared 0

zfspool: DATA
pool DATA
blocksize 64k
content rootdir,images
mountpoint /DATA
nodes pve1
sparse 1

lvmthin: RAID
thinpool RAID
vgname RAID
content rootdir,images
nodes pvetest



Can someone explain what I'm doing wrong ?
 

Attachments

  • Migration.jpg
    Migration.jpg
    32.9 KB · Views: 2
  • VM.jpg
    VM.jpg
    76.9 KB · Views: 2
  • Result.jpg
    Result.jpg
    41.3 KB · Views: 2
  • LVM Thin Storage.jpg
    LVM Thin Storage.jpg
    16.7 KB · Views: 1
  • ZFS Storage.jpg
    ZFS Storage.jpg
    17.3 KB · Views: 1
Last edited:
It's very strange, because migration from LVM Thin to ZFS wotks...

Another problem : the migration is not thin.
The drive is 32Gb, and it use 32gb on ZFS :

~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
DATA 65.3G 2.55T 186K /DATA
DATA/ISO 6.56G 2.55T 6.56G /DATA/ISO
DATA/base-101-disk-0 2.94G 2.55T 2.94G -
DATA/vm-100-disk-00 2.94G 2.55T 2.94G -
DATA/vm-102-disk-0 668K 2.55T 668K -
DATA/vm-102-disk-1 20.9G 2.55T 20.9G -
DATA/vm-102-disk-2 145K 2.55T 145K -
DATA/vm-103-disk-0 32.0G 2.55T 32.0G -
rpool 2.06G 227G 104K /rpool
rpool/ROOT 2.05G 227G 96K /rpool/ROOT
rpool/ROOT/pve-1 2.05G 227G 2.05G /
rpool/data 96K 227G 96K /rpool/data
rpool/var-lib-vz 96K 227G 96K /var/lib/vz
 

Attachments

  • Migration 2.jpg
    Migration 2.jpg
    96 KB · Views: 2
  • end.jpg
    end.jpg
    81.9 KB · Views: 1
Last edited:
Another try : Ubuntu go back to pvetest.
And now it works... but with 100% space used

# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
RAID5 RAID5 twi-aotz-- <1.07t 2.93 0.26
vm-103-disk-0 RAID5 Vwi-aotz-- 32.00g RAID5 100.00
data pve twi-aotz-- 337.86g 0.00 0.50
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g



I don't understand !
 

Attachments

  • Start.jpg
    Start.jpg
    40.5 KB · Views: 2
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!