A few days ago, I noticed that the ZFS pool on my home server had started reslivering a disk by itself but was no longer making any progress. The disk had some SMART errors (but did not consider itself failed), so I decided to replace it with a spare. I did that, but my spare disk is now generating a large number of DMA_WRITE errors, and the reslivering from the replace is restarting once it gets to 10% or so.

I now want to temporarily replace both the original disk and the spare disk with a USB disk. I've stopped the resliver with "zpool scrub -s tank". However, both the disks are still listed as "replacing" and won't allow another replace, and I can't seem to get them out of that state.

How can I stop/cancel a zpool replace before it's completed?

I am using FreeBSD 8.1-RELEASE with a 5-disk RAIDZ array.

link|improve this question
feedback

1 Answer

According the docs:

An in-progress spare replacement can be cancelled by detaching the hot spare.

It sounds like you did a manual replace but detching the new disk might work the same.

link|improve this answer
I did do a manual replace. I've tried removing the spare (it's not a hot spare), and it remained in replace mode. – cosmic.osmo Mar 1 '11 at 19:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.