chvolume
Use the chvolume command to modify properties of volumes.
Syntax
Parameters
- -size volume_size
- (Optional) Specifies the new capacity of the volume, which is used with the value of the
unit parameter. The default unit is MB.Note: The new volume size must be greater than the current volume size. This parameter is mutually exclusive with all other parameters except -unit.
- -unit b | kb | mb | gb | tb
- (Optional) Specifies the data units to use with the capacity that is specified by the -size parameter. The default unit value is mb.
- -volumegroup volumegroup_id | volumegroup_name
- (Optional) Specifies a new volume group for the volume. If the volume is in a storage partition, the new volume group must be in the same partition.
- -novolumegroup
- (Optional) Specifies that the volume should be moved out of the current volume group. If the volume is in a storage partition that contains a default volume group, the volume will be moved to the default volume group.
- -name volume_name
- (Optional) Specifies the new name for the volume.
- -displayname volume_display_name
- (Optional) Specifies the new display name for the volume. This name is used only with VMware Virtual Volumes (vVols).
- volume_id | volume_name | volume_uid
- (Required) Specifies the volume ID, name, or UID for the volume to modify.
Description
The chvolume command enables you to change parameters of a volume, including size, name, and associated volume group.
Note: This command is available during the upgrade
process.
An invocation example
chvolume -volumegroup volumegroup2 volume4
The resulting output:
No feedback.
