0

trying to replace a bad disk in a mirrored zfs pool. Published commands do not work

My error

zpool replace extra /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E7KS505J-part1 /dev/sdk /dev/sdk is in use and contains a unknown filesystem. taichi:~:5007#

the WD disk is bad and have already been swapped. The new disk is /dev/sdk

I want to add it back to the mirror and resilver

4
  • also the umount fails taichi:~:5002> sudo umount /dev/sdk (32) umount: /dev/sdk: not mounted. taichi:~:5003> Aug 12, 2021 at 18:02
  • zpool replace extra /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E7KS505J-part1 /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1XS4R90 /dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1XS4R90 is in use and contains a unknown filesystem. taichi:~:5016# Aug 12, 2021 at 20:29
  • my home directory is on the GOOD disk so that complicates things (dev/sdj is good) I want to add the newly replaced /dev/sdk to replace the old dead /dev/sdk - the good drive has already been installed Aug 12, 2021 at 20:33
  • zdb output for mirror Aug 12, 2021 at 20:47

1 Answer 1

0

for some reason the drive letters switched - old bad was /dev/sdk replaced with new good and became /dev/sdj and old was /dev/sdk - went and looked AGAIN by id and saw it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .