`juju import-filesystem`


juju import-filesystem [options] <storage-provider> <provider-id> <storage-name>


Imports a filesystem into the model.

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 [:]|


Import an existing filesystem into the model. This will lead to the model taking ownership of the storage, so you must take care not to import storage that is in use by another Juju model.

To import a filesystem, you must specify three things:

  • the storage provider which manages the storage, and with which the storage will be associated
  • the storage provider ID for the filesystem, or volume that backs the filesystem
  • the storage name to assign to the filesystem, corresponding to the storage name used by a charm

Once a filesystem is imported, Juju will create an associated storage instance using the given storage name.


# Import an existing filesystem backed by an EBS volume,
# and assign it the "pgdata" storage name. Juju will
# associate a storage instance ID like "pgdata/0" with
# the volume and filesystem contained within.
juju import-filesystem ebs vol-123456 pgdata

Last updated 1 year, 3 months ago.