Hi all, Forgive me if this is a dumb question. Is it possible for a two-disk mirrored zpool to be seamlessly enlarged by gradually replacing previous disk with larger one? Say, in a constrained desktop, only space for two internal disks is available, could I just begin with two 160G disks, then at some time, replace one of the 160G with 250G, resilvering, then replace another 160G, and finally get a two-disk 250G mirrored pool? Cheers, Ivan. This message posted from opensolaris.org
Ivan Wang wrote:> Hi all, > > Forgive me if this is a dumb question. Is it possible for a two-disk mirrored zpool to be seamlessly enlarged by gradually replacing previous disk with larger one? > > Say, in a constrained desktop, only space for two internal disks is available, could I just begin with two 160G disks, then at some time, replace one of the 160G with 250G, resilvering, then replace another 160G, and finally get a two-disk 250G mirrored pool? > > Cheers, > Ivan. > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussYes. After both drives are replaced, you will automatically see the additional space. -- Erik Trimble Java System Support Mailstop: usca14-102 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)
Erik Trimble wrote:> Ivan Wang wrote: >> Hi all, >> >> Forgive me if this is a dumb question. Is it possible for a two-disk mirrored zpool to be seamlessly enlarged by gradually replacing previous disk with larger one? >> >> Say, in a constrained desktop, only space for two internal disks is available, could I just begin with two 160G disks, then at some time, replace one of the 160G with 250G, resilvering, then replace another 160G, and finally get a two-disk 250G mirrored pool? >> >> Cheers, >> Ivan. >> >> >> This message posted from opensolaris.org >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > Yes. > > After both drives are replaced, you will automatically see the > additional space.I believe currently after the last replace an import/export sequence is needed to force zfs to see the increased size. Neil.
> > Erik Trimble wrote: > > After both drives are replaced, you will automatically see the > > additional space. > > I believe currently after the last replace an > import/export sequence > is needed to force zfs to see the increased size.What if root fs is also in this pool? will there be any limitation for a pool containing /? Thanks, Ivan.> > Neil. > > ______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discu > ssThis message posted from opensolaris.org
Would the bootloader have issues here? On x86 I would imagine that you would have to reload grub, would a similar thing need to be done on SPARC? Ivan Wang wrote:>>> Erik Trimble wrote: >>> After both drives are replaced, you will automatically see the >>> additional space. >>> >> I believe currently after the last replace an >> import/export sequence >> is needed to force zfs to see the increased size. >> > > What if root fs is also in this pool? will there be any limitation for a pool containing /? > > Thanks, > Ivan. > > >> Neil. >> >> ______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discu >> ss >> > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
> > Would the bootloader have issues here? On x86 I would > imagine that you > would have to reload grub, would a similar thing need > to be done on SPARC? >Yeah, that''s also what I''m thinking, apparently zfs mirror doesn''t take care of boot sector. So as of now, estimating size of a zfs root pool is still required, better not to go with a carefree grow-as-needed mindset. Ivan.> > Ivan Wang wrote: > >>> Erik Trimble wrote: > >>> After both drives are replaced, you will > automatically see the > >>> additional space. > >>> > >> I believe currently after the last replace an > >> import/export sequence > >> is needed to force zfs to see the increased size. > >> > > > > What if root fs is also in this pool? will there be > any limitation for a pool containing /? > > > > Thanks, > > Ivan. > > > > > >> Neil. > >> > >> ______________________________________________ > >> zfs-discuss mailing list > >> zfs-discuss at opensolaris.org > >> > http://mail.opensolaris.org/mailman/listinfo/zfs-discu > >> ss > >> > > > > > > This message posted from opensolaris.org > > _______________________________________________ > > zfs-discuss mailing list > > zfs-discuss at opensolaris.org > > > http://mail.opensolaris.org/mailman/listinfo/zfs-discu > ss > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discu > ssThis message posted from opensolaris.org