3
# This script can be used to cleanup the 'cluster/distribute' translator's
4
# stale link files. One may choose to run this only when number of subvolumes
5
# to distribute volume gets increased (or decreased)
7
# This script has to be run on the servers, which are exporting the data to
10
# (c) 2009 Gluster Inc <http://www.gluster.com/>
14
# Change the below variable as per the setup.
15
export_directory="/export/glusterfs"
19
# Clean the 'link' files on backend
20
find "${export_directory}" -type f -perm +01000 -exec rm -v '{}' \;