The createzone command creates a zone with custom parameters on the Solaris host.
This command has the following format:
dpmzone createzone [-sc sc_host] -host hostname -name zonename -path zonepath -type type [-autoboot] [-if_type name] [-ip ip] [-pool_name pool] [-sched_type sched] [-phy_mem pmem] [-swap_mem smem] [-lock_mem lmem] [-desc desc] [-pre] [-post] [-locale iso639value]
(Optional) Specifies the host name of the Service Controller.
Specifies the Solaris Zones server. This parameter is case-sensitive.
Defines the name of the new zone.
Defines the path of the new zone.
Specifies the type of the new zone. Options include the following:
Creates a non-global zone with a Solaris 10 operating environment for running applications.
Creates a whole root zone that does not inherit packages.
Creates a non-global zone that contains a non-native operating environment for running applications.
Default: native
(Optional) Specifies that a zone boots automatically at system boot.
Note: If the zones service is disabled on the server, the zone does not autoboot, regardless of the setting of this property. You can enable the service by using the following command:
svcadm enable svc:/system/zones:default
(Optional) Specifies the type of the network interface used by the zone, for example, eri0.
(Optional) Defines the IP address of the zone.
(Optional) Specifies the name of the pool with which you associate the zone.
(Optional) Specifies the type of scheduler used to allocate CPU time based on shares. Shares are the portion of the system CPU resources allocated to a project. Valid values include the following:
Specifies the Time Share Scheduler which fairly allots CPU resources to every process and does not concentrate CPU resources on a particular process. ts is the default scheduler for the Solaris operating environment.
Specifies the Fair Share Scheduler which allows you to allocate CPU time based on shares.
(Optional) Defines the physical memory that is assigned to the zone. A scale (K, M, G, T) can be applied to the value of this number, for example, 1M is one megabyte.
(Optional) Defines the swap memory that is assigned to the zone.
(Optional) Defines the locked memory that is assigned to the zone. Locked memory cannot be paged.
(Optional) Defines a description for the zone.
(Optional) Specifies whether to generate an event before the operation is performed.
(Optional) Specifies whether to generate an event after the operation is performed.
(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
Create a zone called WebServer4:
dpmzone createzone -host MySolarisServer -name WebServer4 -path /Zones/Apache -type native -autoboot -if_type eri0 -ip 192.168.100.100 -pool_name WebServer -sched_type fss -phy_mem 1024M -swap_mem 2048M
Copyright © 2013 CA. All rights reserved. |
|