How to list storage pools and volumes#

You can display a list of all available storage pools and the volumes in these pools and check their configuration.

Show storage pool information#

Use the following command to list all available storage pools:

lxc storage list

The resulting table contains the storage pool that you created during initialization (usually called default or local) and any storage pools that you added.

To show detailed information about a specific pool, use the following command:

lxc storage show <pool_name>

Show storage volume information#

To list all available storage volumes in a storage pool, use the following command:

lxc storage volume list <pool_name>

The resulting table contains the storage volume type and the content type for each storage volume in the pool.

Note

Custom storage volumes might use the same name as instance volumes (for example, you might have a container named c1 with a container storage volume named c1 and a custom storage volume named c1). Therefore, to distinguish between instance storage volumes and custom storage volumes, all instance storage volumes must be referred to as <volume_type>/<volume_name> (for example, container/c1 or virtual-machine/vm) in commands.

To show detailed information about a specific custom volume, use the following command:

lxc storage volume show <pool_name> <volume_name>

To show detailed information about a specific instance volume, use the following command:

lxc storage volume show <pool_name> <volume_type>/<volume_name>