Command import-filesystem

Usage: juju import-filesystem [options]

Summary:

Imports a filesystem into the model.

Options:

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

Do not use web browser for authentication

-m, --model (= "")

Model to operate in. Accepts [<controller name>:]<model name>

Details:

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 that 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.

Examples:

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