【问题标题】:Scaling Up of GlusterFS-storage only add new peer without new bricks in OpenshiftGlusterFS 存储的扩展只在 Openshift 中添加新的对等体而没有新的砖块
【发布时间】:2018-10-06 12:51:40
【问题描述】:

观察到的行为

我从一个节点 Openshift 集群开始,它成功部署了主/节点和 gluster 卷。现在我扩展了 Openshift 集群,它成功了。

但在扩展 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 /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"

它只添加了 10.1.1.2 作为对等体,但卷仍然只有一块砖

完成自定义以从 1 个节点开始部署 gluster {--durability none}

openshift-ansible/roles/openshift_storage_glusterfs/tasks/heketi_init_db.yml

- name: Create heketi DB volume
  command: "{{ glusterfs_heketi_client }} setup-openshift-heketi-storage --image {{ glusterfs_heketi_image }} --listfile /tmp/heketi-storage.json **--durability none**"
  register: setup_storage


>gluster peer status
Number of Peers: 1
Hostname: 10.1.1.2
Uuid: 1b8159e4-99e2-4f4d-ad95-e97bc8655d32
State: Peer in Cluster (Connected)


gluster volume info

Volume Name: heketidbstorage
Type: Distribute
Volume ID: 769419b9-d28f-4cdd-a8f3-708b6b738f65
Status: Started
Snapshot Count: 0
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: 10.1.1.1:/var/lib/heketi/mounts/vg_4187bfa3eb090ceffea9c53b156ddbd4/brick_80401b43be8c3c8a74417b18ad574524/brick
Options Reconfigured:
transport.address-family: inet
nfs.disable: on

预期/期望的行为

我期望在添加每个新节点时它也应该创建新砖

如何重现的细节(最小和精确)

Add nodes in gluster cluster with below commands
ansible-playbook -i inventory2.ini /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"

环境信息:

  • 使用的 Heketi 版本(例如 v6.0.0 或 master):OpenShift 3.10
  • 使用的操作系统:CentOS
  • 从源代码编译的 Heketi,作为包 (rpm/deb) 或容器:Container
  • 如果是容器,是哪个容器镜像:docker.io/heketi/heketi:latest
  • 使用 kubernetes、openshift 或直接安装:Openshift
  • 如果是 kubernetes/openshift,gluster 是在 kubernetes/openshift 内部还是外部运行:outside
  • 如果是 kubernetes/openshift,它是如何部署的(gk-deploy、openshift-ansible、其他、自定义):openshift-ansible

【问题讨论】:

    标签: openshift openshift-origin


    【解决方案1】:

    仅仅添加一个节点/服务器并不意味着砖块也将添加到现有的 光泽度。 您必须将托管在新节点上的砖添加到现有卷中。 命令 -

    "gluster volume add-brick host:brick-path commit force"

    不确定您是否在自动化脚本中提供了此命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-27
      • 2017-12-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多