以 PDF 格式下载本书 (9905 KB)
poolcfg(1M)Name | Synopsis | Description | Options | Usage | Examples | Attributes | See Also Name
Synopsis/usr/sbin/poolcfg -c command [-d | [filename]] /usr/sbin/poolcfg -f command_file [-d | [filename]] /usr/sbin/poolcfg -h DescriptionThe poolcfg utility provides configuration operations on pools and sets. These operations are performed upon an existing configuration and take the form of modifications to the specified configuration file. If you use the -d option, the modifications occur to the kernel state. Actual activation of the resulting configuration is achieved by way of the pooladm(1M) utility. Pools configuration files are structured files that must have been constructed using poolcfg itself or libpool(3LIB) directly. An invocation of poolcfg with the pool dynamic location and write permission will hang if the dynamic location has already been opened for writing. The configurations which are created by this utility can be used by pooladm to instantiate the configuration upon a target host. Options
The following options are supported: Usage
ScriptsA script consists of editing commands, one per line, of the following: Property Lists( proptype name = value [ ; proptype name = value ]* ) where the last definition in the sequence for a given proptype, name pair is the one that holds. For property deletion, use ~ proptype name. Resource Lists( resourcetype name [ ; resourcetype name ]* ) where the last specification in the sequence for a resource is the one that holds. There is no deletion syntax for resource lists. Component Lists( componenttype name [ ; componenttype name ]* ) where the last specification in the sequence for a component is the one that holds. There is no deletion syntax for component lists. Recognized EntitiesResource TypesProperty Types
ExamplesExample 1 Writing a poolcfg ScriptThe following poolcfg script creates a pool named Accounting, and a processor set, small-1. The processor set is created first, then the pool is created and associated with the set. create pset small-1 ( uint pset.min = 1 ; uint pset.max = 4) create pool Accounting associate pool Accounting ( pset small-1 ) Example 2 Reporting on pool_0The following command reports on pool_0 to standard output in human readable form:
Example 3 Destroying pool_0 and Its AssociationsThe following command destroys pool_0 and associations, but not the formerly associated resources:
Example 4 Displaying the Current ConfigurationThe following command displays the current configuration:
Example 5 Moving cpu with ID 2 to Processor Set pset1 in the KernelThe following command moves cpu with ID 2 to processor set pset1 in the kernel:
Example 6 Moving 2 cpus from Processor Set pset1 to Processor Set pset2 in the KernelThe following command moves 2 cpus from processor set pset1 to processor set pset2 in the kernel:
AttributesSee attributes(5) for descriptions of the following attributes:
The invocation is Committed. The output is Uncommitted. See Alsopooladm(1M), poolbind(1M), libpool(3LIB), attributes(5), formats(5) System Administration Guide: Virtualization Using the Solaris Operating System Name | Synopsis | Description | Options | Usage | Examples | Attributes | See Also |
||||||||||||