Irazmus Posted November 22, 2010 Posted November 22, 2010 Last week one of our servers decided to delete the entirety of /var, including all it's logs and our helpdesk's MySQL database. To make matters worse, although the backups live on a separate machine, they also appear to be missing /var and are thus useless. I have tried a few different recovery utilities in an attempt to recover the database, the most successful being photorec [http://www.cgsecurity.org/wiki/PhotoRec], which has recovered 200+ frm (table definition) and MYI (MYISAM compressed data) files, but none of the MYD files which actually hold the data (it seems PhotoRec doesn't support recovering MYDs [http://www.cgsecurity.org/wiki/File_Formats_Recovered_By_PhotoRec]). Can anyone please point me to a tool/method for recovering MYD's from a corrupt ext3 filesystem. Assuming that's possible, a method of linking the MYD to it's appropriate frm and MYI (since the recovered files have random file names) would also be appreciated. *Next task, review the backup verification procedure.
Irazmus Posted December 8, 2010 Author Posted December 8, 2010 Thanks for the info. We've managed to recover most of the database using the above link, the one table we couldn't recover held the helpdesk tickets, which we've (mostly) reconstructed using the helpdesk's e-Mail notifications. I think it's safe to say we were lucky this time.
techzilla Posted March 5, 2011 Posted March 5, 2011 this has got to be one of the worst things to have happen, catastrophic data loss!!!! god i'm going to be skinned alive, if I can't come up with something. photorec does only do .frm and .MYI but not the important .MYD. is there anything i can do?
z80 Posted June 13, 2011 Posted June 13, 2011 Thanks for the info. We've managed to recover most of the database using the above link, the one table we couldn't recover held the helpdesk tickets, which we've (mostly) reconstructed using the helpdesk's e-Mail notifications. I think it's safe to say we were lucky this time. Hello - I'm in a similar position (needing to recover .myd files). Can you let me know the process you used? thanks.
Irazmus Posted June 13, 2011 Author Posted June 13, 2011 Unfortunately I can't remember the exact process (and it didn't get logged since it was the helpdesk database we were trying to recover), but I'm sure it was ext3grep which saved my skin. There was more info in this thread but it seems to have gone AWOL, however the most important item was a link to the ext3grep documentation, which I believe can be found here: HOWTO undelete removed files and directories on an ext3 file system That's assuming you're using an Ext3 file system as I was, if you're using a different file system you'll probably need to look for other tools. For recovering files from NTFS volumes I've found ntfsundelete to be useful. I've not (yet) had need to recover from any other file systems so can't advise if you're using a file system other than those two. And in case it wasn't obvious, both those recovery operations were performed in Linux (Debian 5.0.8 to be exact). As mentioned above, we didn't manage to recover every MYD file, we lost the printers and tracking tables, but we did manage to recover most of them. I wish you luck in your recovery efforts. Let us know how you get on.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now