On 10/02/2015 10:06 AM, Dirk Steinberg wrote:

Am 02.10.2015 um 14:40 schrieb Nahum Shalman <nshalman-smar...@elys.com <mailto:nshalman-smar...@elys.com>>:


What do I need to do to trigger the growing of the pool (including the GPT label)?

Should be as simple as:
    zpool online -e zones <disk identifier>

If you happen to know that it will always be e.g. c1t0d0 you could hardcode...
    zpool online -e zones c1t0d0

Does this work while the pool is already online?

Yes, in fact the pool *must* be online.

Consider this scenario: I prepare a 2GB disk image in VMware, compress it
and upload this into the netbooted Linux rescue system on my remote
rented server. I write that image to a 2 TB disk and reboot.
I have no remote console. I can only access the system via SSH after
the full bootup has completed, which for SmartOS implies that the
zones pool has been imported. When I login via SSH, I cannot
offline the zones pool. Will the „zpool online -e“ command still
work for the online pool disk?

Still yes. Again, to be safe you'll probably want to re-install grub after you expand the pool.

You should be able to test this entire procedure in a pair of VMs locally with VMware:

Create a bootable zones pool on "small" virtual disk (2G may be too small given the requirements of the dump device etc.)
Drop in whatever goop is needed to handle the MAC address changing.
Verify that it boots as is.
Create whatever portable image format you wish to use from that disk.
Boot a new VM with a bigger virtual disk from the Linux rescue system and drop the image onto the big disk
Verify that it boots as is.
"zpool online -e zones <disk>"
Reinstall grub (possibly optional, definitely recommended)
Reboot and verify that the pool has grown satisfactorily and that the system still boots

If you need to do a whole batch of such machines you could probably automate all of it by checking the pool for a non-zero expandsize, etc.

-Nahum



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to