Questo contenuto non è disponibile nella lingua selezionata.
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
- Specify the location for
filesystem_store_datadir
as follows:============ Filesystem Store Options=================== Directory that the Filesystem backend store writes image data to
# ============ Filesystem Store Options=================== # Directory that the Filesystem backend store # writes image data to filesystem_store_datadir = /mnt/gluster/glance/images/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a directory named
images
as follows:mkdir -p /mnt/gluster/glance/images
# mkdir -p /mnt/gluster/glance/images
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Change the ownership of the the Red Hat Storage volume as follows:
chown -R glance:glance/mnt/gluster/glance/
chown -R glance:glance/mnt/gluster/glance/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Mount the Red Hat Storage volume on
filesystem_store_datadir
as follows:mount -t glusterfs 10.1.1.11:/glance-vol /mnt/gluster
mount -t glusterfs 10.1.1.11:/glance-vol /mnt/gluster
Copy to Clipboard Copied! Toggle word wrap Toggle overflow When mounting the volume, Red Hat recommends you to usebackup-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. - 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
10.1.1.11:/glance-vol images glusterfs defaults,_netdev 0 0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart the OpenStack glance service as follows:
service openstack-glance-api restart
# service openstack-glance-api restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow