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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20101006/b42b7f75/attachment.html>
On Wed, Oct 6, 2010 at 12:14 PM, Tony MacDoodle <tpsdoodle at 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 fjwcash at gmail.com
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 0You 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, dd-b at 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
> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > bounces at 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 0It''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.