> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
> boun...@opensolaris.org] On Behalf Of Freddie Cash
> 
> On Thu, Dec 6, 2012 at 12:35 AM, Albert Shih <albert.s...@obspm.fr> wrote:
>  Le 01/12/2012 ? 08:33:31-0700, Jan Owoc a ?crit
> 
> > 2) replace the disks with larger ones one-by-one, waiting for a
> > resilver in between
> 
> This is the point I don't see how to do it. I've 48 disk actually from
> /dev/da0 -> /dev/da47 (I'm under FreeBSD 9.0) lets say 3To.

You have 12 x 2T disks in a raidz2, and you want to replace those disks with 4T 
each.  Right?

Start with a scrub.  Wait for it to complete.  Ensure you have no errors.

sudo format -e < /dev/null > before.txt
Then "zpool offline" one disk.  Pull it out and stick a new 4T disk in its 
place.  "devfsadm -Cv" to recognize the new disk.
sudo format -e < /dev/null > after.txt
diff before.txt after.txt
You should see one device disappeared, and a new one was created.
Now "zpool replace" to replace the old disk with the new disk.

"zpool status" should show the new drive resilvering.
Wait for the resilver to finish.

Repeat 11 more times.  Replace each disk, one at a time, with resilver in 
between.

When you're all done, it might expand to the new size automatically, or you 
might need to play with the "autoexpand" property to make use of the new 
storage space.

What percentage full is your pool?
When you're done, please write back to tell us how much time this takes.  I 
predict it will take a very long time, and I'm curious to know exactly how 
much.  Before you start, I'm going to guess ...  80% full, and 7-10 days to 
resilver each drive.  So the whole process will take you a few months to 
complete.  (That's the disadvantage of a bunch of disks in a raidzN 
configuration.)
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to