[SOLVED] Partitions in the same zfs pool share the same UUID

a9udn9u

Member
Nov 9, 2022
17
3
8
My old drive failed, I followed a guide to replace it, since the drives in my pool are partitioned, one of the steps was using `sgdisk` to copy partition info from a healthy drive to the new one, (I guess) that's why the two disks share the same UUID. The failed drive was replaced with `zpool replace` so files should be fine.

I only have one mirrored pool so I can't check if partitions in a proper pool share UUID, can't find reliable answer on Google either. ChatGPT told me they shouldn't share UUID but I'm skeptical about that answer since it can make things up.

Can anyone run the `blkid` command to check if partitions in your pool share the same UUID?
 
Yes, the UUID is the same for the two partitions that have the actual zpool on it, but the sub and part uuidis different:

Code:
root@proxmox ~ > blkid | grep -Ee 'sd[ab]'
/dev/sda1: PARTUUID="99b0108a-9bcb-4a69-aa66-f51c3f13507d"
/dev/sdb1: PARTUUID="45ecfa8e-c916-4f49-a12b-1be6d76d00e1"
/dev/sda2: UUID="5E72-C120" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="016a6a6b-bac5-4b13-83a1-2d23a9ef2737"
/dev/sdb2: UUID="A378-8DA0" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="e783a40c-422a-4979-a8e0-df3a44bdd980"
/dev/sdb3: LABEL="rpool" UUID="8825829414086323725" UUID_SUB="11895330607541008868" BLOCK_SIZE="8192" TYPE="zfs_member" PARTUUID="1acfeee2-0795-4390-b4b0-3b4e10c9bf64"
/dev/sda3: LABEL="rpool" UUID="8825829414086323725" UUID_SUB="1009680264309797166" BLOCK_SIZE="8192" TYPE="zfs_member" PARTUUID="2241526e-b1a8-4eb0-842f-a44c74c7e357"
 
  • Like
Reactions: a9udn9u

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!