How to manage storage pools
See also: Storage pool
This document shows how to work with storage pools.
- Create a storage pool
- View the available storage pools
- View the default storage pool
- Update a storage pool
- Remove a storage pool
First, check if your provider supports any storage configuration attributes. For example, in the case of AWS, the
ebs storage provider supports several configuration attributes, and among these are
volume-type, which configures the volume type (i.e. magnetic, ssd, or provisioned-iops), and
iops, which indicates the IOPS per GiB.
Second, use the
create-storage-pool command, passing as parameters the desired name of the pool and the name of the provider and then all the key-value pairs that you want to specify. For example, the code below creates a storage pool with the name
iops which is a version of
ebs with 30 IOPS.
juju create-storage-pool iops ebs volume-type=provisioned-iops iops=30
To view the available storage pools, use the
This will list all the predefined storage pools as well as any custom ones that may have been created with the
juju create-storage-pool command.
The name given to a default storage pool will often be the same as the name of the storage provider upon which it is based.
Expand to view a sample output for a newly-added `aws` model
Name Provider Attributes ebs ebs ebs-ssd ebs volume-type=ssd loop loop rootfs rootfs tmpfs tmpfs
To find out the default storage pool for your block-type / filesystem-type, run the
model-config command followed by the
storage-default-filesystem-source key. For example:
juju model-config storage-default-block-source
(TO BE ADDED)
(TO BE ADDED)
Last updated 3 months ago.