On 31 January 2018 at 10:49, H William Welliver III
<[email protected]> wrote:
> I did this a few months ago and I seem to recall the trick being to reboot 
> into recovery mode so that the pools aren’t imported. You have to do all the 
> work without mounting the zones pool. If somehow it gets mounted you’re out 
> of luck and will have to reboot try again.

Yes, I would be inclined to boot the system in noimport/recovery mode
and then import both pools manually.

There are two flags to "zpool import" which are probably of interest:
-R and -N.  From the manual page[1] for zpool(1M):

    -N
        Import the pool without mounting any file systems.

    -R root
        Sets the cachefile property to none and the altroot
        property to "root".

e.g., you might import the old zones pool via "zpool import -N -R /a
zones" where "/a" is an empty directory.  Note that if you
accidentally have two pools with the same name, you can import them by
the pool guid which you can see by running "zpool import" with no
other arguments, and at import time you can give them a new name while
doing so.

[1]: http://illumos.org/man/1M/zpool


Cheers.

-- 
Joshua M. Clulow
Engineer @ Joyent
http://blog.sysmgr.org


-------------------------------------------
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