3
#Make sure glusterd and the brick processes are running on all nodes in the
5
#This script must be run prior to upgrading the cluster to 3.5, that too on
6
#only one of the nodes in the cluster.
8
BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup
12
for i in `gluster volume list`; do
13
var=$(gluster volume info $i | grep 'features.quota'| cut -d" " -f2);
14
if [ -z "$var" ] || [ "$var" == "off" ]; then
17
gluster volume quota $i list > $BACKUP_DIR/vol_$i;