Search code examples
linuxglusterfs

Remove files from glusterfs cache (hardlinks)


How to remove files from glusterfs cache (hardlinks) after file deletion directly on brick.


Solution

  • Go inside gluster 'cache' folder eg. /data/.glusterfs/.glusterfs

    Find and copy these files with dir structure to safe place

    find . -links 1 -type f -exec rsync -arvRH --progress --remove-source-files {} /data/old_files/ ;

    Check & remove.