[zfs-discuss] Re: simple Raid-Z question
Eric Haycraft wrote: Since no one seems to believe that you can expand a raidz pool, I have attached the following output from solaris 11/06 showing me doing just that. The first expanision is with like sized disks, and the second expansion is with larger disks. I realize that the documentation only has examples using mirrors, but raidz and raid2z are fully supported for adding disk space. # mkfile 64m 1 2 3 4 5 6 # mkfile 128m 01 02 03 # zpool create testpool raidz `pwd`/1 `pwd`/2 `pwd`/3 # zpool list testpool NAMESIZEUSED AVAILCAP HEALTH ALTROOT testpool178M100K178M 0% ONLINE - # zpool add testpool raidz `pwd`/4 `pwd`/5 `pwd`/6 # zpool list testpool NAMESIZEUSED AVAILCAP HEALTH ALTROOT testpool356M305K356M 0% ONLINE - # zpool add testpool raidz `pwd`/01 `pwd`/02 `pwd`/03 # zpool list testpool NAMESIZEUSED AVAILCAP HEALTH ALTROOT testpool726M475K726M 0% ONLINE - # This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss No, you are NOT adding to a RAIDZ vdev. You are adding to a ZPOOL. Your new pool has 2 stripes of RAIDZ vdevs. The final testpool zpool above consists of 3 RAIDZ vdevs, each with 3 members. While expanding a zpool in the way you've show is useful, it has nowhere near the flexibility of simply adding single disks to existing RAIDZ vdevs, which was the original desire expressed. This conversation has been had several times now (take a look in the archives around Jan for the last time it came up). To make myself clear, what we're talking about is some way to move from: zpool create tank raidz d1 d2 d3 to the equivalent of zpool create tank raidz d1 d2 d3 d4 d5 d6 in increments. Right now, that's not possible. Also, I believe there is a bug in zfs list for Solaris 10 U3's zfs - I have to check it out. Because: # cd /tmp # mkfile 64m 1 2 3 4 5 6 7 8 # zpool create testpool1 raidz /tmp/1 /tmp/2 /tmp/3 /tmp/4 raidz /tmp/5 /tmp/6 /tmp/7 /tmp/8 # zfs list testpool1 NAME USED AVAIL REFER MOUNTPOINT testpool1 131K 444M49K /testpool1 # zpool destroy testpool1 # zpool create testpool2 raidz /tmp/1 /tmp/2 /tmp/3 /tmp/4 /tmp/5 /tmp/6 /tmp/7 /tmp/8 # zfs list testpool2 NAME USED AVAIL REFER MOUNTPOINT testpool277K 444M 3K /testpool2 Which is _clearly_ incorrect. testpool1 should have a size of approximately 6*64m = 384, not 7*64m = 448m as in testpool2. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800) ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Re: simple Raid-Z question
MC, If you originally had 4 * 500 GB disks configured in RAID-Z, you cannot add 1 single disk and grow the capacity of the pool (with same protection). This is not allowed. Regards, Sanjeev. MC wrote: Two conflicting answers to the same question? I guess we need someone to break the tie :) Hello, I have been reading alot of good things about Raid-z, but before I jump into it I have one unanswered question i can't find a clear answer for. Is it possible to enlarge the initial RAID size by adding single drives later on? If i start off with 4*500gb (should give me 1.5tb), can I add one 500gb to the raid later, and will the total size then grow 500gb and still have the same protection? This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss -- Solaris Revenue Products Engineering, India Engineering Center, Sun Microsystems India Pvt Ltd. Tel:x27521 +91 80 669 27521 ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Re: simple Raid-Z question
Erik Trimble wrote: While expanding a zpool in the way you've show is useful, it has nowhere near the flexibility of simply adding single disks to existing RAIDZ vdevs, which was the original desire expressed. This conversation has been had several times now (take a look in the archives around Jan for the last time it came up). Perhaps, this should be added to the FAQ? Cheers Manoj ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Re: simple Raid-Z question
Two conflicting answers to the same question? I guess we need someone to break the tie :) Hello, I have been reading alot of good things about Raid-z, but before I jump into it I have one unanswered question i can't find a clear answer for. Is it possible to enlarge the initial RAID size by adding single drives later on? If i start off with 4*500gb (should give me 1.5tb), can I add one 500gb to the raid later, and will the total size then grow 500gb and still have the same protection? This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Re: simple Raid-Z question
I was considering the same thing (but with 250GB drives) and instead decided to start with 5*250GB so that I could do raid-z2 instead thinking that once you add one more drive you'd rather have raidz2 than raidz On 4/7/07, MC [EMAIL PROTECTED] wrote: Two conflicting answers to the same question? I guess we need someone to break the tie :) Hello, I have been reading alot of good things about Raid-z, but before I jump into it I have one unanswered question i can't find a clear answer for. Is it possible to enlarge the initial RAID size by adding single drives later on? If i start off with 4*500gb (should give me 1.5tb), can I add one 500gb to the raid later, and will the total size then grow 500gb and still have the same protection? This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss