Remaking zpools of the same name

hydrian

Member
Jul 14, 2021
2
0
6
47
I recently made a mistake because with one of my zpools on my proxmox server. I added the drive as a stripe instead of a mirror. Now, because of a bug in zfs (https://github.com/openzfs/zfs/pull/11409) i can't remove the drive from the pool. So now I have to delete and recreate the pool.

I can back it up easily with zfs send/receive to another temp zpool, so I can easily delete the only pool. My question is there a way to me to recreate the pool with without removing and creating all the associated VMs. I ask this because the zpool is the main pool for all my VMs base OSes.

I was thinking about it this way:
  1. Going into single-user/rescue mode.
  2. Backing up the zpool.
  3. deleting the bad zpool.
  4. Creating a zpool of the same name.
My concern is that proxmox refers to zpools by UUID and not the name. I have a feeling it does because there have been multiple troubleshooting requests about having multiple zpools of the same name.

How would I update proxmox to use the new zpool UUID after I recreate my fixed pool?