Replacing dead drive in mirror raid

All your general support questions for OpenZFS on OS X.

Replacing dead drive in mirror raid

Postby joconnor » Tue Dec 10, 2019 11:28 am

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
joconnor
 
Posts: 11
Joined: Wed Dec 30, 2015 10:29 pm

Re: Replacing dead drive in mirror raid

Postby lundman » Tue Dec 10, 2019 4:46 pm

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.
User avatar
lundman
 
Posts: 705
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Replacing dead drive in mirror raid

Postby joconnor » Wed Dec 11, 2019 11:16 am

Thanks, Lundman.
This gave me the right idea.
joconnor
 
Posts: 11
Joined: Wed Dec 30, 2015 10:29 pm


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron