chsp Command

Purpose

Change the characteristics of a storage pool.

Syntax

Add physical volume to a storage pool:

chsp -add [ -f ] [-sp StoragePool] PhysicalVolume...

Remove a physical volume from a 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 storage pool. Before adding physical volume, the chsp command checks to verify that they are not already in another volume group or storage pool. 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.

Before removing physical volumes from 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.

If the -sp flag is not specified, the default storage pool is assumed.

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.
-sp StoragePool Specifies the storage pool to be changed. If the specified name does not start with "sp_, the command will automatically prefix it with sp_.

Exit Status

23 Specified storage pool is not valid

Examples

  1. To add physical volume hdisk3 to the default storage pool, type:
    chsp -add hdisk3
  2. To remove physical volume hdisk2 from clstorage storage pool, type:
    chsp -rm -sp clstorage hdisk2


Send feedback |  Rate this page