Device names in ZFS pools

Chris Ross cross+freebsd at
Thu Sep 9 20:48:33 UTC 2021

Hey there.  So, I created a ZFS pool, a RAID-Z with “da5 da2 da3”.  These are then the device names that appeared in “zpool status mypool”.  However, da3 had errors, and I replaced it by another disk living at da1.  Then, I removed the bad disk and moved things in the enclosure.  But, after this, some ids seem to have changed, and what was originally “da5” is now “da4” and “zpool status mypool” shows:

	NAME                                  STATE     READ WRITE CKSUM
	mypool                                ONLINE       0     0     0
	  raidz1-0                            ONLINE       0     0     0
	    diskid/DISK-Z1Z946N90000R546NBZH  ONLINE       0     0     0
	    da2                               ONLINE       0     0     0
	    da1                               ONLINE       0     0     0

If I use zdb, I can see that value stored in the “path” of each child of the vdev/pool.  But, can I _change_ it?  I know this is the reason many people suggest not using device names like I did, but, if I switch to gpt labels or the like, I‘ll still need to update these in this existing vdev, right?

How can I change these path labels?

                - Chris

More information about the freebsd-questions mailing list