Renaming ZFS Storages in a Cluster for Replication

nico2f

New Member
May 15, 2024
10
1
3
Hi everyone,

I've set up a three-node Proxmox cluster using ZFS, but I just realized—after searching the forums—that I made a mistake in my storage configuration. I assigned different ZFS pool names on each node, so when I try to configure replication, Proxmox fails because it expects the same storage name on all nodes.

The issue is that these storages are already in use, so I need to rename them without losing data. From what I've gathered, the process involves:
  1. Exporting the current ZFS pool
  2. Importing it with the new (correct) name
  3. Updating each VM configuration to reflect the new ZFS pool name
I just want to confirm that my understanding is correct and see if there's anything else I should be aware of to avoid data loss or downtime. Any advice or best practices would be greatly appreciated!

Thanks in advance!
 
Pretty much that with one small hint:
Updating each VM configuration to reflect the new ZFS pool name
The VM config doesn't necessarily reference the pool name, but the name of the storage. But the storage name is often the same name as the pool.

Make backups of the guests before you attempt this. And of course, the guests need to be powered down while you do this. Or alternatively, migrate the guests to the other node. Then you could skip the manual change in the VM configs.
 
I am confused,

I Have the below,
  • what are the possibilities / changes that needed to achieve the VM to moved from 1 Node to other?
  • Offline migration also failing; I guess due to the Names / pools of the Storage.
  • Nodes are currently with VM's running in all the storages, Except Node 3, xd7-SSD_local_Storage, xd7-SSD_local_Storage (ZFS pool). this can be removed/ reconfigured and used to move the VMs, empty the other storages to reconfigured as needed.
  • NFS is there for a common storage, but able to move the Disks and failing with the configurations.


NodeZFS Storage NameZFS Pool
Node 1Prec_local_StoragePrec_local_Storage (ZFS pool)
Node 2M52_local_Storage M52_local_Stoarge (ZFS pool)
Node 3xd7-HDD_local_Storagexd7-HDD_local_Storage (ZFS pool)
xd7-SSD_local_Storagexd7-SSD_local_Storage (ZFS pool)
 
what are the possibilities / changes that needed to achieve the VM to moved from 1 Node to other?
Usually you want to setup automatic replication of course. Without it this does work for me:

When I select a running "VM --> context menu --> Migrate" I get a dialog popping up. On the right side I have two drop down menus: "Target node:" and "Target storage:" where I can select another... storage as the destination on the receiving node.

In my setup a stopped VM does not offer this choice.
 
  • Like
Reactions: Johannes S
Usually you want to setup automatic replication of course. Without it this does work for me:

When I select a running "VM --> context menu --> Migrate" I get a dialog popping up. On the right side I have two drop down menus: "Target node:" and "Target storage:" where I can select another... storage as the destination on the receiving node.

In my setup a stopped VM does not offer this choice.
Thank you @UdoB
even same: In my setup a stopped VM does not offer this choice.

able to migrate to Online. but it taking long time.
 
  • Like
Reactions: UdoB