Functions for interacting with GlusterFS
This commit is contained in:
parent
5ac439b14b
commit
a637f1e244
13
gp-scripts/gluster-shell-functions.sh
Normal file
13
gp-scripts/gluster-shell-functions.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
check_volume_status() {
|
||||||
|
if ! sudo gluster vol status "${1}"; then
|
||||||
|
sleep 1m
|
||||||
|
check_volume_status "${1}"
|
||||||
|
fi }
|
||||||
|
|
||||||
|
|
||||||
|
start_volume() {
|
||||||
|
if ! sudo gluster vol start "${1}" force; then
|
||||||
|
sleep 1m
|
||||||
|
start_volume "${1}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user