vinfra service compute volume set
Modify volume parameters:
usage: vinfra service compute volume set [--description <description>] [--network-install <network_install>] [--storage-policy <storage_policy>] [--bootable <bootable>] [--name <name>] [--no-placements] <volume>
--description <description>
- Volume description
--network-install <network_install>
- Perform network install (
true
orfalse
) --storage-policy <storage_policy>
- Storage policy ID or name
--bootable <bootable>
- Make bootable (
true
orfalse
) --name <name>
- A new name for the volume
--no-placements
- Clean up placements
<volume>
- Volume ID or name
Example:
# vinfra service compute volume set myvolume --storage-policy mystorpolicy +--------------------------------+------------------------------------------+ | Field | Value | +--------------------------------+------------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | False | | consistencygroup_id | | | created_at | 2018-09-12T12:30:12.665916 | | description | | | encrypted | False | | id | c9c0e9e7-ce7a-4566-99d5-d7e40f2987ab | | imageRef | | | migration_status | | | multiattach | False | | name | myvolume | | network_install | False | | os-vol-host-attr:host | node001.vstoragedomain@vstorage#vstorage | | os-vol-mig-status-attr:migstat | | | os-vol-mig-status-attr:name_id | | | project_id | 72a5db3a033c403a86756021e601ef34 | | replication_status | | | size | 8 | | snapshot_id | | | source_volid | | | status | available | | storage_policy_name | mystorpolicy | | updated_at | 2018-09-12T12:55:29.298717 | | user_id | 98bf389983c24c07af9677b931783143 | | volume_image_metadata | | +--------------------------------+------------------------------------------+
This command changes the storage policy of the volume myvolume
to mystorpolicy
.