Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2021 16:48:28 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        freebsd-questions@freebsd.org
Subject:   Device names in ZFS pools
Message-ID:  <1D81F7C8-8892-4186-9CAE-593CDB66D3BA@distal.com>

next in thread | raw e-mail | index | archive | help

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1D81F7C8-8892-4186-9CAE-593CDB66D3BA>