Is it safe or possible to do a zpool replace for multiple drives at once? I think I have one of the troublesome WD Green drives as replacing it has taken 39hrs and only reslivered 58Gb, I have another two I''d like to replace but I''m wondering whether I should do that now as the other is being resilvered or wait till (a month) till this has finished. Cheers, Andre _________________________________________________________________ View photos of singles in your area! Looking for a hot date? http://clk.atdmt.com/NMN/go/150855801/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100524/c17ba116/attachment.html>
On 5/23/2010 5:00 PM, Andreas Iannou wrote:> Is it safe or possible to do a zpool replace for multiple drives at > once? I think I have one of the troublesome WD Green drives as > replacing it has taken 39hrs and only reslivered 58Gb, I have another > two I''d like to replace but I''m wondering whether I should do that now > as the other is being resilvered or wait till (a month) till this has > finished. > > Cheers, > AndreYou can replace drives up to the number of redundant drives in your vdev, without loosing data. Thus: 2-way mirror: 1 drive 3-way mirror: 2 drives N-way mirror: N-1 drives RaidZ1: 1 drive RaidZ2: 2 drives RaidZ3: 3 drives If you have more than 1 vdev in a pool, then the above rule apply to EACH vdev. Of course, if you replace the maximum number above, you have no protection against failure for the period it takes to rebuild/resilver the vdev. Also, I don''t have a feel for how replacing more than 1 drives in a RaidZ[23] affects resilver performance. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100523/5ec8f03b/attachment.html>
> Also, I don''t have a feel for how replacing more than 1 drives in a RaidZ[23] affects resilver performance.Thats okay Erik, you''ve provided the information I need. This is a RAIDZ zpool, I think I''ll wait and see how it goes before moving on. I cried seeing 673hrs remaining at 7% completion, the price we pay for being green (and cheap!). Cheers, Andre Date: Sun, 23 May 2010 17:44:21 -0700 From: erik.trimble at oracle.com To: andreas_wants_the_work at hotmail.com CC: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] zfs replace multiple drives On 5/23/2010 5:00 PM, Andreas Iannou wrote: Is it safe or possible to do a zpool replace for multiple drives at once? I think I have one of the troublesome WD Green drives as replacing it has taken 39hrs and only reslivered 58Gb, I have another two I''d like to replace but I''m wondering whether I should do that now as the other is being resilvered or wait till (a month) till this has finished. Cheers, Andre You can replace drives up to the number of redundant drives in your vdev, without loosing data. Thus: 2-way mirror: 1 drive 3-way mirror: 2 drives N-way mirror: N-1 drives RaidZ1: 1 drive RaidZ2: 2 drives RaidZ3: 3 drives If you have more than 1 vdev in a pool, then the above rule apply to EACH vdev. Of course, if you replace the maximum number above, you have no protection against failure for the period it takes to rebuild/resilver the vdev. Also, I don''t have a feel for how replacing more than 1 drives in a RaidZ[23] affects resilver performance. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA _________________________________________________________________ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100524/0ad4681f/attachment.html>
On Sun, May 23, 2010 at 5:00 PM, Andreas Iannou <andreas_wants_the_work at hotmail.com> wrote:> Is it safe or possible to do a zpool replace for multiple drives at once? I > think I have one of the troublesome WD Green drives as replacing it has > taken 39hrs and only reslivered 58Gb, I have another two I''d like to replace > but I''m wondering whether I should do that now as the other > is?being?resilvered?or wait till (a month) till this has finished.If you can attach extra drives, (via additional sata ports, usb, etc) you can replace more than one. It''s actually better to replace with the original drives still online, in case there''s a read error during the process. -B -- Brandon High : bhigh at freaks.com
On 24 maj 2010, at 02.44, Erik Trimble wrote:> On 5/23/2010 5:00 PM, Andreas Iannou wrote: >> Is it safe or possible to do a zpool replace for multiple drives at once? I think I have one of the troublesome WD Green drives as replacing it has taken 39hrs and only reslivered 58Gb, I have another two I''d like to replace but I''m wondering whether I should do that now as the other is being resilvered or wait till (a month) till this has finished. >> >> Cheers, >> Andre > > You can replace drives up to the number of redundant drives in your vdev, without loosing data. > > Thus: > > 2-way mirror: 1 drive > 3-way mirror: 2 drives > N-way mirror: N-1 drives > RaidZ1: 1 drive > RaidZ2: 2 drives > RaidZ3: 3 drives > > > If you have more than 1 vdev in a pool, then the above rule apply to EACH vdev. > > > Of course, if you replace the maximum number above, you have no protection against failure for the period it takes to rebuild/resilver the vdev.Is that really true if you use the "zpool replace" command with both the old and the new drive online? Since you then have both the original disk(s) and the new replacment disk(s) online, you should actually have more redundancy during the operation, and you should be able to replace all disks in a vdev at once, shouldn''t you? If you are replacing by yanking out an old drive and put in a new in it''s place, your rules above should apply. /ragge
On Mon, May 24, 2010 at 1:02 AM, Ragnar Sundblad <ragge at csc.kth.se> wrote:> Is that really true if you use the "zpool replace" command with both > the old and the new drive online?Yes. zpool replace [-f] pool old_device [new_device] Replaces old_device with new_device. This is equivalent to attaching new_device, waiting for it to resilver, and then detaching old_device.> operation, and you should be able to replace all disks in a vdev at > once, shouldn''t you?Yes, if you have that many connections available. -B -- Brandon High : bhigh at freaks.com
On 24 maj 2010, at 10.26, Brandon High wrote:> On Mon, May 24, 2010 at 1:02 AM, Ragnar Sundblad <ragge at csc.kth.se> wrote: >> Is that really true if you use the "zpool replace" command with both >> the old and the new drive online? > > Yes.(Don''t you mean "no" then? :-)> zpool replace [-f] pool old_device [new_device] > > Replaces old_device with new_device. This is equivalent > to attaching new_device, waiting for it to resilver, and > then detaching old_device. > > >> operation, and you should be able to replace all disks in a vdev at >> once, shouldn''t you? > > Yes, if you have that many connections available.Yes, otherwise it would be tricky of course. /ragge