Hi Guys,
I noticed that there are some different behavior in cloning a zone in
os2008.11, here is the message I've gotten:
root at opensolaris:/etc/zones# zoneadm -z demozone1 clone templatezone
sys-unconfig started Sun Dec 07 11:07:19 2008
rm: cannot remove `/rpool/zones/demozone1/root/etc/vfstab.sys-u': No such file
or directory
grep: /rpool/zones/demozone1/root/etc/dumpadm.conf: No such file or directory
sys-unconfig completed Sun Dec 07 11:07:19 2008
root at opensolaris:/etc/zones# zfs list -t snapshot
NAME USED AVAIL REFER
MOUNTPOINT
rpool/ROOT/opensolaris at install 134M - 2.21G -
rpool/zones/templatezone/ROOT/zbe at demozone1_snap 0 - 331M -
root at opensolaris:/etc/zones#
A snapshot was created on my source zone everytime I cloned from there, and
there are two lines of messages prompted after issuing commands, is this
expected message?
If I tried to use clone -m copy command, here is what I've gotten:
(I have deleted the demozone1 and prepared it for cloning again...)
root at opensolaris:/etc/zones# zonecfg -z demozone1 -f demozone1.cfg
root at opensolaris:/etc/zones# zoneadm -z demozone1 clone -m copy templatezone
/usr/lib/brand/ipkg/clone: -m: unknown option
Usage: /usr/lib/brand/ipkg/clone {sourcezone}
usage: clone [-m method] [-s <ZFS snapshot>] [brand-specific args] zonename
Clone the installation of another zone. The -m option can be used to
specify 'copy' which forces a copy of the source zone. The -s option
can be used to specify the name of a ZFS snapshot that was taken from
a previous clone command. The snapshot will be used as the source
instead of creating a new ZFS snapshot. All other arguments are passed
to the brand clone function; see brands(5) for more information.
root at opensolaris:/etc/zones#
I don't have any problem in os2008.05 with exactly the same commands listed
above, so can anyone enlighten me what did I do wrong for cloning zones in this
latest release of opensolaris?
Regards,
Wee-Lim
--
This message posted from opensolaris.org