chvolgrp
The chvolgrp command modifies a volume group name and volume members.
Parameters
Note: If
you are using an HP-UX operating system, the number of volumes in
the volume group must not exceed seven volumes. This restriction
applies only when the hostconnect attribute for
the -addrdiscovery parameter is set to reportlun and
the associated volume group is of type mapscsi256.
- -dev storage_image_ID
- (Optional). The storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs or do not set the devid variable in your profile or through the setenv command. The storage image ID is also required if the HMC is aware of more than one storage image. The -dev parameter temporarily overrides any defined value for devid for the current command.
- -name new_Volume_Group_name
- (Optional). A new name for the volume group. The name is limited to 16 characters. The name must be unique across volume groups that are contained by a storage unit.
- -safe
- (Optional). Enables checks for the safe removal of the volume from the volume group.
- -action add | remove | replace
- (Optional, unless the -volume parameter is
specified). Specify one of the following values with this parameter:
- add
- The volumes be added to the volume group.
- remove
- The volumes be removed from the volume group.
- replace
- The existing volumes be replaced by the specified volumes.
- -safe
- (Optional). Valid for the remove and replace actions, only. Enables checks for the safe removal or replacement of the volume from the volume group. The checked conditions that give a failed result include: an open host reservation, a Copy Services relationship, or an I/O received within the last 5 minutes.
- -volume volume_ID ...
- (Optional unless you are specifying the -action or the -lun parameter, then the -volume parameter is required.) An array of one or more volume IDs or volume ID ranges to be included in the volume group when the -action parameter is specified.
- -lun lun_ID
- (Optional - SCSI MAP 256 only). The LUN ID in hexadecimal value (00 - FF), which is mapped to
the specified volume ID when the -action
add or -action
replace parameter is specified. If multiple volume IDs are specified by the
-volume parameter, the LUN ID is consecutively assigned in incremental order.
If the specified LUN ID is not valid, the command is rejected. Note: This parameter is only valid when the target volume group type is SCSI MAP 256. Otherwise, this command fails.
- Volume_Group_ID | –
- (Required). The ID of the volume group that being changed. The volume group ID is made up of the storage image ID followed by the volume group ID. This parameter also accepts a fully qualified volume group ID including the storage image ID or a shortened version. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter V.
Example: Modifying a volume group name and volume members
dscli> chvolgrp -action add
-volume 0000-000F IBM.2107-75FA120/V2341
Output
Volume group V2341 successfully modified.