Hi, I have a ZFS storage pool consisting of a single RAIDZ2 vdev of 6 drives, and I have a question about replacing a failed drive, should it occur in future. If a drive fails in this double-parity vdev, then am I correct in saying that I would need to (1) unplug the old drive once I''ve identified the drive id (c1t0d0 etc), (2) plug in the new drive on the same SATA cable, and (3) issue a ''zpool replace pool_name drive_id'' command etc, at which point ZFS will resilver the new drive from the parity data ? Thanks, Simon -- This message posted from opensolaris.org
Yep, you got it. Jeff On Fri, Jun 19, 2009 at 04:15:41PM -0700, Simon Breden wrote:> Hi, > > I have a ZFS storage pool consisting of a single RAIDZ2 vdev of 6 drives, and I have a question about replacing a failed drive, should it occur in future. > > If a drive fails in this double-parity vdev, then am I correct in saying that I would need to (1) unplug the old drive once I''ve identified the drive id (c1t0d0 etc), (2) plug in the new drive on the same SATA cable, and (3) issue a ''zpool replace pool_name drive_id'' command etc, at which point ZFS will resilver the new drive from the parity data ? > > Thanks, > Simon > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Great, thanks a lot Jeff. Cheers, Simon -- This message posted from opensolaris.org
Does the same thing apply for a "failing" drive? I have a drive that has not failed but by all indications, it''s about to.... Can I do the same thing here? -dan Jeff Bonwick wrote:> Yep, you got it. > > Jeff > > On Fri, Jun 19, 2009 at 04:15:41PM -0700, Simon Breden wrote: > >> Hi, >> >> I have a ZFS storage pool consisting of a single RAIDZ2 vdev of 6 drives, and I have a question about replacing a failed drive, should it occur in future. >> >> If a drive fails in this double-parity vdev, then am I correct in saying that I would need to (1) unplug the old drive once I''ve identified the drive id (c1t0d0 etc), (2) plug in the new drive on the same SATA cable, and (3) issue a ''zpool replace pool_name drive_id'' command etc, at which point ZFS will resilver the new drive from the parity data ? >> >> Thanks, >> Simon >> -- >> This message posted from opensolaris.org >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- <http://www.java.com> * Dan Transue * *Sun Microsystems, Inc.* 495 S. High Street, #200 Columbus, OH 43215 US Phone x30944 / 877-932-9964 Mobile 484-554-6951 Fax 877-932-9964 Email Dan.Transue at Sun.COM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091002/7aeab49e/attachment.html>
Yes, you can use the zpool replace process with any kind of drive: failed, failing, or even healthy. cs On 10/02/09 12:15, Dan Transue wrote:> Does the same thing apply for a "failing" drive? I have a drive that > has not failed but by all indications, it''s about to.... Can I do the > same thing here? > > -dan > > Jeff Bonwick wrote: >> Yep, you got it. >> >> Jeff >> >> On Fri, Jun 19, 2009 at 04:15:41PM -0700, Simon Breden wrote: >> >>> Hi, >>> >>> I have a ZFS storage pool consisting of a single RAIDZ2 vdev of 6 drives, and I have a question about replacing a failed drive, should it occur in future. >>> >>> If a drive fails in this double-parity vdev, then am I correct in saying that I would need to (1) unplug the old drive once I''ve identified the drive id (c1t0d0 etc), (2) plug in the new drive on the same SATA cable, and (3) issue a ''zpool replace pool_name drive_id'' command etc, at which point ZFS will resilver the new drive from the parity data ? >>> >>> Thanks, >>> Simon >>> -- >>> This message posted from opensolaris.org >>> _______________________________________________ >>> zfs-discuss mailing list >>> zfs-discuss at opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >>> >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >> > > -- > <http://www.java.com> * Dan Transue * > *Sun Microsystems, Inc.* > 495 S. High Street, #200 > Columbus, OH 43215 US > Phone x30944 / 877-932-9964 > Mobile 484-554-6951 > Fax 877-932-9964 > Email Dan.Transue at Sun.COM > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss