1755655 Members
2749 Online
108837 Solutions
New Discussion юеВ

retrieving file

 
christian_derek
Regular Advisor

retrieving file

Hi,

I did a really big misktake, I erased a directory by mistake (I think) and guess what, this is the database directory. No valid backup since Nov 06. The database is still open and I have the process number and inode number, is there a way I can recover the file with the inode?

Thanks,

thanks,
5 REPLIES 5
Basheer_2
Trusted Contributor

Re: retrieving file

Call the database vendor and call HP support
R.K. #
Honored Contributor

Re: retrieving file

Hi Chris,

I am not sure if it can be retrieved from OS side. Database team may have a some idea.
Don't fix what ain't broke
Michael Steele_2
Honored Contributor

Re: retrieving file

Hi

I guess you think the entire database has been read and stored in memory. Not so. Only open files will still be in the system and each will have to be rewritten to save them. All the other unopened files are lost.

And I guess you'll have to go back to Nov 06 to get a backup tape to restore from, for everything in between is lost.

Hope you keep your job. This is basic.
Support Fatherhood - Stop Family Law
Hein van den Heuvel
Honored Contributor

Re: retrieving file

Your company 'saved' a lot of money all these years not doing backups or not investing in restore practices.
The time has come to pay up!
Don't go cheap. Hire the best service you can, at any prices, to help you with this.
And, uh,... freeze all activity, do not reboot. But you realized that surely.
Good luck!
Hein.
Bill Hassell
Honored Contributor

Re: retrieving file

If the file is still open (one or more processes are still using the file) then your only hope is for the DBA to dump the file using database tools. Once all processes close the file, the inode becomes reusable. There are a few consultants that know enough about fsdb and the VxFS filesystem to be able to track down the beginning addresses that the inode(s) pointed to. But this has to be done immediately (and will be very costly to fly in the consultant for the hours or perhaps days) so that the data area is not reused. It may be too late already.

"There are only two types of system administrators: those that have lost data and those that are going to"

Whether you are running a PC with 10GB of files or a server with 500TB of data, the problem is the same.


Bill Hassell, sysadmin