I had some issues due to a bad SAS cable, which has been replaced now. One of my disks started throwing ATA errors resulting in read/write errors in my zpool.
At first I thought it was a bad disk so I replaced it, but the same thing happened with the new disk and later another one, which has left my pool with two degraded mirrors:
How do I make ZFS forget about the disks so that I can re-attach them to the pool?
If I do
Is it actually doing a resilver even though
At first I thought it was a bad disk so I replaced it, but the same thing happened with the new disk and later another one, which has left my pool with two degraded mirrors:
Code:
# zpool status -v
pool: data
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 canceled on Sun May 27 00:10:49 2018
config:
NAME STATE READ WRITE CKSUM
data DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
diskid/DISK-46R4P4EASp1 ONLINE 0 0 0
diskid/DISK-Y7K2ZPPASp1 ONLINE 0 0 0
mirror-1 DEGRADED 0 0 0
replacing-0 UNAVAIL 0 0 0
7192195430289746507 OFFLINE 0 0 0 was /dev/diskid/DISK-16DTKTEGSp1
12312995901858474341 OFFLINE 0 0 0 was /dev/diskid/DISK-X3U9HMAGSp1
diskid/DISK-251AZ1UASp1 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
diskid/DISK-X5MK53AGSp1 ONLINE 0 0 0
diskid/DISK-Z7N662UASp1 ONLINE 0 0 0
mirror-3 DEGRADED 0 0 0
diskid/DISK-X5RD6DNGSp1 ONLINE 0 0 0
12854800279195551115 REMOVED 0 0 0 was /dev/diskid/DISK-16DTKUAGSp1
errors: No known data errors
How do I make ZFS forget about the disks so that I can re-attach them to the pool?
zpool replace
and zpool attach
outputs the following:
Code:
# zpool replace data 7192195430289746507 /dev/diskid/DISK-16DTKTEGSp1
invalid vdev specification
use '-f' to override the following errors:
/dev/diskid/DISK-16DTKTEGSp1 is part of active pool 'data'
If I do
zpool online data /dev/diskid/DISK-16DTKUAGSp1
it starts scrubbing the disk. zpool status
is just saying "scrubbing" like when it does a regular scrub.Is it actually doing a resilver even though
zpool status
doesn't mention anything about it? I'd prefer not to stress the disks while two of my mirrors are degraded by doing an unnecessary scrub and then have it return to the same failed state as before.