Creating external storage policies
Once you connect external storage to the compute cluster, you can start using it by creating an external storage policy and applying it to new volumes.
Limitations
- External storage policies cannot be applied to existing compute volumes.
- You cannot clone policies for external storages.
Prerequisites
- External storage is attached to the compute cluster, as described in Attaching external iSCSI storage, Attaching external FC storage, or Attaching external NFS storage.
To create an external storage policy
Admin panel
- On the Compute > Storage > Storage policies tab, click Create storage policy.
- In the Create storage policy window, specify a policy name and select the attached external storage.
-
Enable IOPS limit or Bandwidth limit to set the corresponding limits on the volume.
- Click Create.
Once you have a storage policy for your external storage, you can use it for creating compute volumes.
Command-line interface
Use the following command:
vinfra service compute storage-policy create --storage <storage_name> --params <key=value>[,<key2=value2>,...] [--write-bytes-sec <limit>] [--read-bytes-sec <limit>] [--read-iops-sec <limit>] [--write-iops-sec <limit>] [--total-bytes-sec <limit>] [--total-iops-sec <limit>] <name>
--storage <storage-name>
- Name of the compute storage to use. It must match
volume_backend_name
of the compute storage. Typically,volume_backend_name
is the same as the storage name, but it may differ if a customvolume_backend_name
was set. --params <key=value>[,<key2=value2>,...]
- Custom parameters
--read-bytes-sec <limit>
- Number of bytes read per second
--read-iops-sec <limit>
- Number of read operations per second
--write-iops-sec <limit>
- Number of write operations per second
--total-bytes-sec <bytes>
- Total number of bytes per second
--total-iops-sec <iops>
- Total number of I/O operations per second
<name>
- Storage policy name
For example, to create the storage policy pure_policy
for the external storage pure_storage
, run:
# vinfra service compute storage-policy create pure_policy --storage pure_storage