Red Hat Training

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

4.4. Configure the OpenStack Compute Service to Use Red Hat Storage Volumes

This section provides steps to configure common Red Hat Storage volume to host both Image and Compute services.

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

  1. Configure the Compute service to the use Red Hat Storage volume by editing the instances_path in the /etc/nova/nova.conf file:
    #instances_path = /mnt/gluster/instance
  2. Create a directory named instance as follows:
    # mkdir -p /mnt/gluster/instance
    If you are using a different volume other than the glance volume for compute service, then you must mount the volume using mount -t glusterfs 10.1.1.11:/nova-vol /mnt/nova command.
    When mounting the volume, Red Hat recommends you to use the 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 operation is successful.
  3. Change the ownership of the Red Hat Storage volume as follows:
    chown -R nova:nova /mnt/gluster/instance
  4. Restart the OpenStack Compute service as follows:
    # service openstack-nova-compute restart