Creating volume groups

For cloud volumes, you can create a group of volumes of which you can create snapshots and transfer to cloud storage. Volumes groups can be created to easily manage cloud snapshots for volumes. It is convenient to provide a single action to take a snapshot of a preset group of volumes.

Volume groups provide consistent snapshot operations for cloud volumes. You can view cloud volumes and display whether the volumes are part of a group in the management GUI, but you must configure the volume group in the command-line interface.

To create a volume group for cloud volumes, enter the following command:
mkvolumegroup -name volumegroup_name_or_id 
where volumegroup_name_or_id is the name or ID of the volume group.
After the volume group is created, you add cloud volumes to it. Cloud volumes are any volume on the system that is enabled for cloud snapshots. If a volume is already enabled for cloud snapshots, enter the following command:
chvdisk -volumegroup volumegroup_name_or_id vdisk_name_or_id
where volumegroup_name_or_id is the name or ID of the volume group and vdisk_name_or_id is the name or ID of the volume that you are adding to the volume group.
If the volume is not enabled for cloud snapshots and you want to add it to the volume group, enter the following command:
chvdisk -backup cloud -enable -account cloud_account_name_or_id -volumegroup volumegroup_name_or_id vdisk_name_or_id
where cloud_account_name_or_id is the name of the cloud account that is associated with the volume, volumegroup_name_or_id is the name or ID of the volume group, and vdisk_name_or_id is the name or ID of the volume that you are adding to the volume group.