[SOLVED] Does disk order matter in ZFS pool recovery?

GadgetPig

Member
Apr 26, 2016
138
26
18
56
Hi there,

I have a silly question about ZFS & SATA physical drive order. In a ProxMox configuration with 1 system drive and 4 data drives setup as ZFS/Raid 10. When doing ZFS pool recovery, does it matter what order the 4 SATA drives are put back in? So if the original server died, and I setup a new server with new system drive, and move the 4 original SATA drives over, do they have to be put back in same order as original? (disk2 on sata #2 connector, disk3 on sata #3 connector, etc).

Or the magic with ZFS is the disk unique ID is stored in the pool, and when imported, doesn't matter what order the drives are put back (disk2 on sata#3 connector, disk 3 on sata#2 connector, etc).

Sorry to be a bother, my test PVE server is missing 1 drive for full raid 10 testing.

Thanks!

Aldrin
 
it does not matter what order the disk are put back in, but if you changed hosts, the pool will need to be imported -f the first time you boot.
 
Awesome thanks! I did a test DR on a Raid1 ZFS previously, but left both disks in the same place. The "zpool import -f poolname" worked like a charm. Cheers!