gluster / gluster-ansible

A core library of gluster specific roles and modules for ansible/ansible tower.
GNU General Public License v3.0
189 stars 54 forks source link

Ansible module gluster_volume with arbiter option for 2 node cluster #96

Closed vishnu-anil closed 2 years ago

vishnu-anil commented 4 years ago

I am trying to create a Glsuter volume with 2 replica and 1 arbiter brick. Below is the ansible task i use as per the documentation. However i am getting the below error. Any advise on this?

  • name: Configure Gluster volume. gluster_volume: state: present name: "{{ gluster_brick_name }}" brick: "{{ gluster_brick_dir }}" replicas: 2 arbiters: 1 cluster: "{{ gluster_cluster }}" host: "{{ inventory_hostname }}" force: yes run_once: true

Error: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: None fatal: [node1]: FAILED! => {"changed": false, "msg": "error running gluster (/sbin/gluster --mode=script volume create gluster replica 3 arbiter 1 transport tcp node1:/BK/gluster/brick node2:/BK/gluster/brick force) command (rc=1): number of bricks is not a multiple of replica count\n\nUsage:\nvolume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT> [arbiter <COUNT>]] [disperse [<COUNT>]] [disperse-data <COUNT>] [redundancy <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK>... [force]\n\n"}