We are facing an issue in our file system. One of the file is getting deleted from the filesyetems. We tried uploading the file to the system after every 2 day and it will work for one day the next day the file is getting deleted automatically!!!.
The folder in which the file is hosted is having the following permissions
drwxrwx-w and the system has two user root and xyz.
The folder contains files of root and xyz.
The root files has the following permission -rw-r--r--
and the xyz user has the following permision -rwxrwxr-x
The file system is hosted on RHEL5 and the folder is mounted on the application Server.
We would like to get the following query clarified
1. Is there any daily process or cron job which cleans/delete the file. This things is happening to only one file in a collections of thousands of file !!
2. Is there any way to recover the deleted files. We tried using the slocate command after updating the db and could find anything. Normally when a file is deleted it is moved to .Thrash folder? Is there any way to confirm that the file is completely deleted from the file system.
3. Is there any way in which we can mointor a file. Like when the file is delete/modified an alert/mail is send to root user. We will be uploading the file again and this time we need to track what is causing the deletion of the file from the file system.
4. We tried using the debugs commmand and end up with the following error. does this makes any sense?
[root@A2MD03133L ~]# debugfs /home/ssl
debugfs 1.35 (28-Feb-2004)
/home/ssl: Attempt to read block from filesystem resulted in short read while opening filesystem
lsdel: Filesystem not open