이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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]...
    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.
  • 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]...
    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.

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]
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

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
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]
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
# 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

3.2.4. Starting Red Hat Storage Volumes

Start the Block Storage and Image service volumes using the following command:
# gluster volume start [volname]
An example of this command and its output is as follows:
# gluster volume start cinder-vol
Starting cinder-vol has been successful
# gluster volume start glance-vol
Starting glance-vol has been successful
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동