Skip to content

Re-labeling my ZFS devices with glabel

As I stated before, I wanted to move the underlying devices in my ZFS pool to glabel-based naming.
To do so, I did the following 3 commands:

> sudo zpool offline tank da2s1
> sudo glabel label -v fantom_1tb /dev/da2
Metadata value stored on /dev/da2.
> sudo zpool replace tank da2s1 /dev/label/fantom_1tb

Then, doing a zpool status yields:
> zpool status
pool: tank
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress for 0h1m, 0.45% done, 3h47m to go

tank DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
da0s1 ONLINE 0 0 0 3.52M resilvered
da1s1 ONLINE 0 0 0 3.51M resilvered
replacing DEGRADED 0 0 0
da2s1 OFFLINE 0 4.55K 0
label/fantom_1tb ONLINE 0 0 0 296M resilvered
label/pico_usb ONLINE 0 0 0

errors: No known data errors

When the resilvering of da2 is done, I’ll do da1 and da0 in a similar manner. This way, I don’t have to plug the USB drives into the exact same port every time. My ZFS pool will be more reliable, because it’s less sensitive to the USB port ordering.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *