`juju add-storage`

See also: import-filesystem, storage, storage-pools, How to manage storage

Usage:

juju add-storage [options] <unit> <storage-directive>

Summary:

Adds storage to a unit after it has been deployed.

Global Options:

--debug  (= false)

Equivalent to --show-log --logging-config==DEBUG

-h, --help  (= false)

Show help on a command or other topic.

--logging-config (= "")

Specify log levels for modules

--quiet  (= false)

Show no informational output

--show-log  (= false)

If set, write the log file to stderr

--verbose  (= false)

Show more verbose output

Command Options:

-B, --no-browser-login  (= false)

Do not use web browser for authentication

-m, --model (= "")

Model to operate in. Accepts [:]|

Details:

Add storage to a pre-existing unit within a model. Storage is allocated from a storage pool, using parameters provided within a “storage directive”. (Use ‘juju deploy --storage=’ to provision storage during the deployment process).

juju add-storage <unit> <storage-directive>

is the ID of a unit that is already in the model.

describes to the charm how to refer to the storage, and where to provision it from. takes the following form:

<storage-name>[=<storage-constraint>]

is defined in the charm’s metadata.yaml file.

is a description of how Juju should provision storage instances for the unit. The following three forms are accepted:

<storage-pool>[,<count>][,<size>]
<count>[,<size>]
<size>

is the storage pool to provision storage instances from. Must be a name from ‘juju storage-pools’. The default pool is available via executing ‘juju model-config storage-default-block-source’.

is the number of storage instances to provision from of . Must be a positive integer. The default count is “1”. May be restricted by the charm, which can specify a maximum number of storage instances per unit.

is the number of bytes to provision per storage instance. Must be a positive number, followed by a size suffix. Valid suffixes include M, G, T, and P. Defaults to “1024M”, or the which can specify a minimum size required by the charm.

Examples:

# Add a 100MiB tmpfs storage instance for "pgdata" storage
# to unit postgresql/0
juju add-storage postgresql/0 pgdata=tmpfs,100M

# Add 10 1TiB storage instances to "osd-devices" storage
# to unit ceph-osd/0 from the model's default storage pool
juju add-storage ceph-osd/0 osd-devices=1T,10

# Add a storage instance from the (AWS-specific) ebs-ssd
# storage pool for "brick" storage to unit gluster/0:
juju add-storage gluster/0 brick=ebs-ssd

Last updated 10 months ago.