new gluster mount, secure, with 2 bricks
This commit is contained in:
@@ -31,6 +31,10 @@ volumes:
|
|||||||
# - name: nextcloud2
|
# - name: nextcloud2
|
||||||
# - name: prometheus
|
# - name: prometheus
|
||||||
# - name: tmp
|
# - name: tmp
|
||||||
|
balanced:
|
||||||
|
- name: secure
|
||||||
|
brick1: secure1
|
||||||
|
brick2: secure2
|
||||||
|
|
||||||
distributed: []
|
distributed: []
|
||||||
# - name: tmp
|
# - name: tmp
|
||||||
@@ -55,6 +59,8 @@ mounts:
|
|||||||
prometheus: /data/glusterfs/prometheus/brick1
|
prometheus: /data/glusterfs/prometheus/brick1
|
||||||
tmp: /data/glusterfs/tmp/brick1
|
tmp: /data/glusterfs/tmp/brick1
|
||||||
vmshares: /data/glusterfs/vmshares/brick1
|
vmshares: /data/glusterfs/vmshares/brick1
|
||||||
|
secure1: /data/glusterfs/secure/brick1
|
||||||
|
secure2: /data/glusterfs/secure/brick2
|
||||||
|
|
||||||
cubox-i:
|
cubox-i:
|
||||||
- name: vmshares
|
- name: vmshares
|
||||||
@@ -84,9 +90,13 @@ mounts:
|
|||||||
- name: plex-data
|
- name: plex-data
|
||||||
status: mounted
|
status: mounted
|
||||||
src: "UUID=cdff8026-1d56-4cee-8c12-8c61dc587850"
|
src: "UUID=cdff8026-1d56-4cee-8c12-8c61dc587850"
|
||||||
- name: nextcloud2 # dead
|
|
||||||
status: absent
|
- name: secure1
|
||||||
|
status: mounted
|
||||||
src: "UUID=ced31b8e-8404-4bff-b428-6411c54451a4"
|
src: "UUID=ced31b8e-8404-4bff-b428-6411c54451a4"
|
||||||
|
- name: secure2
|
||||||
|
status: mounted
|
||||||
|
src: "UUID=b0dc64be-80b1-49f6-ae0f-ae6219e734c9"
|
||||||
|
|
||||||
home: []
|
home: []
|
||||||
cubox-m: []
|
cubox-m: []
|
||||||
|
|||||||
@@ -31,6 +31,19 @@
|
|||||||
with_items: "{{volumes.replicated}}"
|
with_items: "{{volumes.replicated}}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
|
- name: create balanced gluster volumes
|
||||||
|
gluster_volume:
|
||||||
|
state: present
|
||||||
|
start_on_create: yes
|
||||||
|
name: "{{item.name}}"
|
||||||
|
brick: "{{mounts.paths[item.brick1]}}/{{volumes.brick_folder}},{{mounts.paths[item.brick2]}}/{{volumes.brick_folder}}"
|
||||||
|
rebalance: no
|
||||||
|
replicas: 2
|
||||||
|
force: true
|
||||||
|
cluster: "{{cluster}}"
|
||||||
|
with_items: "{{volumes.balanced}}"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
#- name: create distributed gluster volumes
|
#- name: create distributed gluster volumes
|
||||||
# gluster_volume:
|
# gluster_volume:
|
||||||
# state: present
|
# state: present
|
||||||
|
|||||||
Reference in New Issue
Block a user