[Pkg] [OpenIndiana Distribution - Bug #1204] zoneadm cannot create clone of zone from snapshot
illumos project
devnull at illumos.org
Thu Nov 14 23:03:31 UTC 2013
Issue #1204 has been updated by Jim Klimov.
File ips-clone.patch added
% Done changed from 80 to 90
Updated the patch. Now it supports cloning from a different zone boot environment of the same zone by accepting the following values for "-s" (snapshot):
1) *@* - such strings are interpreted as dataset at snapname, including an empty dataset part (only "@snapname" is then accepted for currently active source ZBE)
2) */* - such strings specify the dataset, of which a snapshot will be made and used automatically
3) * - any other strings specify the snapshot name, which should exist of the currently active source zone root
Sanity checks are done that the specified source dataset (if specified) conforms to the naming and attributes of ZBE's, and is a ZBE of the specified source zone, and that a snapshot (if specified) exists in the selected source dataset.
Also added is a "-X" 'brand-specific argument' which allows to disable "sys-unconfig" in the newly cloned zone. Sometimes admins and their carefully prepared template zones know better ;)
I did not find the relevant manpages where these bits of information could be added; otherwise the task is tested and complete as far as I am concerned.
----------------------------------------
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