付録B gluster_volume_inventory.yml ファイルについて
gluster_volume_inventory.ymlインベントリファイルは、空き容量がある場合に、既存のボリュームグループから論理ボリュームを作成時に使用できるサンプルファイルです。
/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/gluster_volume_inventory.yml に、このファイルを作成してください。
B.1. 論理ボリュームを作成するための設定パラメータ
- hosts
ハイパーコンバージドホストのバックエンドネットワークFQDN。
cluster_nodesセクションに同じホスト名のセットを記載します。hosts: <host1-backend-FQDN>: <host2-backend-FQDN>: <host3-backend-FQDN>:
- vgname
- ホスト上の既存のボリュームグループ(VG)の名前。
- gluster_infra_disktype
ディスクアグリゲーションタイプ。対応できる値:
- RAID6
- RAID5
- JBOD
- gluster_infra_diskcount
- RAID セット内のデータディスクの数。JBODの場合、値は1です。
- gluster_infra_stripe_unit_size
- RAID ストライプサイズJBODではこのパラメータは無視してください。
gluster_volume_inventoryファイルの例
hc_nodes:
hosts:
host1-backend.example.com:
host2-backend.example.com:
host3-backend.example.com:
# Common configurations
vars:
gluster_infra_volume_groups:
- vgname: gluster_vg_sdb
pvname: /dev/sdb
gluster_infra_mount_devices:
- path: /gluster_bricks/newengine
lvname: gluster_lv_newengine
vgname: gluster_vg_sdb
gluster_infra_thick_lvs:
- vgname: gluster_vg_sdb
lvname: gluster_lv_newengine
size: 100G
gluster_infra_disktype: RAID6
gluster_infra_diskcount: 10
gluster_infra_stripe_unit_size: 256
gluster_features_force_varlogsizecheck: false
gluster_set_selinux_labels: true
cluster_nodes:
- host1-backend.example.com
- host2-backend.example.com
- host3-backend.example.com
gluster_features_hci_cluster: "{{ cluster_nodes }}"
gluster_features_hci_volumes:
- volname: newengine
brick: /gluster_bricks/newengine/newengine
arbiter: 0