Manage GlusterFS pool.
salt.states.glusterfs.
add_volume_bricks
(name, bricks)¶Add brick(s) to an existing volume
myvolume:
glusterfs.add_volume_bricks:
- bricks:
- host1:/srv/gluster/drive1
- host2:/srv/gluster/drive2
Replicated Volume:
glusterfs.add_volume_bricks:
- name: volume2
- bricks:
- host1:/srv/gluster/drive2
- host2:/srv/gluster/drive3
salt.states.glusterfs.
created
(*args, **kwargs)¶Deprecated version of more descriptively named volume_present
salt.states.glusterfs.
peered
(name)¶检测节点是否已经被监视
要监控的远程主机
peer-cluster:
glusterfs.peered:
- name: two
peer-clusters:
glusterfs.peered:
- names:
- one
- two
- three
- four
salt.states.glusterfs.
started
(name)¶检测是否卷已经被启动
卷名
mycluster:
glusterfs.started: []
salt.states.glusterfs.
volume_present
(name, bricks, stripe=False, replica=False, device_vg=False, transport='tcp', start=False, force=False)¶Ensure that the volume exists
卷名
myvolume:
glusterfs.created:
- bricks:
- host1:/srv/gluster/drive1
- host2:/srv/gluster/drive2
Replicated Volume:
glusterfs.created:
- name: volume2
- bricks:
- host1:/srv/gluster/drive2
- host2:/srv/gluster/drive3
- replica: 2
- start: True