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.
執筆者紹介
チャンネル別に見る
自動化
テクノロジー、チーム、環境にまたがる自動化プラットフォームの最新情報
AI (人工知能)
お客様が AI ワークロードをどこでも自由に実行することを可能にするプラットフォームについてのアップデート
クラウドサービス
マネージド・クラウドサービスのポートフォリオの詳細
セキュリティ
環境やテクノロジー全体に及ぶリスクを軽減する方法に関する最新情報
エッジコンピューティング
エッジでの運用を単純化するプラットフォームのアップデート
インフラストラクチャ
世界有数のエンタープライズ向け Linux プラットフォームの最新情報
アプリケーション
アプリケーションの最も困難な課題に対する Red Hat ソリューションの詳細
オリジナル番組
エンタープライズ向けテクノロジーのメーカーやリーダーによるストーリー
製品
ツール
試用、購入、販売
コミュニケーション
Red Hat について
エンタープライズ・オープンソース・ソリューションのプロバイダーとして世界をリードする Red Hat は、Linux、クラウド、コンテナ、Kubernetes などのテクノロジーを提供しています。Red Hat は強化されたソリューションを提供し、コアデータセンターからネットワークエッジまで、企業が複数のプラットフォームおよび環境間で容易に運用できるようにしています。
言語を選択してください
Red Hat legal and privacy links
- Red Hat について
- 採用情報
- イベント
- 各国のオフィス
- Red Hat へのお問い合わせ
- Red Hat ブログ
- ダイバーシティ、エクイティ、およびインクルージョン
- Cool Stuff Store
- Red Hat Summit