Page 1 of 1

Replacing dead drive in mirror raid

PostPosted: Tue Dec 10, 2019 11:28 am
by joconnor
I set this up YEARS ago and one of my mechanisms died in the meantime. I've forgotten a whole lot.

I did a zpool replace pool01 media-blah disk10" and the resilver finished but the pool listing is wrong because after exporting and importing the new drive name shows up as the mechanism type instead of the "media-blah" type name.

What did I do wrong? I'd like to fix the name. I want to replace the other original drive, too, so I'd like to get it right this time.

Thanks,
Jim

Re: Replacing dead drive in mirror raid

PostPosted: Tue Dec 10, 2019 4:46 pm
by lundman
If it's working, you didn't do anything wrong :)

But if you want to change the path to the disks, use "zpool export $pool" and "zpool import -d /var/run/disk/* $pool". You can import first as -d /dev, to get diskX names, then import -d /var/run/disk/by-id/, to use ID names.

Re: Replacing dead drive in mirror raid

PostPosted: Wed Dec 11, 2019 11:16 am
by joconnor
Thanks, Lundman.
This gave me the right idea.