6.2.12.2 chvolume
Change attributes of a volume.
Purpose
The chvolume command allows you to modify the attributes of an Exascale volume.
Syntax
chvolume volume-id [ --attributes attribute=value[,attribute=value] ... ]Command Options
The options for the chvolume command are:
-
volume-id: Identifies the volume being changed. You can use the
lsvolumecommand to find the identifier for each volume. -
--attributes: Optionally specifies attributes to change.Use the
describe chvolumecommand to view details about the volume attributes you can modify withchvolume.
Usage Notes
The chvolume command only proceeds if the specified volume is not attached.
Examples
Example 6-149 Change the Volume Size
This example shows changing the size of the volume with the volume ID 2:50e52177583f4be4bad68ac20b65001e.
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes size=200mExample 6-150 Change the Volume Owners
A volume can have up to two owners. The following examples show different ways to change the volume owners.
-
The following command sets scott as the sole owner of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=scott -
The following command adds peter as an owner of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=+peter -
The following command removes dave as an owner of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=-dave
Parent topic: Block Store Management