Manage volumes¶
The default OpenStack Block Storage service implementation is an iSCSI solution that uses Logical Volume Manager (LVM) for Linux.
Note
The OpenStack Block Storage service also provides drivers that enable you to use several vendors’ back-end storage devices in addition to the base LVM implementation. These storage devices can also be used instead of the base LVM installation.
This high-level procedure shows you how to create and attach a volume to a server instance.
To create and attach a volume to an instance
Configure the OpenStack Compute and the OpenStack Block Storage services through the
/etc/cinder/cinder.conf
file.Use the openstack volume create command to create a volume. This command creates an LV into the volume group (VG)
cinder-volumes
.Use the openstack server add volume command to attach the volume to an instance. This command creates a unique IQN that is exposed to the compute node.
The compute node, which runs the instance, now has an active iSCSI session and new local storage (usually a
/dev/sdX
disk).Libvirt uses that local storage as storage for the instance. The instance gets a new disk (usually a
/dev/vdX
disk).
For this particular walkthrough, one cloud controller runs
nova-api
, nova-scheduler
, nova-conductor
and cinder-*
services. Two additional compute nodes run nova-compute
. The walkthrough
uses a custom partitioning scheme that carves out 60 GB of space and labels it
as LVM. The network uses the FlatManager
and NetworkManager
settings for OpenStack Compute.
The network mode does not interfere with OpenStack Block Storage operations, but you must set up networking for Block Storage to work. For details, see networking.
To set up Compute to use volumes, ensure that Block Storage is
installed along with lvm2
. This guide describes how to
troubleshoot your installation and back up your Compute volumes.
- Boot from volume
- Configure an NFS storage back end
- Configure multiple-storage back ends
- Back up Block Storage service disks
- Migrate volumes
- Back up and restore volumes and snapshots
- Export and import backup metadata
- Use LIO iSCSI support
- Configure and use volume number weigher
- Capacity based quality of service
- Consistency groups
- Configure and use driver filter and weighing for scheduler
- What is driver filter and weigher and when to use it
- Enable driver filter and weighing
- Defining your own filter and goodness functions
- Supported operations in filter and goodness functions
- Available properties when creating custom functions
- Extra specs for the requested volume type
- Current QoS specs for the requested volume type
- Driver filter and weigher usage examples
- Rate-limit volume copy bandwidth
- Oversubscription in thin provisioning
- Image-Volume cache
- Volume-backed image
- Get capabilities
- Generic volume groups
Note
To enable the use of encrypted volumes, see the setup instructions in Create an encrypted volume type.