How to Import an Installed Zone into a New Zone Cluster

  1. Assume the root role on a node of the global cluster.

    You perform all steps of the procedure from a node of the global cluster.

  2. Verify that the zone that you want to import is in an installed state.

    For example:

    phy-schost# zoneadm -z zone_name list -v

    Ensure that you meet the requirements as described in Requirements and Restrictions.

  3. Run the clzonecluster configure command on a configured zone cluster to set the necessary properties.
    phy-schost# clzonecluster configure new-zoneclustername
  4. Create the zone cluster using the create command.
    clzc:new-zoneclustername:> create
  5. Set the zonepath, ip-type, and brand properties of the zone cluster.
    clzc:new-zoneclustername:> set zonepath=/zones/zonec
    clzc:new-zoneclustername:> set ip-type=shared
    clzc:new-zoneclustername:> set brand=solaris
  6. Enter node scope using the add node command.
    clzc:new-zoneclustername:> add node
  7. Set physical host in the node scope which hosts the zone to be imported using the set physical-host command.
    clzc:new-zoneclustername:node> set physical-host=host
  8. Run the import-zone command on the installed zone.

    Accept the prompt to rename the zone.

    clzc:new-zoneclustername:node> import-zone zonename=zone_name

    If you are running the import-zone command in a non-interactive mode:

    import-zone -y zonename=zone_name
  9. Set the hostname in the node scope.
    clzc:new-zoneclustername:node> set hostname=host
  10. (Optional) Set other node scope properties and resources, if necessary.

    For example:

    # clzc:new-zoneclustername:node> add privnet
    # clzc:new-zoneclustername:node:privnet> set physical=bge0
    # clzc:new-zoneclustername:node:privnet> end
  11. End the node scope and commit the zone configuration.
  12. Verify that the zone is imported into the zone cluster.
    phy-schost# clzonecluster show -v zoneclustername

Example 6-2 Importing an Installed Zone into a New Zone Cluster

This example shows how to import an installed zone, zone1, into a new zone cluster, sczone-new.

phy-schost# clzc configure sczone-new
clzc:sczone-new:> create
clzc:sczone-new:> set zonepath=/zones/zonec
clzc:sczone-new:> set ip-type=shared
clzc:sczone-new:> set brand=solaris
clzc:sczone-new:> add node
clzc:sczone-new:node> set physical-host=phost2
clzc:sczone-new:node> import-zone zonename=zone1
This operation will rename the zone. Do you want to continue(Y/N)?
Y
clzc:sczone-new:node> set hostname=thost2-0a
clzc:sczone-new:node> end
clzc:sczone-new:> commit
clzc:sczone-new:> exit
#