~ubuntu-branches/debian/sid/glusterfs/sid

« back to all changes in this revision

Viewing changes to extras/pre-upgrade-script-for-quota.sh

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-04-22 10:00:41 UTC
  • mfrom: (1.3.25)
  • Revision ID: package-import@ubuntu.com-20140422100041-6mur2ttyvb8zzpfq
Tags: 3.5.0-1
* New upstream release.
  - Rewrite patch 01-spelling-error.
  - Adjust lintian overrides.
  - Install new files.
  - The offical tarball is not properly generated, hack it around.
  - Add symlink from fusermount-glusterfs manpage to mount.glusterfs.
  - Move gsync-sync-gfid from /usr/share to /usr/lib.
  - Add benchmarking directory.
* Remove old versioned build dependencies and build depend on libglib2.0-dev.
* Add lintian override for possible-gpl-code-linked-with-openssl. It is the
  same false positive like with the gluster-server package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
#Make sure glusterd and the brick processes are running on all nodes in the
 
4
#cluster.
 
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.
 
7
 
 
8
BACKUP_DIR=/var/tmp/glusterfs/quota-config-backup
 
9
 
 
10
mkdir -p $BACKUP_DIR
 
11
 
 
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
 
15
                continue
 
16
        else
 
17
                gluster volume quota $i list > $BACKUP_DIR/vol_$i;
 
18
        fi;
 
19
done