diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2014-04-04 17:00:09 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2014-04-10 08:15:50 -0700 |
| commit | d4cc7595b5e21a92386e41f7ad7570ad9a728bd4 (patch) | |
| tree | aac33f873b87fc35dec1fddf5a4b27c85dfe63bb /extras/pre-upgrade-script-for-quota.sh | |
| parent | bf8c9b331b2fb55882204fa31ede3997165e6748 (diff) | |
rpms: Add quota upgrade scripts to rpms
Also replace /tmp/quota-config-backup with /var/tmp/glusterfs/quota-config-backup
in doc and upgrade scripts.
Change-Id: I289662300d32f75e2fc6e789037c3224054a38a5
BUG: 969461
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/7401
Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/pre-upgrade-script-for-quota.sh')
| -rwxr-xr-x | extras/pre-upgrade-script-for-quota.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extras/pre-upgrade-script-for-quota.sh b/extras/pre-upgrade-script-for-quota.sh index 522e41206d0..ddb4f7fa450 100755 --- a/extras/pre-upgrade-script-for-quota.sh +++ b/extras/pre-upgrade-script-for-quota.sh @@ -5,12 +5,15 @@ #This script must be run prior to upgrading the cluster to 3.5, that too on #only one of the nodes in the cluster. -mkdir -p /tmp/quota-config-backup +BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup + +mkdir -p $BACKUP_DIR + for i in `gluster volume list`; do var=$(gluster volume info $i | grep 'features.quota'| cut -d" " -f2); if [ -z "$var" ] || [ "$var" == "off" ]; then continue else - gluster volume quota $i list > /tmp/quota-config-backup/vol_$i; + gluster volume quota $i list > $BACKUP_DIR/vol_$i; fi; done |
