How to Import an Installed Zone into an existing 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 zoneclustername
  4. Enter the node scope property using the add node command.
    clzc:zoneclustername:> add node
  5. Set the physical host property in the node scope which hosts the zone to be imported using the set physical-host command.
    clzc:zoneclustername:node> set physical-host=host
  6. Run the import-zone command on the installed zone.

    Accept the prompt to rename the zone.

    clzc: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
  7. Set the hostname in the node scope.
    clzc:zoneclustername:node> set hostname=host
  8. (Optional) Set other node scope properties and resources, if necessary.

    For example:

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

Example 6-1 Importing an Installed Zone into an Existing Zone Cluster

This example shows how to add an installed zone, zone1, into an existing zone cluster, sczone.

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