On Sat, May 28, 2011 at 1:15 PM, Edward Ned Harvey <opensolarisisdeadlongliveopensola...@nedharvey.com> wrote: >> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- >> boun...@opensolaris.org] On Behalf Of Brian >> >> I have a raidz2 pool with one disk that seems to be going bad, several > errors >> are noted in iostat. I have an RMA for the drive, however - no I am >> wondering how I proceed. I need to send the drive in and then they will >> send me one back. If I had the drive on hand, I could do a zpool replace. >> >> Do I do a zpool offline? zpool detach? >> Once I get the drive back and put it in the same drive bay.. Is it just a > zpool >> replace <device>? > > Just guessing you don't have hotswap drive bays, because you don't have an > advance replacement warranty on your hardware. ;-) Which means you're > going to have to shutdown anyway. So: My drive bays are hotswap enabled. Its a 20 bay hotswap case. I am just for personal use, not commercial so I have consumer grade disk and replacement warranties.
> > I would zpool export. That will ensure drives are all stopped. > Then I would make the faulted drive blink. Something like: > while true ; do dd if=/dev/rdsk/baddisk of=/dev/null bs=1024k count=8000 ; > sleep 1 ; done I would rather not shutdown if I don't have to. > > Make a note of which drive is the bad drive. > Shutdown. > Remove it. > Boot up again. > zpool import -a > > Now you will see the removed drive appearing as "offline" or whatever status > is most helpful. > > Later, your new drive arrives. Don't attach it yet. > Run the "format" command to get a list of drives in the system, and > immediately quit (don't cause harm to your system with format!) > shutdown, attach the new drive. > Run "format" again, verify it's the same as before (new drive not available > yet) > You probably have to do something like devfsadm -Cv > Run "format" again, and now you should easily be able to identify the new > device name. It may or may not match the device name of the drive you > removed. > > And finally, you can do the zpool replace > > Thanks. _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss