[OpenIndiana-discuss] Moving an OI zone between servers
Christopher X. Candreva
chris at westnet.com
Wed Apr 16 18:26:25 UTC 2014
On Wed, 16 Apr 2014, Jim Klimov wrote:
> 16 апреля 2014 г. 18:30:13 CEST, "Christopher X. Candreva" <chris at westnet.com> пишет:
> >
> >I'm having a devil of a time moving a zone to another server. I tried
> >following the Solaris instructions (
> >https://blogs.oracle.com/openomics/entry/solaris_zone_migration ), but
> >at
> >the install step it seems OI's zoneadm can't read a zfs send file, as I
> >get
> >this error:
> >
> >chris at Zeb:/root# zoneadm -z Jacob install -a Jacob.zfs -p
> >A ZFS file system has been created for this zone.
> > Log File: /var/tmp/Jacob.install_log.RQaiQk
> >Error: Unknown archive format. Must be a flash archive, a cpio archive
> >(can
> >also be gzipped or bzipped), a pax XUSTAR archive, or a level 0 ufsdump
> >
> >archive.
> >ERROR: Installation aborted.
> >
> >
> >I've also tried doing the zfs send/receive ahead of time and trying to
> >attach, but get this error:
> >
> >Log File: /var/tmp/Jacob.attach_log.CKaGhl
> >ERROR: Failed to locate any dataset mounted at /zones/jacob/root.
> >Attach
> >requires a mounted dataset.
> > Result: Attach Failed.
> >chris at Zeb:/root#
> >
> >
> >On the old server with the zone shutdown, I see these mounts:
> >rpool/zones/jacob 43722064 33 43722031 1%
> >/zones/jacob
> >rpool/zones/jacob/ROOT/zbe-1 44543497 821466 43722031 2%
> >/zones/jacob/root
> >
> >
> >But ...ROOT/zbe-1 has a mount point of legacy. I can't make any changes
> >to
> >the zfs file systems from the global zone because they are delegated to
> >the
> >zone. Is it possible to attach a zone this way ? What is the best way
> >to do
> >this ?
> Several ideas; on one hand, you can use 'zoneadm ready' to mount the zone
> filesystems in an official manner. You might also unset the 'zoned=on'
> attribute temporarily and mount the dataset manually (set mountpoint or
> use 'mount -F zfs pool/... /mnt/...' to maintain legacy mode).
> To transfer you'd probably use 'zfs send -R' for recursive (children and
> snapshots), though you can use rsync if you get the filesystem mounted and
> the dataset hierarchy recreated by hand - but you'd rarely need that (i.e.
> large replica over bad link, so zfssend never succeeds).
Jim - thanks for the response.
"zoneadm ready" doesn't work, it has to be installed first and that's what
I'm trying to do with the attach.
If I set "zoned=off" on rpool/zones/jacob/ROOT/zbe-1 and mount it, I get
this error:
chris at Zeb:/root# zoneadm -z Jacob attach
Log File: /var/tmp/Jacob.attach_log.puaOrn
ERROR: Failed to configure dataset rpool/zones/jacob/ROOT: could not set zoned=off.
ERROR: Failed to configure dataset rpool/zones/jacob/ROOT/zbe-1: could not set zoned=off.
Result: Attach Failed.
Since zoned is already off I'm not sure why it's trying to do this.
Setting zoned=on causes the filesystems to unmount
trying "attach -n" obviously returns without an error, but when I try to
boot:
chris at Zeb:/root# zoneadm -z Jacob boot
zone 'Jacob': ERROR: no active dataset.
zone 'Jacob':
zoneadm: zone 'Jacob': call to zoneadmd failed
==========================================================
Chris Candreva -- chris at westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
More information about the OpenIndiana-discuss
mailing list