このコンテンツは選択した言語では利用できません。
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]...
# gluster volume create [new_volname] [replica [count]] [transport tcp | rdma | tcp,rdma] [new-brick]...
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
# 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 Copied! Toggle word wrap Toggle overflow - 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]...
# gluster volume create [new-volname] [replica [count]] [transport tcp | rdma | tcp,rdma] [count]...
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
# 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 Copied! Toggle word wrap Toggle overflow
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]
# 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:
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:
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]
# gluster vol info [volname]
The following are examples of this command and its output:
3.2.4. Starting Red Hat Storage Volumes リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
Start the Block Storage and Image service volumes using the following command:
gluster volume start [volname]
# gluster volume start [volname]
An example of this command and its output is as follows:
gluster volume start cinder-vol
# gluster volume start cinder-vol
Starting cinder-vol has been successful
gluster volume start glance-vol
# gluster volume start glance-vol
Starting glance-vol has been successful