【问题标题】:How to add glusterfs node in existing cluster with ansible如何使用 ansible 在现有集群中添加 glusterfs 节点
【发布时间】:2018-10-01 15:10:03
【问题描述】:

我已经使用 glusterfs 部署了 OKD 集群,现在我想再添加一个 glusterfs 节点,但找不到任何适合它的剧本。

https://github.com/openshift/openshift-ansible/tree/master/playbooks/openshift-glusterfs

我发现一本没有描述的剧本

https://github.com/openshift/openshift-ansible/blob/master/playbooks/openshift-glusterfs/upgrade.yml

【问题讨论】:

    标签: openshift glusterfs


    【解决方案1】:

    要在现有组中添加 glusterfs 节点,请遵循以下操作

    更改库存,如下所示,在 glusterfs 中添加带有标签的节点

    [glusterfs]
    10.1.1.1  glusterfs_devices='[ "/dev/vdb" ]' 
    10.1.1.2  glusterfs_devices='[ "/dev/vdb" ]'  openshift_node_labels="type=upgrade"
    

    现在运行以下脚本

    ansible-playbook -i inventory2.ini openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"
    

    由于 gluster 已经安装在 10.1.1.1 上,以上脚本将在现有 gluster 集群中添加 10.1.1.2

    【讨论】:

      猜你喜欢
      • 2020-01-05
      • 2021-09-15
      • 2014-05-14
      • 1970-01-01
      • 2020-09-13
      • 2020-01-14
      • 1970-01-01
      • 2015-11-26
      • 1970-01-01
      相关资源
      最近更新 更多