2.3. Configuring Storage
- Block Storage
- Block Storage uses volume groups to identify attached volumes. By default, PackStack creates:
- An example storage volume for testing. It is placed in
/var/lib/cinderand installed as a loopback storage device on the host for the Block Storage service. - The
cinder-volumesvolume group (configured involume_groupin/etc/cinder/cinder.conf).
To avoid the creation of loopback devices, you must initialize your volume manually for the Block Storage service before installing and deploying OpenStack using PackStack.Example 2.1. Create Volume Group
Initialize the volume manager as a physical volume, and then use it to create thecinder-volumesvolume group:#
pvcreate /dev/sdX#vgcreate cinder-volumes /dev/sdX - Object Storage
- Instead of installing a volume for Object Storage, PackStack adds a device to an Object Storage ringfile. On the Object Storage host, the device is represented by a directory in
/srv/. Ideally, the directory for the Object Storage device should be a separate file system.If you do not have a separate file system, or just want to test Object Storage, then PackStack creates a small loopback storage device in place of a separate partition. Otherwise, you must manually configure your system using PackStack's answer file (see Section 5.3.2, “Editing a PackStack Answer File”).Example 2.2. Configure Storage Devices using PackStack Answer File
Configure Object Storage with/dev/sdb1and/dev/sdc1(no testing loopback device):CONFIG_SWIFT_STORAGE_HOSTS=192.0.43.10/sdb1,192.0.43.10/sdc1