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.