-
Notifications
You must be signed in to change notification settings - Fork 54
Highly available SMB share on replica 3 volume
Sachidananda Urs edited this page Jul 2, 2018
·
1 revision
An SMB share can be created on different volume types. This example shows how to create a highly available SMB share on a replica 3 volume.
---
- name: Setup CTDB backed by an arbitrated volume
hosts: ctdb_hosts
remote_user: root
gather_facts: false
vars:
# Variables for backendsetup
gluster_infra_stripe_unit_size: 128
gluster_infra_pvs: /dev/vdb
# Create a thin volume
gluster_infra_lv_logicalvols:
- { lvname: 'glusterstore_thinlv', lvsize: '500G' }
gluster_infra_mount_devices:
- { path: '/storage/ctdb', lv: glusterstore_thinlv }
gluster_features_ctdb_nodes: 192.168.1.1,192.168.2.5
gluster_features_ctdb_publicaddr: '10.70.37.6/24 eth0,10.70.37.8/24 eth0'
gluster_features_ctdb_volume: samba
# GlusterFS volume
gluster_cluster_volume: 'ctdb'
gluster_cluster_replica_count: 3
gluster_cluster_bricks: '/storage/ctdb/ctdbvol'
gluster_cluster_hosts: "{{ groups['ctdb_hosts'] }}"
gluster_cluster_force: 'yes'
roles:
- gluster.infra
- gluster.cluster
- gluster.features
The above playbook makes use of three roles: infra, cluster, and features for setting up backend, creating volume, and setting up highly available SMB share respectively.
See gluster.cluster for setting up different types of volumes. And gluster.features for different variables and documentation on CTDB.