Previous Topic: dpmzone associateproject Command--Associate a Task with a ProjectNext Topic: dpmzone createandinstallzone Command--Create and Install a Zone


dpmzone clonezone Command--Clone a Zone

The clonezone command creates a duplicate zone from an existing zone. The source zone must be halted to start the cloning process. Cloning occurs on the Solaris 10 server and may take some time.

This command has the following format:

dpmzone clonezone [-sc sc_host] 
-host hostname 
-name zonename 
-new_name nzonename 
-new_path npath 
[-pre] 
[-post]
[-locale iso639value]
-sc sc_host

(Optional) Specifies the host name of the Service Controller.

-host hostname

Specifies the Solaris Zones server. This parameter is case-sensitive.

-name zonename

Specifies the zone that you want to clone.

-new_name nzonename

Defines the new zone name.

-new_path npath

Defines the path of the new zone.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example

Clone a zone on host SolarisServer2.

dpmzone clonezone -host SolarisServer2 -name myzone1 -new_name myzone2 
-new_path /opt/zones/myzone2