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
lsvolume
command to find the identifier for each volume. -
--attributes
: Optionally specifies attributes to change.You can use the
describe
command to view attribute details. Specifically, usedescribe chvolume
to see details about the volume attributes you can modify.
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=200m
Example 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 sets scott and dave as joint owners of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=scott,dave
-
The following command removes dave as an owner of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=-dave
-
The following command adds peter as an owner of the specified volume:
@> chvolume 2:50e52177583f4be4bad68ac20b65001e --attributes owners=+peter
Parent topic: Block Store Management