[zfs-discuss] Increase size of 2-way mirror

2010-10-06 Thread Tony MacDoodle
Is it possible to add 2 disks to increase the size of the pool below?

NAME STATE READ WRITE CKSUM
  testpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t2d0 ONLINE 0 0 0
c1t3d0 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
c1t4d0 ONLINE 0 0 0
c1t5d0 ONLINE 0 0 0
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Increase size of 2-way mirror

2010-10-06 Thread Freddie Cash
On Wed, Oct 6, 2010 at 12:14 PM, Tony MacDoodle tpsdoo...@gmail.com wrote:
 Is it possible to add 2 disks to increase the size of the pool below?

Yes.  zpool add testpool mirror devname1 devname2

That will add a third mirror vdev to the pool.

 NAME STATE READ WRITE CKSUM
   testpool ONLINE 0 0 0
 mirror-0 ONLINE 0 0 0
 c1t2d0 ONLINE 0 0 0
 c1t3d0 ONLINE 0 0 0
 mirror-1 ONLINE 0 0 0
 c1t4d0 ONLINE 0 0 0
 c1t5d0 ONLINE 0 0 0

-- 
Freddie Cash
fjwc...@gmail.com
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Increase size of 2-way mirror

2010-10-06 Thread David Dyer-Bennet

On Wed, October 6, 2010 14:14, Tony MacDoodle wrote:
 Is it possible to add 2 disks to increase the size of the pool below?

 NAME STATE READ WRITE CKSUM
   testpool ONLINE 0 0 0
 mirror-0 ONLINE 0 0 0
 c1t2d0 ONLINE 0 0 0
 c1t3d0 ONLINE 0 0 0
 mirror-1 ONLINE 0 0 0
 c1t4d0 ONLINE 0 0 0
 c1t5d0 ONLINE 0 0 0

You have two ways to increase the size of this pool (sanely).

First, you can add a third mirror vdev.  I think that's what you're
specifically asking about.  You do this with the zpool add ... command,
see man page.

Second, you can add (zpool attach) two larger disks to one of the existing
mirror vdevs, wait until the resilvers have finished, and then detach the
two original (smaller) disks.  At that point (with recent versions; with
older versions you have to set a property) the vdev will expand to use the
full capacity of the new larger disks, and that space will become
available in the pool.

-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info

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


Re: [zfs-discuss] Increase size of 2-way mirror

2010-10-06 Thread Edward Ned Harvey
 From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
 boun...@opensolaris.org] On Behalf Of Tony MacDoodle
 
 Is it possible to add 2 disks to increase the size of the pool below?
 
 NAME STATE READ WRITE CKSUM
   testpool ONLINE 0 0 0
 mirror-0 ONLINE 0 0 0
 c1t2d0 ONLINE 0 0 0
 c1t3d0 ONLINE 0 0 0
 mirror-1 ONLINE 0 0 0
 c1t4d0 ONLINE 0 0 0
 c1t5d0 ONLINE 0 0 0

It's important that you know the difference between add and attach
methods for increasing this size...

If you add another mirror, then you'll have mirror-0, mirror-1, and
mirror-2.  You cannot remove any of the existing devices. 

If you attach a larger disk to mirror-0, and possibly fiddle with the
autoexpand property and a little bit of additional futzing (pretty basic,
including resilver  detach the old devices) then you can effectively
replace the existing devices with larger devices.  No need to consume extra
disk bays.

It's all a matter of which is the more desirable outcome for you.

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