Manage a glusterfs pool
salt.modules.glusterfs.
create
(name, bricks, stripe=False, replica=False, device_vg=False, transport='tcp', start=False)¶Create a glusterfs volume.
CLI Example:
salt host1 glusterfs.create newvolume host1:/brick
salt gluster1 glusterfs.create vol2 '["gluster1:/export/vol2/brick", "gluster2:/export/vol2/brick"]' replica=2 start=True
salt.modules.glusterfs.
delete
(target, stop=True)¶Deletes a gluster volume
salt.modules.glusterfs.
list_peers
()¶Return a list of gluster peers
CLI Example:
salt '*' glusterfs.list_peers
salt.modules.glusterfs.
list_volumes
()¶List configured volumes
CLI Example:
salt '*' glusterfs.list_volumes
salt.modules.glusterfs.
peer
(name)¶Add another node into the peer list.
CLI Example:
salt 'one.gluster.*' glusterfs.peer two
salt.modules.glusterfs.
start_volume
(name)¶Start a gluster volume.
CLI Example:
salt '*' glusterfs.start mycluster
salt.modules.glusterfs.
status
(name)¶Check the status of a gluster volume.
CLI Example:
salt '*' glusterfs.status myvolume
salt.modules.glusterfs.
stop_volume
(name)¶Stop a gluster volume.
CLI Example:
salt '*' glusterfs.stop_volume mycluster