Hi Gareth, 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.
I’m pretty sure I disabled auto mount on the old zones pool and did the pool imports without mounting. From there you can switch the mount points on the 2 pools and try mounting the new zones pool. Sadly I didn’t write down the exact steps but that’s the gist... keeping zfs from mounting file systems from zones is the key. If that doesn’t help let me know and I can probably refresh my memory from the man pages... Bill > On Jan 31, 2018, at 1:05 PM, Gareth Howell <[email protected]> wrote: > > Hi > I’m trying to migrate my home server to a new pool - the server was > originally created with a mirror and I want to move to raidz1. > > I created the new pool as ‘tempzone’ and then used zfs send/recv to copy all > the data from ‘zones’ to ‘tempzone’. I then thought I could simply stop all > services, export the two pools and reimport using the oppposite names - i.e. > zfs import newzone zones… > > zfs export zones failed due to busy filesystems: basically /var. I couldn’t > get past this so I rebooted into recovery mode and then tried again. > > This seemed to work but I notice that in fact /var /usb and a couple of > others are still being mounted from the old pool. > > Any ideas on how to achieve my desired result? > > Gareth > ------------------------------------------- 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
