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

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to