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 =E2=80=9Cda5 da2 =
da3=E2=80=9D.  These are then the device names that appeared in =E2=80=9Cz=
pool status mypool=E2=80=9D.  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 =E2=80=9Cda5=E2=80=9D is now =E2=80=9Cda4=
=E2=80=9D and =E2=80=9Czpool status mypool=E2=80=9D 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 =E2=80=9Cpath=E2=80=9D =
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=E2=80=98ll 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>