The dpmzone-createzone command creates a zone with custom parameters on the Solaris 10 host.
This command has the following format:
dpmzone-createzone -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]
Specifies the Solaris Zones server. This parameter is case-sensitive.
Defines the name of the new zone.
Defines the pathname from the global zone to the current 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
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
Specifies the network interface used by the zone, for example, eri0.
(Optional) Defines the IP address of the zone.
Specifies the pool with which you associate the zone.
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. Options 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.
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.
Defines the swap memory that is assigned to the zone.
Defines the locked memory that is assigned to the zone. Locked memory cannot be paged.
(Optional) Defines a description of the zone.
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. |
|