此内容没有您所选择的语言版本。
6.4. Configure the Volume Service
6.4.1. Block Storage Driver Support 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The volume service (
openstack-cinder-volume
) requires access to suitable block storage. Red Hat OpenStack Platform provides volume drivers for the following supported block storage types:
- Red Hat Ceph
- LVM/iSCSI
- ThinLVM
- NFS
- NetApp
- Dell EqualLogic
- Dell Storage Center
For instructions on how to set up an LVM back end, refer to Section 6.4.2, “Configure OpenStack Block Storage to Use an LVM Storage Back End”.
The
openstack-cinder-volume
service can make use of a volume group attached directly to the server on which the service runs. This volume group must be created exclusively for use by the Block Storage service, and the configuration updated to point to the name of the volume group.
All steps in the following procedure must be performed on the server hosting the
openstack-cinder-volume
service, while logged in as the root
user.
Procedure 6.7. Configuring openstack-cinder-volume to Use LVM Storage as a Back End
- Create a physical volume:
pvcreate DEVICE
# pvcreate DEVICE Physical volume "DEVICE" successfully created
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace DEVICE with the path to a valid, unused, device. For example:pvcreate /dev/sdX
# pvcreate /dev/sdX
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a volume group:
vgcreate cinder-volumes DEVICE
# vgcreate cinder-volumes DEVICE Volume group "cinder-volumes" successfully created
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace DEVICE with the path to the device used when creating the physical volume. Optionally replace cinder-volumes with an alternative name for the new volume group. - Set the
volume_group
configuration key to the name of the volume group created in the previous step:openstack-config --set /etc/cinder/cinder.conf \ DEFAULT volume_group cinder-volumes
# openstack-config --set /etc/cinder/cinder.conf \ DEFAULT volume_group cinder-volumes
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Ensure that the correct volume driver for accessing LVM storage is in use by setting the
volume_driver
configuration key tocinder.volume.drivers.lvm.LVMVolumeDriver
:openstack-config --set /etc/cinder/cinder.conf \ DEFAULT volume_driver cinder.volume.drivers.lvm.LVMVolumeDriver
# openstack-config --set /etc/cinder/cinder.conf \ DEFAULT volume_driver cinder.volume.drivers.lvm.LVMVolumeDriver
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
6.4.3. Configure the SCSI Target Daemon 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
openstack-cinder-volume
service uses a SCSI target daemon for mounting storage. You must install a SCSI target daemon on each server hosting an instance of the openstack-cinder-volume
service, while logged in as the root
user.
Procedure 6.8. Configure a SCSI Target Daemon
- Install the targetcli package:
yum install targetcli
# yum install targetcli
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Launch the
target
daemon and configure it to start at boot time:systemctl start target.service systemctl enable target.service
# systemctl start target.service # systemctl enable target.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the volume service to use the
lioadm
iSCSI target user-land tool:openstack-config --set /etc/cinder/cinder.conf \ DEFAULT iscsi_helper lioadm
# openstack-config --set /etc/cinder/cinder.conf \ DEFAULT iscsi_helper lioadm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the IP address on which the iSCSI daemon must listen (ISCSIIP):
openstack-config --set /etc/cinder/cinder.conf \ DEFAULT iscsi_ip_address ISCSIIP
# openstack-config --set /etc/cinder/cinder.conf \ DEFAULT iscsi_ip_address ISCSIIP
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace ISCSI_IP with the IP address or host name of the server hosting theopenstack-cinder-volume
service.