ZFS repopulate/resilver "bad" disk from good disk in mirror setup?

I have a fairly large mirror setup, 6 jbod chassis with 45 drives each, 270 drives all mirrored in pairs with some spares. One of my jbods, or RAID controllers, had a catastrophic failure, resulting in a core dump and a reboot (OmniOS). When it came back up, one of my jbods, 45 drives, all had the error "Too Many Errors" in the zpool status check.

The thing is, it says "0" on the read/write/cksum for those disks with "too many errors". I don't think the hardware is bad, I just think it was a driver issue or a kernel panic and it caused that one jbod to corrupt data.

My ZFS knowledge is limited, so I was wondering if there was a way to "resilver" or "repopulate" the "bad" disk's data from the good disks in the mirror. We don't necessarily have 45 spare disks laying around to replace them all.

EDIT: Does scrub do this?

EDIT: the pool is still up, and readable.

FIXED EDIT: So after doing a zpool clear <pool>, it auto resilvered everything and everything looks good. Thanks for all the help.

Posted May 16, 2016, 1:58 PM UTC · edited

413
Loading comments…