sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next

ProcedureHow to Clone a Zone from an Existing Snapshot

You can clone a source zone multiple times from an existing snapshot that was originally taken when you cloned a zone.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. Configure the zone zone2.

  3. Specify that an existing snapshot be used to create new-zone2.

    global# zoneadm -z zone2 clone -s zeepool/zones/lx-zone@SUNWzone1 lx-zone

    The system displays:

    Cloning snapshot zeepool/zones/lx-zone@SUNWzone1

    The zoneadm command validates the software from the snapshot SUNWzone1, and clones the snapshot.

  4. List the zones on the system.

    global# zoneadm list -iv
      ID NAME             STATUS         PATH                    BRAND
       0 global           running        /                       native
       - lx-zone          installed      /zeepool/zones/lx-zone  lx
       - zone1            installed      /zeepool/zones/zone1    lx
       - zone2            installed      /zeepool/zones/zone1    lx

ProcedureHow to Use Copy Instead of ZFS Clone

Use this procedure to prevent the automatic cloning of a zone on a ZFS file system by specifying that the zonepath should be copied instead.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. Specify that the zonepath on ZFS be copied and not ZFS cloned.

    global# zoneadm -z zone1 clone -m copy lx-zone

Deleting an lx Branded Zone From the System

The procedure described in this section completely deletes a zone from a system.

ProcedureHow to Remove an lx Branded Zone

  1. Shut down the zone lx-zone.

    global# zlogin lx-zone shutdown

  2. Remove the root file system for lx-zone.

    global# zoneadm -z lx-zone uninstall -F

  3. Delete the configuration for lx-zone.

    global# zonecfg -z lx-zone delete -F

  4. List the zones on the system, to verify that lx-zone is no longer listed.

    global# zoneadm list -iv

    You will see a display that is similar to the following:

    ID  NAME     STATUS       PATH   BRAND
     0  global   running      /      native

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.