[CentOS] how to find source of data loss / corruption

John Doe jdmls at yahoo.com
Thu Dec 15 11:29:38 UTC 2011


From: Rudi Ahlers <Rudi at SoftDux.com>

> For example, a photo would be uploaded last night and today when we
> checked it, it doesn't show on the website. So we check if the file is
> on the server, and exists but is 0KB in size. Last night it still
> worked fine. The photo is 482Kb in size.

Only the size changed to 0 or were some other stats changed too?
Maybe try something like:
  inotifywait -m --format "%T %e %f" --timefmt "%D %T" -r /path/to/dir
At least you would know at what time something happens...

JD



More information about the CentOS mailing list