Rodney -> files disappeared (Oct. 4, '06, 6:31:23 PM) |
This is a story about files "disappearing". Not one or two or two dozen files.
About 14,000+ files disappearing. Hundreds of applications!
I was working on the files yesterday and then today the whole source tree
was gone completely. A real heart stopping moment. Where did they go?
Was I so zoned-out that I did something super-silly like "rm -rf *" ?
Weeks of work gone? really gone?! Did someone break in and remove the files?
Stopped heart restarts at too many beats per minute.
Reviewing the logs I noticed no odd logins (though the VPN creates several
odd ones at regular intervals). I noticed that I'd done a test install of
a package (not released). Did I have the package do some cleaup when it
was uninstalled (part of the test). A check of the package showed no.
The package did create, if the it did not already exist, a new directory.
But this package had been run several times before over the past couple of
weeks. I looked and saw the directory there with nothing in it. Interestingly
enough all of the files that were missing were in a sub-directory of a directoy
with a similar name. Just the case was different... I found the potential answer.
A check with "ls -li" showed the inode numbers of the two directories
was the same. Somehow, something had removed from the registry the ObCaseInsensitive
entry. This caused all stat() calls to resolve as case insensitive. The result of
this made it seem as if thousands of files had vanished.
By restoring the ObCaseInsensitive entry (set to 0x0) & rebooting, my missing files
all re-appeared as they had originally been just the day before.
Now a follow-up "ls -li" showed the two directories with different inodes.
Recorded for any other poor soul who gets the same problem [8|] |
|
|
|