by Rudi Kastl, curriculum manager, Red Hat
By default, the packstack installer uses either a volume group named cinder-volumes or a loopback device as back end for the Cinder block storage service. For professional purposes, this is not enough; the usual requirement is to have a redundant storage back end. If you have an existing Red Hat Storage service, you might want to use one of the GlusterFS volumes as back end for the block devices your virtual machines use in the Red Hat Enterprise Linux OpenStack Platform cloud.
Before starting the configuration, you must remove all existing Cinder volumes, or you will run into problems. To figure out if there are any existing volumes with your current Cinder setup issue:
source /root/keystonerc_admin
cinder list
If there are any volumes listed, delete them with:
cinder delete volumename
Now that you have a cleaned-up Cinder setup, you can configure the back end to exclusively use the Red Hat Storage GlusterFS volume(s).
Start off by installing the GlusterFS-fuse package on the Cinder host, available in the Red Hat Storage Native Client repository from Red Hat Network.
yum -y install GlusterFS-fuse
After installation of the native GlusterFS client, adjust the Cinder configuration file for your desired Red Hat Storage back end. Consider backing up the cinder.conf configuration file before actually applying the configuration change.
openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_driver cinder.volume.drivers.glusterfs.GlusterfsDriver
openstack-config --set /etc/cinder/cinder.conf DEFAULT glusterfs_shares_config /etc/cinder/shares.conf
After adjusting the cinder.conf configuration file, create the /etc/cinder/shares.conf file listing all the GlusterFS volumes you want to use as a back end. The shares.conf file lists the GlusterFS volumes with 1 volume per line:
storage.myserver.com:myvolume1 anotherhost.myrhs.com:volume2
Now just restart the affected Cinder services.
for svc in api scheduler volume; do service openstack-cinder-${svc} restart; done
Look at the output of mount to see if your GlusterFS volumes have been mounted successfully by the Cinder service.
In the all-new Red Hat OpenStack Administration (CL210) course, system administrators will learn more about Red Hat Enterprise Linux OpenStack Platform Cinder block storage service.
The OpenStack® Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation or the OpenStack community.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
À propos de l'auteur
Parcourir par canal
Automatisation
Les dernières actualités en matière de plateforme d'automatisation qui couvre la technologie, les équipes et les environnements
Intelligence artificielle
Actualité sur les plateformes qui permettent aux clients d'exécuter des charges de travail d'IA sur tout type d'environnement
Services cloud
En savoir plus sur notre gamme de services cloud gérés
Sécurité
Les dernières actualités sur la façon dont nous réduisons les risques dans tous les environnements et technologies
Edge computing
Actualité sur les plateformes qui simplifient les opérations en périphérie
Infrastructure
Les dernières nouveautés sur la plateforme Linux d'entreprise leader au monde
Applications
À l’intérieur de nos solutions aux défis d’application les plus difficiles
Programmes originaux
Histoires passionnantes de créateurs et de leaders de technologies d'entreprise
Produits
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Services cloud
- Voir tous les produits
Outils
- Formation et certification
- Mon compte
- Ressources développeurs
- Assistance client
- Calculateur de valeur Red Hat
- Red Hat Ecosystem Catalog
- Rechercher un partenaire
Essayer, acheter et vendre
Communication
- Contacter le service commercial
- Contactez notre service clientèle
- Contacter le service de formation
- Réseaux sociaux
À propos de Red Hat
Premier éditeur mondial de solutions Open Source pour les entreprises, nous fournissons des technologies Linux, cloud, de conteneurs et Kubernetes. Nous proposons des solutions stables qui aident les entreprises à jongler avec les divers environnements et plateformes, du cœur du datacenter à la périphérie du réseau.
Sélectionner une langue
Red Hat legal and privacy links
- À propos de Red Hat
- Carrières
- Événements
- Bureaux
- Contacter Red Hat
- Lire le blog Red Hat
- Diversité, équité et inclusion
- Cool Stuff Store
- Red Hat Summit