0

我有一个安装了 GlusterFS 存储的 OpenShift Origin 3.11 集群。这是一个单一的主设置,我的初始库存如下所示:

[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'

node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'

node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'



[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'

node-01.example.com glusterfs_devices='[ "/dev/sda" ]'

node-02.example.com glusterfs_devices='[ "/dev/sda" ]'

我通过将库存修改为:

[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'

node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'

node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'



[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'

node-01.example.com glusterfs_devices='[ "/dev/sda" ]'

node-02.example.com glusterfs_devices='[ "/dev/sda" ]'

[new_nodes]
node-03.example.com openshift_ip=1.2.3.3 openshift_schedulable=true openshift_node_group_name='node-config-compute'

并运行:

ansible-playbook playbooks/openshift-node/scaleup.yml

哪个运行成功。现在,要将这个新节点添加为 GlusterFS 卷,我将此节点添加到glusterfs组中,

[nodes]
console.example.com openshift_ip=1.2.3.4 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'

node-01.example.com openshift_ip=1.2.3.1 openshift_schedulable=true openshift_node_group_name='node-config-compute'

node-02.example.com openshift_ip=1.2.3.2 openshift_schedulable=true openshift_node_group_name='node-config-compute'
node-03.example.com openshift_ip=1.2.3.3 openshift_schedulable=true openshift_node_group_name='node-config-compute'



[glusterfs]
console.example.com glusterfs_devices='[ "/dev/sda" ]'

node-01.example.com glusterfs_devices='[ "/dev/sda" ]'

node-02.example.com glusterfs_devices='[ "/dev/sda" ]'

node-03.example.com  glusterfs_devices='[ "/dev/sda" ]'

[new_nodes]

并运行相应的剧本,

ansible-playbook playbooks/openshift-glusterfs/config.yml

但这失败了

TASK [openshift_storage_glusterfs : Wait for GlusterFS pods] *******************

步。我错过了运行任何其他剧本吗?

4

1 回答 1

0

AFAIK,剧本converged mode不支持扩展。ansible因为heketi当时只有全新安装时才支持磁盘设备的初始化,所以想扩展现有glusterfs集群,需要手动操作,如下图:12.1.3。添加新集群

于 2019-02-05T12:38:07.603 回答