このコンテンツは選択した言語では利用できません。

3.2. Setting up Red Hat Storage Trusted Storage Pool


Set up a Red Hat Storage trusted storage pool to create volumes. For trusted storage pools setup instructions, see the Setting up Trusted Storage Pools chapter in the Red Hat Storage Administration Guide.

3.2.1. Creating Volumes

Create Red Hat Storage volumes for both the Block Storage and Image service. This example uses a distributed-replicated volume to demonstrate using Red Hat Storage as the storage back-end for Red Hat OpenStack.
  • To create a distributed-replicate Red Hat Storage volume for Block Storage:
    # gluster volume create [new_volname] [replica [count]] [transport tcp | rdma | tcp,rdma] [new-brick]...
    Copy to Clipboard Toggle word wrap
    As an example, the following command creates a four node distributed-replicated volume with a two-way mirror:
    # gluster volume create cinder-volume replica 2 transport tcp 10.1.1.11:/rhs/brick1/cinder-vol  10.1.1.12:/rhs/brick1/cinder-vol  10.1.1.13:/rhs/brick2/cinder-vol  10.1.1.14:/rhs/brick2/cinder-vol 
    Creation of cinder-volume has been successful
    Please start the volume to access data.
    Copy to Clipboard Toggle word wrap
  • To create a distributed-replicated Red Hat Storage volume for the Image service:
    # gluster volume create [new-volname] [replica [count]] [transport tcp | rdma | tcp,rdma] [count]...
    Copy to Clipboard Toggle word wrap
    As an example, the following command creates a four node distributed-replicated volume with a two-way mirror:
    # gluster volume create glance-volume replica 2 transport tcp 10.1.1.11:/rhs/brick1/glance-vol  10.1.1.12:/rhs/brick1/glance-vol  10.1.1.13:/rhs/brick2/glance-vol  10.1.1.14:/rhs/brick2/glance-vol 
    Creation of cinder-volume has been successful
    Please start the volume to access data.
    Copy to Clipboard Toggle word wrap

3.2.2. Tuning Red Hat Storage Volumes for Red Hat OpenStack

Before starting the volume, tune the volumes used for Block Storage as follows:
# gluster volume set [volname] group virt
# gluster vol set [volname] storage.owner-uid [uid]
# gluster vol set [volname] storage.owner-gid [gid]
Copy to Clipboard Toggle word wrap
As an example, set these volume options for cinder-vol volume as follows:
# gluster vol set cinder-vol group virt                   
Set volume successful

# gluster vol set cinder-vol storage.owner-uid 165
Set volume successful

# gluster vol set cinder-vol storage.owner-gid 165         
Set volume successful
Copy to Clipboard Toggle word wrap

Important

When a volume is tagged (using the group virt command), it is reserved as a storage back-end for Red Hat OpenStack and cannot be used for any other storage purpose. The tagged volume is only accessible using the gluster native client.
The tuning command sets the options on the listed volume as key value pairs in the /var/lib/glusterd/groups/virt file.
The default (and recommended) key value pairs (volume set options) of the group name file in the /var/lib/glusterd/groups/virt file are as follows:
quick-read=off
read-ahead=off
io-cache=off
stat-prefetch=off
eager-lock=enable
remote-dio=on
quorum-type=auto
server-quorum-type=server
Copy to Clipboard Toggle word wrap
For details about volume set options that can be tuned, see the Managing Red Hat Storage Volumes chapter in the Red Hat Storage Administration Guide.

3.2.3. Verifying Red Hat Storage Volume Configuration

Use the following command to verify the volume configuration before starting the volumes:
# gluster vol info [volname]
Copy to Clipboard Toggle word wrap
The following are examples of this command and its output:
# gluster vol info cinder-vol
Volume Name: cinder-vol
Type: Distributed-Replicate
Volume ID: 2f4edaef-678b-492a-b972-bd95c1c490a3
Status: Created
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.1.1.11:/rhs/brick1/cinder-vol
Brick2: 10.1.1.12:/rhs/brick1/cinder-vol
Brick3: 10.1.1.13:/rhs/brick2/cinder-vol
Brick4: 10.1.1.14:/rhs/brick2/cinder-vol
Options Reconfigured:
storage.owner-gid: 165
storage.owner-uid: 165
network.remote-dio: enable
cluster.eager-lock: enable
performance.stat-prefetch: off
performance.io-cache: off
performance.read-ahead: off
performance.quick-read: off
Copy to Clipboard Toggle word wrap
# gluster vol info glance-vol                             
Volume Name: glance-vol
Type: Distributed-Replicate
Volume ID: eedd5254-e0ca-4173-98eb-45eaef738010
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.1.1.11:/rhs/brick3/glance-vol
Brick2: 10.1.1.12:/rhs/brick3/glance-vol
Brick3: 10.1.1.13:/rhs/brick4/glance-vol
Brick4: 10.1.1.14:/rhs/brick4/glance-vol
Options Reconfigured:
storage.owner-gid: 161
storage.owner-uid: 161
network.remote-dio: enable
cluster.eager-lock: enable
performance.stat-prefetch: off
performance.io-cache: off
performance.read-ahead: off
performance.quick-read: off
Copy to Clipboard Toggle word wrap

3.2.4. Starting Red Hat Storage Volumes

Start the Block Storage and Image service volumes using the following command:
# gluster volume start [volname]
Copy to Clipboard Toggle word wrap
An example of this command and its output is as follows:
# gluster volume start cinder-vol
Starting cinder-vol has been successful
Copy to Clipboard Toggle word wrap
# gluster volume start glance-vol
Starting glance-vol has been successful
Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat