diff options
Diffstat (limited to 'scripts/gluster.sh')
-rwxr-xr-x | scripts/gluster.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gluster.sh b/scripts/gluster.sh index 07ca7f9..a3ff186 100755 --- a/scripts/gluster.sh +++ b/scripts/gluster.sh @@ -11,7 +11,7 @@ shift function info { vol=$1 - status=$(gluster volume info databases | grep -P 'Status' | awk '{ print $2 }' | tr -d '\r\n') + status=$(gluster volume info "$vol" | grep -P 'Status' | awk '{ print $2 }' | tr -d '\r\n') bricks=$(gluster volume info "$vol" | grep -P 'Number of Bricks' | awk '{ print $NF }' | tr -d '\r\n') avail=$(gluster volume status "$vol" detail | grep Brick | wc -l) online=$(gluster volume status "$vol" detail | grep Online | grep Y | wc -l) |