Volume provisioning commands
Volume commands allow you to create volumes. You can use the volume commands to map each volume to a host or a cluster, to rename and resize the volume, to restore it from a snapshot, to protect it from writing, to enable SSD cache, to set it to be thin provisioned, to move it between pools and to query the InfiniBox volumes. This category does not include commands for provisioning snapshots.
config.system.set_auto_udid_range
ROLE: Admin
Description | Enables / disables default pool ssd cache. | |
Syntax |
| |
Arguments | start | An integer number between 1 and 32767 (inclusive) |
disabled | Either yes or no | |
end | An integer number between 1 and 32767 (inclusive) |
vol.assign_qos
ROLE: Admin
Description | Assign volume to policy | |
Syntax | vol.assign_qos vol=vol[,vol...] policy=QOSVOLUMESPOLICY | |
Arguments | policy | QoS policy |
pool | Name of an existing pool (multiple values, separated by commas) | |
Example | vol.assign_qos pool=v2 policy=q1 | |
Volume 'v2' was assigned to policy 'q1' |
vol.cache
ROLE: Admin, Pool Admin
Description | Enable or disable SSD cache. Set the optional parameter Recursive to Yes in order to apply the SSD cache settings to the entire volume tree. | |
Syntax | vol.cache vol=VOL ssd_cache=YESNO [recursive=YESNO] | |
Arguments | recursive | Either yes or no |
ssd_cache | Either yes or no | |
vol | Name of an existing volume | |
Example | vol.cache name=vol1 ssd=yes recursive=yes | |
Volume vol1 and all descendants SSD cache enabled. |
vol.create
ROLE: Admin, Pool Admin
Description | Create a new volume. Create a batch of volumes by stating the requested amount of volumes using the Series parameter. The volumes names are prefixed. It is recommended to denote a new prefix for each batch. The pool parameter is not required in case there is only one pool available. The volume size can be any number that is divisible by 512 (bytes). On the pool view, the volume size is represented in a number that is divisible by 64k. | |
Syntax | vol.create name=NAME[,NAME,...] size=SIZE [pool=STANDARDPOOL] [thin=YES|NO|Y|N] [ssd_cache=YES|NO|Y|N] [compression=YES|NO|Y|N] [series=SERIES] [udid=UDID] | |
Arguments | pool | Name of an existing standard pool |
size | A positive number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000 | |
name | A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped. (multiple values, separated by commas) | |
thin | Either yes, or no | |
ssd_cache | Either yes, or no | |
udid | AUTO, or an integer number between 1 and 32767 (inclusive) | |
compression | Either yes, or no | |
series | Either a range of numbers, e.g "3-7", or a single number, e.g "5", which is the same as "1-5". Zero-padding the numbers yields a zero-padded sequence. The series may contain at most 100 items, and the index of the last item may not exceed 10000000000 | |
Example | Creating a single volume, providing a name and specifying the volume size and the pool it will created in. | |
vol.create name=vol1 size=1g pool=pool1 | ||
Volume vol1 created | ||
Example | Creating a series of volumes specifying their number. The volumes will be numbered from 1 onward. Note that the name parameter serves as a prefix to the entire series. | |
vol.create name=vol- size=1g pool=pool1 series=10 | ||
Created 10 volumes: vol-01 through vol-10 | ||
Example | Creating a series of volumes specifying the first and last ordinal numbers. | |
vol.create name=vol- size=1g pool=pool1 series=11-20 | ||
Created 10 volumes: vol-11 through vol-20 |
vol.delete
ROLE: Admin, Pool Admin
Description | Delete volume. You may select multiple volumes, separated with a comma. | |
Syntax | vol.delete vol=VOL[,VOL,...] | |
Arguments | vol | Name of an exiting volume ( multiple values, separated by commas) |
Example | vol.delete name=vol1 | |
|
vol.map
ROLE: Admin, Pool Admin
Description | Map volume to host or cluster. You may determine the LUN that will connect the volume to the host, or cluster. | |
Syntax | vol.map vol=VOL[,VOL,...] [host=HOST] [cluster=CLUSTER] [lun=LUN] | |
Arguments | vol | Name of an existing volume (multiple values, separated by commas) |
lun | SCSI logical unit number (LUN) | |
cluster | Name of an existing cluster | |
host | Name of an existing host | |
Example | vol.map name=vol1 cluster=cluster1 | |
volume vol1 mapped to LUN 12 in cluster cluster1 |
vol.map_query
ROLE: All Roles
Description | List host and cluster mappings by volume. | |
Syntax |
| |
Arguments | vol | Name of an existing volume (multiple values, separated by commas) |
pool | Name of an existing standard pool | |
cluster | Name of an existing cluster | |
host | Name of an existing host | |
Example | vol.map_query | |
|
vol.move
ROLE: Admin, Pool Admin
Description | Move volume to a different pool. The move_capacity parameter determines whether the volume moves along with its capacity, so as not to | |
Syntax | vol.move vol=VOL pool=STANDARDPOOL [move_capacity=YES|NO|Y|N] | |
Arguments | pool | Name of an existing standard pool |
vol | Name of an existing volume | |
move_capacity | Either yes or no | |
Example | Moving a volume with its capacity | |
vol.move name=vol1 pool=pool2 move_capacity=yes | ||
Volume vol1 moved to pool pool2 with its capacity | ||
Example | Moving a volume without its capacity | |
vol.move name=vol1 pool=pool2 | ||
Volume vol1 and all descendants SSD cache enabled. |
vol.query
ROLE: All Rolls
Description | List existing volumes.
| |
---|---|---|
Syntax | vol.query [vol=VOL[,VOL,...]] [cg=CG] [pool=STANDARDPOOL] [unit=CAPACITYUNIT] [mapped=YESNO] [write_protected=YESNO] [thin=YESNO] [compression_enabled=YESNO] [ssd_enabled=YESNO] | |
Arguments | cg | Name of an existing consistency group |
vol | Name of an existing volume | |
compression_enabled | Either yes or no | |
thin | Either yes or no | |
write_protected | Either yes or no | |
mapped | Either yes or no | |
unit | B, G (or GB), GiB, T (or TB), TiB or block | |
ssd_enabled | Either yes or no | |
pool | name of an exiting standard pool | |
Example | Querying for all volumes | |
vol.query | ||
| ||
Example | Querying for volumes that belong to a consistency group, returning the ID of the consistency group | |
vol.query --columns=name,cg_id | ||
| ||
Example | Querying for compressed volumes, and displaying only compression-related columns | |
vol.query compression_enabled=yes --columns=name,compressed,data_reduction | ||
| ||
Example | Querying for volumes that are assigned to a QoS policy | |
vol.query --columns=name,policy | ||
| ||
Example | Get all of the available volume's attributes | |
vol.query --columns= | ||
name, serial, thin, size, used, allocated, Snapshots, cg, policy, wp,
pool, compressed, data_reduction, mapped, ssd_cache, replication_role,
created_at, updated_at, cg_id or * (multiple values, separated by
commas)
* cg created_at name replication_role ssd_cache used
Snapshots cg_id data_reduction policy serial thin wp
allocated compressed mapped pool size updated_at | ||
Example | Query for the volume's serial number | |
vol.query name=v1 --columns=name,serial | ||
|
vol.reclaimable
ROLE: Admin, Pool Admin
Description | Estimate reclaimed capacity (deletion simulation). You may simulate the deletion of the filesystem and its descendants. | |
Syntax | vol.reclaimable vol={VOL|SNAP} | |
Arguments | vol | Name of an existing volume or snapshot |
Example | vol.reclaimable name=vol1 | |
Estimated reclaimable space for volume v1 and its tree descendants: 327.68 KB |
vol.rename
ROLE: Admin, Pool Admin
Description | Rename volume | |
Syntax | vol.rename vol=VOL new_name=NAME | |
Arguments | new_name | A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped |
vol | Name of an existing volume | |
Example | vol.rename name=vol1 new_name=vol2 | |
Volume volume1 renamed to volume2 |
vol.reset_serial
ROLE: Admin
Description | Reset volume serial | |
Syntax | vol.reset_serial vol=VOL | |
Arguments | vol | Name of an exiting volume |
ADMIN
vol.resize
ROLE: Admin
Description | Resize volumes | |
Syntax | vol.resize vol=VOL size=SIZEPOSITIVEDELTA | |
Arguments | vol | Name of an existing volume |
size | A number (up to 2 digits beyond the decimal point), optionally followed by a unit; e.g. 1TB, 1000000000000. When preceded by a plus sign, represents a delta; e.g. 3000000m (absolute size), +2000GB (positive delta) | |
Example | vol.resize name=vol1 size=1.5t | |
Volume vol1 updated |
vol.restore
ROLE: Admin, Pool Admin
Description | Restore data state of a volume from one of its snapshots. This command restores a volume from one of its snapshots.
| |
Syntax | vol.restore vol=VOL source=SNAP | |
Arguments | vol | Name of an existing volume |
source | Name of an exiting volume snapshot | |
Example | vol.restore name=vol1 snap=snap1 | |
Volume vol1 restored from snapshot snap1 |
vol.set_compression
ROLE: Admin, Pool Admin
Description | Set a volume to use compression | |
Syntax | vol.set_compression vol=VOL compression=YESNO | |
Arguments | compression | Either yes or no |
vol | Name of an exiting volume | |
Example | Enable compression on a volume | |
vol.set_compression name=v1 enable=yes | ||
Volume "v1" Compression was enabled | ||
Example | Disable compression on a volume | |
vol.set_compression name=v1 enable=no | ||
Volume "v1" Compression was disabled |
vol.set_thin
ROLE: Admin, Pool Admin
Description | Set volume provisioning type Toggle between thin and thick provisioning. | |
Syntax | vol.set_thin vol=VOL thin=YESNO | |
Arguments | thin | Either yes or no |
vol | Name of an exiting volume | |
Example | vol.set_thin name=vol1 thin=yes | |
Volume vol1 set to thin provisioning |
vol.set_udid
ROLE: Admin, Pool Admin
Description | Change UDID on a volume. | |
Syntax | vol.set_udid vol=VOL udid=UDIDUPDATE | |
Arguments | vol | Name of an existing volume |
udid | CLEAR, or an integer number between 1 and 32767 (inclusive) |
vol.tree
ROLE: All Roles
Description | Display hierarchy of volumes and their snapshots. You may filter the results by volume and pool. | |
Syntax | vol.tree [vol=VOL] [pool=POOL] [unit=CAPACITYUNIT] | |
Arguments | unit | B, G (or GB), GiB, T (or TB), TiB or block |
pool | Name of an existing pool | |
vol | Name of an existing volume | |
Example | vol.tree name=v1 | |
|
vol.unassign_qos
ROLE: Admin
Description | Unassign volume from policy.
| |
Syntax | vol.unassign_qos vol=VOL[,VOL,...] | |
vol | Name of an existing volume (multiple values, separated by commas) | |
Example | Unassigning a single volume | |
vol.unassign_qos vol=v2 | ||
Volume 'v2' was unassigned from policy 'q1' | ||
Example | Unassigning several volumes | |
vol.unassign_qos vol=v1,v2 | ||
2 volumes were unassigned from their policies |
vol.unmap
ROLE: Admin, Pool Admin
Description | Unmap volume from host or cluster | |
Syntax | vol.unmap vol=VOL[,VOL,...] [host=HOST] [cluster=CLUSTER] | |
Arguments | cluster | Name of an existing cluster |
host | Name of an existing host | |
vol | Name of an existing volume (multiple values, separated by commas) | |
Example | vol.unmap name=vol1 cluster=cluster1 | |
Volume vol1 unmapped from LUN LUN1 in cluster cluster1 |
vol.write_enable
ROLE: Admin, Pool Admin
Description | Enable write access on volume. Set the optional parameter Recursive to Yes in order to enable writing to the entire volume tree. | |
Syntax | vol.write_enable vol=VOL [recursive=YESNO] | |
Arguments | recursive | Either yes or no |
vol | Name of an existing volume | |
Example | vol.write_enable name=vol1 recursive=yes | |
Volume vol1 and all descendants write access enabled |
vol.write_protect
ROLE: Admin, Pool Admin
Description | Disable access on volume. Set the optional parameter Recursive to Yes in order to disable writing to the entire volume tree. | |
Syntax | vol.write_protect vol=VOL [recursive=YESNO] | |
Arguments | recursive | Either yes or no |
vol | Name of an existing volume | |
Example | vol.write_protect name=vol1 recursive=yes | |
Volume vol1 and all descendants write access disabled |
Last edited: 2022-08-06 08:31:39 UTC
Comments