Proxmox VE ZFS - rpool (Mirror) creation by uuid?

jsterr

Renowned Member
Jul 24, 2020
787
223
68
33
Is the Proxmox ZFS setup from installer setup with device uuid or with device-names? Im asking because we wanto switch the physical disk behind sdc with the physical disk behind sda so it fits the same disk-layout two other nodes we have.

Currently:
sda: slot-0 (hdd)
sdb: slot-1 (ssd-1)
sdc: slot-2 (ssd-2)

Wanto:
sda: slot-0 (ssd-2)
sdb: slot-1 (ssd-1)
sdc: slot-2 (hdd)

we wanto switch the physical devices from slot 2 to slot 0. will my zfs stay clean and working or do I need to reconfigure/make some steps so the second ssd boots in case of sdb failure? Is the zfs made with path-uiid so everything should work as previously?
 
Last edited:
That depends on when you installed the server. Recent installer versions will use the /dev/disk/by-id/ paths. You can check it by running zpool status.

But even if the /dev/sdX paths are used, ZFS should be able to find the disks belonging to the pool. Haven't tested it for the root pool though.
 
  • Like
Reactions: jsterr
Thanks! Its a fresh install latest iso. So even if the/dev/sdX-path changes from sdc to sda zfs should recognize the uuid and work as imagined? What about bootloader entries for uefi?


root@pve-01:~# zpool status
pool: rpool
state: ONLINE
scan: scrub repaired 0B in 0 days 00:04:29 with 0 errors on Sun Feb 14 00:28:30 2021
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-INTEL_SSDSC2BA200G4_BTHV5265003V200MGN-part3 ONLINE 0 0 0
ata-INTEL_SSDSC2BA200G4_BTHV535602CL200MGN-part3 ONLINE 0 0 0
 
As you can see, the ata id is used, so it doesn't matter on which slot you put the disk.
Uefi also has unique identifiers, so you shouldn't have any issues there, as well.
 
  • Like
Reactions: jsterr

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!