MiesterSoul said:
I think you misunderstood my question, my locate function is already updated as per to your instruction. It's my home directory has disappear out of thin air, my /usr/home does not exist. No, I do not have a backup of the server. Do you have any idea on how to solve my problem?
Not sure how you managed to have 1000 users of your server and not have some sort of backup system in place. Especially considering how flaky HDDs are these days. Murphy's Law will find a way to ream you somehow, especially if you aren't prepared for it.
Backups is why I spent a loooonggg time on this
project. Because it's not enough to even have redundant storage on your live servers. All you do by doing that is increase the MTTDL by an extra order of magnitude or so. You need to have backups, and the restore needs to be tested regularly. (Note that I make no claim that this is a perfect way to backup and restore. I would like to see some comment from people who have actually used it, though so far 21 people have downloaded the scripts and no one has given feedback to say how things have worked, which may be a good thing. But anyway, IMO it's a step in the right direction. e.g. in the case you are in now, you would have had automatic snapshots of your home directory and probably just been able to roll it back.)
I suggest you start googling "UFS recovery" or "UFS data recovery". It sounds like you haven't had a head crash, so the data is almost certainly still there, it's just marked as ok to write over. So what you will want to do is to
immediately prevent any more data being written, and figure out a way to recover the data from your erstwhile home directory. Maybe also copy your HDD(s) with dd. You might want to check that it hasn't moved or renamed, by doing the following:
# find / -iname "*file_name_that_was_in_home_dir*"
Replace the file name with something that should be in there somewhere. Maybe someone has renamed your home directory and put it somewhere? Just a thought. More likely it is deleted though, so you will need to recover things.
Also, you should answer the questions people have asked, as it helps them to help you. We still don't know whether you use UFS or ZFS.
A
thread for you.