I had a drive go bad and I have what should be a suitable replacement installed in the bay.
- Code: Select all
pool: tank1
state: DEGRADED
status: One or more devices has been removed by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using 'zpool online' or replace the device with
'zpool replace'.
scan: scrub repaired 0 in 0 days 05:13:33 with 0 errors on Wed Aug 7 19:24:10 2019
config:
NAME STATE READ WRITE CKSUM
tank1 [code][/code] DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
media-F898B004-B88E-4D11-A560-B769C8ACBEB5 ONLINE 0 0 0
media-11C59899-C99C-4ED9-B8B3-7D6D6C473FB2 ONLINE 0 0 0
mirror-1 DEGRADED 0 0 0
media-B59EB647-C62C-4C3E-93E8-298106A7A61C REMOVED 0 0 0
media-7CDE56AE-F1F8-4BA6-ACFC-3A0BBD1F41C7 ONLINE 0 0 0
errors: No known data errors
I initialized the new disk as HFS (is that a correct step?) and then tried several times to issue various forms of the `zpool replace tank1` command using the `guid` for the bad drive from the `zdb` output and `/var/run/disk/by-id/media-xxxx...` but I'd get I/O errors. Then I finally tried using the `/var/run/disk/by-id/volume-xxxx....` identifier and now I've got:
- Code: Select all
pool: tank1
state: DEGRADED
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.
scan: resilver in progress since Wed Sep 25 14:44:38 2019
146G scanned at 117M/s, 73.0G issued at 54.8M/s, 1.85T total
0 resilvered, 3.85% done, 0 days 09:27:18 to go
config:
NAME STATE READ WRITE CKSUM
tank1 DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
media-F898B004-B88E-4D11-A560-B769C8ACBEB5 ONLINE 0 0 0
media-11C59899-C99C-4ED9-B8B3-7D6D6C473FB2 ONLINE 0 0 0
mirror-1 DEGRADED 0 0 0
replacing-0 REMOVED 0 0 0
media-B59EB647-C62C-4C3E-93E8-298106A7A61C REMOVED 0 0 0
volume-F3951F86-80F4-321F-ABD6-2D0C8F0030CF ONLINE 0 0 0
media-7CDE56AE-F1F8-4BA6-ACFC-3A0BBD1F41C7 ONLINE 0 0 0
My question is, have I done this right? Does it matter which identifier is used?
Tim