Purpose
Change
the characteristics of a storage pool.
Syntax
Increase the size of a file storage pool:
chsp -add [-sp StoragePool] -size Size
Add
physical volume to a logical volume storage pool:
chsp -add [ -f ] [-sp StoragePool] PhysicalVolume...
Remove
a physical volume from a logical volume storage pool :
chsp -rm [ -f ] [-sp StoragePool] PhysicalVolume...
Set
storage pool as the default:
chsp -default StoragePool
Description
The chsp command
adds and removes physical volumes represented by the PhysicalVolume parameter
from a logical volume storage pool. Before adding a physical volume,
the chsp command checks to verify that it is not already in
another volume group or storage pool, or is not
assigned to a shared memory pool (to be used as a paging space device
by a shared memory partition). If the system detects a description
area from a volume group or storage pool, the command will fail.
If the -f flag is specified, the physical volume is added even
if it contains a description area, unless it is a member of another
storage pool or volume group, or
is assigned to a shared memory pool (to be used as a paging space
device by a shared memory partition).
Before removing
physical volumes from a logical volume the storage pool, the
chsp command
prompts the user to verify each logical volume should be removed.
If the user specifies the
-f flag, the logical volumes are
removed with out prompting for input. If all physical volumes in a
storage pool are removed, the storage pool is also removed.
Note: A logical volume storage pool which contains file
storage pools or the Virtual Media Repository cannot be removed.
If
the -sp flag is not specified, the default storage pool is
assumed.
If the specified, or default, storage
pool is a file storage pool and the
-size flag is specified
the given pools size will be increased by at least the amount specified.
The specified flag cannot be a negative number and file storage pools
cannot be reduced in size.
| Size |
Minimum file storage pool size |
| ###M/m |
###MB |
| ###G/g |
###GB |
If the -default flag is included, the storage
pool specified will become the default storage pool for all users.
If no default has been set, the rootvg storage pool will be the default.
Only the padmin user can set the default storage pool.
Files
| -add |
Adds the given physical volume into specified
storage pool. If a storage pool is not specified the physical volume
is added to the default pool. |
| -default |
Sets the specified storage pool as the system
default pool. Only the padmin user can set the default storage pool. |
| -f |
When combined with the -add flag, forces
the physical volume to be added to the specified storage pool unless
the physical volume is part of another storage pool or volume group
in the Device Configuration Database or a volume group that is active.
When combined with the -rm flag, forces the removal of all
logical volumes on the physical volume before removal from the storage
pool. |
| -rm |
Remove the specified physical volume from specified
storage pool. If a storage pool is not specified, the physical volume
is removed from the default pool. The user will be prompted to confirm
the removal of any logical volumes on the physical volume. |
| -size StoragePool |
Specifies the minimum amount of storage to add
to the file storage pool. |
| -sp StoragePool |
Specifies the storage pool to be changed. |
Exit Status
| 23 |
Specified storage pool is not valid |
Examples
- To add physical volume hdisk3 to the default storage pool, type:
chsp -add hdisk3
- To remove physical volume hdisk2 from clstorage storage pool,
type:
chsp -rm -sp clstorage hdisk2
- To increase the size of the file storage pool
clientData by at least 1 gigabyte, type:
chsp -add -sp clientData -size 1g