Having attached new bigger disks to a mirror, and detached all the older smaller disks, how to I tell ZFS to expand the size of the mirror to match that of the bigger disks? I had a look through the system admin guide, but couldn''t find this anywhere. In SVM, you just say metattach <mirror> with no devices listed to achieve this, but the equivalent in zpool gives a syntax error. -- Andrew
On Jan 29, 2008 5:55 PM, Andrew Gabriel <Andrew.Gabriel at sun.com> wrote:> Having attached new bigger disks to a mirror, and detached all the older > smaller disks, how to I tell ZFS to expand the size of the mirror to > match that of the bigger disks? I had a look through the system admin > guide, but couldn''t find this anywhere. > > In SVM, you just say metattach <mirror> with no devices listed to > achieve this, but the equivalent in zpool gives a syntax error.I thought I saw something on the list lately saying that there is a bug that requires you to export the zpool and then import it to get the additional space to be seen. -- Mike Gerdts http://mgerdts.blogspot.com/
Mike Gerdts wrote:> On Jan 29, 2008 5:55 PM, Andrew Gabriel <Andrew.Gabriel at sun.com> wrote: > >> Having attached new bigger disks to a mirror, and detached all the older >> smaller disks, how to I tell ZFS to expand the size of the mirror to >> match that of the bigger disks? I had a look through the system admin >> guide, but couldn''t find this anywhere. >> >> In SVM, you just say metattach <mirror> with no devices listed to >> achieve this, but the equivalent in zpool gives a syntax error. >> > > I thought I saw something on the list lately saying that there is a > bug that requires you to export the zpool and then import it to get > the additional space to be seen. >That''s a real bummer for a zfs root pool... unless you can just reboot?
Tim Spriggs wrote:> Mike Gerdts wrote: >> On Jan 29, 2008 5:55 PM, Andrew Gabriel <Andrew.Gabriel at sun.com> wrote: >> >>> Having attached new bigger disks to a mirror, and detached all the >>> older >>> smaller disks, how to I tell ZFS to expand the size of the mirror to >>> match that of the bigger disks? I had a look through the system admin >>> guide, but couldn''t find this anywhere. >>> >>> In SVM, you just say metattach <mirror> with no devices listed to >>> achieve this, but the equivalent in zpool gives a syntax error. >>> >> >> I thought I saw something on the list lately saying that there is a >> bug that requires you to export the zpool and then import it to get >> the additional space to be seen. >>Someone else just pointed me to http://bugs.opensolaris.org/view_bug.do?bug_id=6606879> That''s a real bummer for a zfs root pool... unless you can just reboot?It certainly shouldn''t do it without being told to -- it has no way to know that you aren''t going to reattach one of the smaller drives tomorrow. I hit a bug with that in early days of zfs where you detach a disk from a mirror and then can''t attach it again because it''s 16 sectors smaller that the other disk in the mirror, even though they were identical part numbers. It seems like there''s a zpool resize command missing. -- Andrew