-
Notifications
You must be signed in to change notification settings - Fork 435
Scaling Up of GlusterFS-strorage only add new peer without new bricks in Openshift #1387
Comments
Unfortunately, this is not how the system works today. If a volume is created with "distribute" and no replicas the volume will always be that way. Adding new nodes will allow you to create replica-3 volumes but the types of existing volumes are fixed. |
1- any suggestion to customize current openshift ansible script to achieve it?
|
No, this is not really feasible with the the architecture of the system today.
No, adding nodes will not change the replica count of existing volumes. And certainly not automatically. If you deploy a 3 node cluster from the beginning and create heketidbstorage on it it will always be a replica-3 volume. You can then then add bricks to that volume via the I strongly suggest simply starting out with a 3-node cluster so you can have a replica-3 volume from the beginning. If you absolutely have to start with a one node cluster and then add nodes you're going to have to do a lot of manual & tricky steps that are not anything we typically support. |
|
I checked with one of the gluster devs and the answer is a qualified yes. The issue you'll have is that heketi will not understand the structural changes you'd be making. You'd either have to live with a heketi that is always out of sync with gluster (and the issues this will cause in createing new volumes,etc) OR you'd have to manually edit the heketi db to add in the bricks and carefully change all the data structures and sizes in the db. This would not be the kind of thing we'd be able to help much with supporting. |
@phlogistonjohn already one issue created for this Feature, Hope so will get it soon |
Hi @imranrazakhan since the other issue you mention seems to encapsulate your request I'm going to close this issue (duplicate). If I misunderstood please feel free to reopen this issue as needed. |
Kind of issue
Observed behavior
I started with one node Openshift cluster and it successfully deployed master/node and gluster volume. Now i extend Openshift cluster and it was successfully.
but on extending glusterfs volume with below
inventory file look like below
ansible-playbook -i inventory2.ini /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/config.yml -e openshift_upgrade_nodes_label="type=upgrade"
it only added 10.1.1.2 as peer but volume still has only one brick
Following customization done to start deploy gluster from 1 node {--durability none}
openshift-ansible/roles/openshift_storage_glusterfs/tasks/heketi_init_db.yml
Expected/desired behavior
I am expecting that on addition of every new node it should create new brick too
Details on how to reproduce (minimal and precise)
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"
Information about the environment:
Other useful information
The text was updated successfully, but these errors were encountered: