On Tue, Dec 30, 2008 at 12:18 AM, Brandon High <bh...@freaks.com> wrote:
> Use a USB enclosure for the new drive, and do:
> zfs replace bad_disk new_disk
>
> You should be able to export the volume and physically replace the
> disk at that point.

It was late when I wrote that, so let me clarify a few things.

I'm assuming that this is not a busy production server. If it is, you
may want to do things differently. You said you can't hot swap the
disk so you need to shutdown regardless. Plan on downtime.

Resilvering to the USB device will be slow. USB 2.0 is closer to 35-40
MB/s but 1TB is a lot of bits.

You don't need to tell ZFS that the disk which had been in the USB
enclosure is now attached to a SATA bus. ZFS uses GUIDs on the
devices, not the bus path. It'll just work. Hopefully.

On Tue, Dec 30, 2008 at 8:37 AM, Larry Hastings <larrya...@hastings.org> wrote:
> Again, noob here, so just making sure I understand what you suggest:

0) Add the new disk to the system via USB, eSATA, firewire, whatever.

> 1) zpool replace volume baddisk newdisk

1.5) Wait for resilver.
1.6) Wait some more.
1.7) Continue waiting. You get the point.

> 2) zpool export volume
> 3) physically remove baddisk and replace it with newdisk (which for me 
> requires shutting down, sigh)

Shutdown & power off. Remove the failing drive. Remove the new drive
from the enclosure and install on the SATA port that the failed drive
was using.

> 4) zpool import volume

-B

-- 
Brandon High : bh...@freaks.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to