Red Hat Training

A Red Hat training course is available for Red Hat Gluster Storage

4.3. Configure the OpenStack Image Service to Use Red Hat Storage Volumes

Procedure 4.2. Configure the OpenStack Image Service to Use Red Hat Storage Volumes

  1. Specify the location for filesystem_store_datadir as follows:
    # ============ Filesystem Store Options===================
    # Directory that the Filesystem backend store
    # writes image data to
    filesystem_store_datadir = /mnt/gluster/glance/images/
  2. Create a directory named images as follows:
    # mkdir -p /mnt/gluster/glance/images
  3. Change the ownership of the the Red Hat Storage volume as follows:
    chown -R glance:glance/mnt/gluster/glance/
  4. Mount the Red Hat Storage volume on filesystem_store_datadir as follows:
    mount -t glusterfs 10.1.1.11:/glance-vol /mnt/gluster
    When mounting the volume, Red Hat recommends you to use backup-volfile-servers=volfile_server2:volfile_server3:...:volfile_serverN option to list the backup volfile servers to mount the client. If this option is specified while mounting the fuse client, when the first volfile server fails, the servers specified in backup-volfile-servers option are used as volfile servers to mount the client until the mount is successful.
  5. To persistently mount the glance volume, add the following line to the /etc/fstab file:
    10.1.1.11:/glance-vol images glusterfs defaults,_netdev 0 0
  6. Restart the OpenStack glance service as follows:
    # service openstack-glance-api restart