Achim Wolpers
2011-Feb-06 14:41 UTC
[zfs-discuss] Replace block devices to increase pool size
Hi! I have a zpool biult up from two vdrives (one mirror and one raidz). The raidz is built up from 4x1TB HDs. When I successively replace each 1TB drive with a 2TB drive will the capacity of the raidz double after the last block device is replaced? Achim -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 299 bytes Desc: OpenPGP digital signature URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110206/8b35a3b5/attachment.bin>
If autoexpand = on, then yes. zpool get autoexpand <pool> zpool set autoexpand=on <pool> The expansion is vdev specific, so if you replaced the mirror first, you''d get that much (the extra 2TB) without touching the raidz. Cheers, On 7 February 2011 01:41, Achim Wolpers <achimwo7 at googlemail.com> wrote:> Hi! > > I have a zpool biult up from two vdrives (one mirror and one raidz). The > raidz is built up from 4x1TB HDs. When I successively replace each 1TB > drive with a 2TB drive will the capacity of the raidz double after the > last block device is replaced? > > Achim > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110207/62735bc4/attachment.html>
David Dyer-Bennet
2011-Feb-07 15:33 UTC
[zfs-discuss] Replace block devices to increase pool size
On Sun, February 6, 2011 08:41, Achim Wolpers wrote:> I have a zpool biult up from two vdrives (one mirror and one raidz). The > raidz is built up from 4x1TB HDs. When I successively replace each 1TB > drive with a 2TB drive will the capacity of the raidz double after the > last block device is replaced?You may have to manually set property autoexpand=on; I found yesterday that I had to (in my case on a mirror that I was upgrading). Probably depends on what version you created things at and/or what version you''re running now. I replaced the drives in one of the three mirror vdevs in my main pool over this last weekend, and it all went quite smoothly, but I did have to turn on autoexpand at the end of the process to see the new space. -- 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
Roy Sigurd Karlsbakk
2011-Feb-07 19:33 UTC
[zfs-discuss] Replace block devices to increase pool size
> > I have a zpool biult up from two vdrives (one mirror and one raidz). > > The > > raidz is built up from 4x1TB HDs. When I successively replace each > > 1TB > > drive with a 2TB drive will the capacity of the raidz double after > > the > > last block device is replaced? > > You may have to manually set property autoexpand=on; I found yesterday > that I had to (in my case on a mirror that I was upgrading). Probably > depends on what version you created things at and/or what version > you''re > running now. > > I replaced the drives in one of the three mirror vdevs in my main pool > over this last weekend, and it all went quite smoothly, but I did have > to > turn on autoexpand at the end of the process to see the new space.autoexpand is by default off. I guess this is in case someone do something as replacing two 500GB drives with two 1TB drives and then wants to replace those with new 500GB drives, since setting autoexpand=on is quite simple and for the expansion, irreversible. If you have expanded a VDEV, the only way to shrink it is to backup, reconfigure ZFS and restore. Vennlige hilsener / Best regards roy -- Roy Sigurd Karlsbakk (+47) 97542685 roy at karlsbakk.net http://blogg.karlsbakk.net/ -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et element?rt imperativ for alle pedagoger ? unng? eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer p? norsk.