See also: Storage pool
This document demonstrates how to work with storage pools.
Contents:
- Create a storage pool
- View the available storage pools
- View the default storage pool
- Update a storage pool
- Remove a storage pool
Create a storage pool
See also: Storage provider >
ebs
, Wikipedia | IOPS,juju create-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 <attribute=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
View the available storage pools
See also:
juju storage-pools
To view the available storage pools, use the storage-pools
command:
juju storage-pools
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.
Here is 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
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.
View the default storage pool
See also:
juju model-config
, List of model configuration keys
To find out the default storage pool for your block-type storage, run:
juju model-config storage-default-block-source
To find out the default storage pool for your filesystem-type storage, run:
juju model-config storage-default-filesystem-source
Update a storage pool
See also:
juju update-storage-pool
(TO BE ADDED)
Remove a storage pool
See also:
remove-storage-pool
(TO BE ADDED)