[SOLVED] Move disk/VM from LVM to ZFS

ajaxodessa

New Member
Feb 16, 2025
3
1
3
Hello,

I have a simple home lab setup with two nodes: node-a with LVM and node-b with ZFS. I am trying to find the way to move disks and VMs from the node running LVM to the second one with ZFS, so I can re-create node-a with ZFS as well. I can't find any options in GUI or documentation for the command line. Am I missing something? Is this even possible?

Thank you
 
Without shared storage options:
1] backup/restore
2] some linux lvm/zfs/etc commands
3] use temporary added disk to node-a with zfs
 
  • Like
Reactions: Kingneutron
Ended up with backup & restore, but it is a bummer that I can't just move a disk between storages
You can do that.

At least on my systems I can migrate a running(!) VM onto a different target storage. The "Migrate VM 1234" dialog has a dropdown menu "Target storage: xxx" for this...

A turned off VM lacks that drop-down menu. The menu is not disabled but invisible. So you don't know it could be there :-(
 
You can do that.

At least on my systems I can migrate a running(!) VM onto a different target storage. The "Migrate VM 1234" dialog has a dropdown menu "Target storage: xxx" for this...

A turned off VM lacks that drop-down menu. The menu is not disabled but invisible. So you don't know it could be there :-(
Doesn't work for my case because of different storage names (and types).
 
I found a different solution, without the backup and restore.
1. Make a new CT on the LVM or ZFS node which ever has more disk space.
2. Create an NFS export in the CT
3. Mount the NFS export in the proxmox cluster
4. Change the storage of any CT/VM from the LVM to NFS.
5. Now Migrate will work, move the CT/VM to the ZFS node.
6. Change the storage from NFS to ZFS on the CT/VM that is on the ZFS node.
7. Start the CT that was just migrated, I believe VMs can do this while running.

Repeat for each CT/VM you want on ZFS.

Once all are moved, remove the NFS from cluster, remove NFS CT. Rebuild LVM host to ZFS.

I am not sure this is any easier or quicker than the backup method, but it is another option.
 
Last edited:
you can export zfs dataset as nfs share and mount it to node a and move vms