Replace failed Boot-Device in zmirror

rakor

Dabbler
Joined
Sep 8, 2021
Messages
22
Hey there,

my bootdrive is a zmirror of two usb-thumb-drives. Now one of them seems to have errors and I want to replace it.

pool: boot-pool
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
scan: scrub repaired 2.61M in 00:09:57 with 0 errors on Tue Sep 5 03:54:57 2023
config:

NAME STATE READ WRITE CKSUM
boot-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da2p2 ONLINE 0 0 0
da0p2 ONLINE 16 0 34

errors: No known data errors

As the disc-layout is straightforward I think I could just prepare a new drive with efi and zfs-partition and replace the failed drive.
=> 40 60063664 da0 GPT (29G)
40 532480 1 efi (260M)
532520 59506688 2 freebsd-zfs (28G)
60039208 24496 - free - (12M)

Am I missing something? In past threads there is always said one should reinstall and import the config if there are errors in the boot-pool, but I think just replacing the filed drive would be neat.
 
Top