[Pkg] [OpenIndiana Distribution - Bug #1204] zoneadm cannot create clone of zone from snapshot

illumos project devnull at illumos.org
Wed Nov 13 01:44:39 UTC 2013


Issue #1204 has been updated by Jim Klimov.


Test results:

### Make origin, prepare zone configs beforehand
# zfs snapshot -r pond/zones/_ips/DUMMY/DUMMY-fullroot at 20131109-02

### Clone by snapshot name
# zoneadm -z ns-master clone -s 20131109-02 DUMMY-fullroot

### Clone by dataset at snap (dataset ignored, because active dataset is found automatically)
# zoneadm -z mysql3 clone -s rpool at 20131109-02 DUMMY-fullroot
WARNING: Ignoring dataset, using only snapshot name

# zfs list -o origin,name -r pond/zones/_ips/dbms/mysql3
ORIGIN                                                     NAME
-                                                          pond/zones/_ips/dbms/mysql3
-                                                          pond/zones/_ips/dbms/mysql3/ROOT
pond/zones/_ips/DUMMY/DUMMY-fullroot/ROOT/zbe at 20131109-02  pond/zones/_ips/dbms/mysql3/ROOT/zbe


It may be argued that the dataset part should not be ignored, and not the "active" zone root should be cloned but literally the provided dataset (should then be "$ZONENAME/ROOT/zbe-*"). This is not currently implemented, but can be done with little effort if deemed desirable.
----------------------------------------
Bug #1204:  zoneadm cannot create clone of zone from snapshot
https://www.illumos.org/issues/1204

Author: Alexander Eremin
Status: Feedback
Priority: Normal
Assignee: OI PKG
Category: pkg (Image Packaging System)
Target version: 
Difficulty: Medium
Tags: clone


Bug from https://defect.opensolaris.org/bz/show_bug.cgi?id=5940 still exist, i.e.:

~# zoneadm -z test2 clone -s rpool/zones/test/ROOT/zbe-1 at test_snap
/usr/lib/brand/ipkg/clone: -s: unknown option

brand-specific usage: 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.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the Pkg-team mailing list