Score:0

zpool replace fails

cn flag

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

cn flag
also the umount fails taichi:~:5002> sudo umount /dev/sdk (32) umount: /dev/sdk: not mounted. taichi:~:5003>
cn flag
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#
cn flag
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
cn flag
zdb output for mirror
Score:0
cn flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.