I believe I have a data corruption issue on my server.
This server has been hitting performance issues over the past few days with a specific set of software: gallery2. I've been attempting to fix it through the normal paths, one of which is deleting the software's caches. The script provided to do so crashes mysql when I run it. The deletion of the cache seems to hang on a specific folder, so I tried to chmod it.
Attempting to chmod the directory crashes mysql as well and the terminal reports the following after the crash:
chmod: changing permissions of `entity/1/4/145446.inc': Read-only file system + one of these lines for every file in the directory
The directory in question is: /var/www/vhosts/autoimagery.com/httpdocs/gallery2data/cache/entity
The command I ran is a simple recursive chmod: chmod -R 777 entity/
I'm completely lost on how to resolve this.