• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

I screwed up the EDB

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> I screwed up the EDB Page: [1]
Login
Message << Older Topic   Newer Topic >>
I screwed up the EDB - 22.Sep.2008 11:24:34 PM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Hi Guys,
To start with, i screwed up! and by the time i realised, it was too late. So i hope to share and have your comments on how to get out of this situation.

On a weekend, i got a call that the email server was down. so i connected remotely to the server and realised there was no space on the server. So i compressed the MDBDATA. Okay, i know it was very foolish but then it was a long weekend and i had to come up with a solution for guys who were for some reasons working on a weekend and required emails

So by monday, hell broke loose as below
1. Mailbox wont mount
2. Microsoft support sites mentioned to decompress the files to resolve the situation
3. i tried to decompress, but it failed caus there was no disk space left.
4. The mdbdata was on a mirrored disk (i know database should not be on mirror but thats a different story how i got there)

so i had a compressed EDB file with no space left to decompress it and we were loosing buisness. so by late monday evening the below was my plan of action

1. break the mirror
2. expand the volume using ACU
3. extend the volume
4. decompress the EDB file
5. try to mount the database (i have no time to run ESUTIL)

Will this work ? i reached office at 6:00 AM tuesday and i am still at "step 2 !!! ". the expansion is only 68% complete. what if in the end i find space to decompress the EDB and still the database does not mount. If it does not mount, so i have no choice to RUN ESUTIL. will that utility be a sucess. The EDB looks in a very bad shape. That my story...i am still waiting for people to reach office at 9:00 and blow my brains out( whatever is left of it now). Help !

< Message edited by s_manoj21 -- 22.Sep.2008 11:25:52 PM >
Post #: 1
RE: I screwed up the EDB - 22.Sep.2008 11:57:38 PM   
uemurad

 

Posts: 8232
Joined: 7.Jan.2004
From: California, USA
Status: offline
If I understand correctly, are you converting the two drives of a RAID1 set to a two-drive RAID0 set?  If so, do you realize you've converted a redundant drive set into one that will lose all the data if either drive fails?

Is there nothing else on the drives that can be moved somewhere else?  What is the capacity of the mirrored drive, and how large is your database?

You might have been better off copying the data somewhere else (e.g. tape) then rebuild the RAID0 set with empty drives, then copy the data back.

_____________________________

Regards,

Dean T. Uemura
Microsoft MVP - Exchange (2007-2011)
exchangeguy.blogspot.com
uemurad@yahoo.com

(in reply to s_manoj21)
Post #: 2
RE: I screwed up the EDB - 23.Sep.2008 12:21:16 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Thanks for the quick response
Yes, you are right. I am converting raid1 to raid 0 knowing that its not redundant. But i have no options as i have no space left on the mail server. The database is 134 GB huge (EDB+STM). so it took almost 10 hours to take a backup!!!! (i copied and pasted it to a file server with sufficient space).Now if i rebuid the RAID and try to copy the data back.....again another 10 hours for the data restoration !! and i have no time because everybosy is eagerly waiting for the mail to get alive. I am really hoping that the EDB is in a recoverable shape (after decompression)....or else i am i real trouble....

The capcity fg mirror drive is 146 GB EACH

< Message edited by s_manoj21 -- 23.Sep.2008 12:25:40 AM >

(in reply to uemurad)
Post #: 3
RE: I screwed up the EDB - 23.Sep.2008 5:52:30 AM   
trevorc

 

Posts: 90
Joined: 11.Jul.2006
Status: offline
Hi,

I think it would have been simpler (and cheaper) to just buy a 300Gb external USB drive, copy the DB to it, uncompress it and replace it.


_____________________________

Trevor

(in reply to s_manoj21)
Post #: 4
RE: I screwed up the EDB - 23.Sep.2008 6:13:23 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
hi mate,

This really disaster... scenario

First thing if that is the case:
Assuming if the you extract the data (100%) the very first thing you need to check the status of the database by running this command eseutil /mh and check the database status : it should be clean shutdown. for priv.edb and pub.edb

(Note : Keep a copy of the above the data)
If it is clean shutdown : Move all the log files from mdbdata folder : keep only those edb and stm and mount the database.

If it is dirty shutdown below the status it will display the logs required ? check whether you have those log files, if so then try eseutil /r command (soft recovery)

If soft recovery fails - restore from the last good known backup.

If you don't have last good known backup and this should be your final solution - Hard repair i.e eseutil /p and then eseutil /d and isinteg -fix.

I would suggest you if the there is dirty shutdown and you want to restore the database then please rename the mdbdata folder (if you are using public folder ) check the status of the PF and put in the mdbdata folder.
> create a new folder called as mdbdata
> Mount the database with blank store so that they can have their mailflow.
> then create a recovery storage group (restore the backup data and the merge the new data with the old one.

(in reply to s_manoj21)
Post #: 5
RE: I screwed up the EDB - 23.Sep.2008 6:15:22 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
sorry uemuard i have not seen your comment by the time i put my comment it was too late for me to stop.

Manoj please uemuard solution and our other folks, you can keep my information as a knowledge base

(in reply to uemurad)
Post #: 6
RE: I screwed up the EDB - 23.Sep.2008 7:16:53 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Hi...decompression seems to be failing...it says "not enough system resources available" ....i have 4 GB memory and enough disk space.....

eseutil /MH is for 2003/3007...what about 2000 ?

(in reply to ismail.mohammed)
Post #: 7
RE: I screwed up the EDB - 23.Sep.2008 7:26:35 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
same for 2000 as well,

Open the command prompt:
Redirect to bin directory i.e cd "C:\program files\exchsrvr\bin" and hit enter
and then type the following command : eseutil /mh "c:\program files\exchsrvr\mdbdata\priv1.edb" | more

then see the seventh line called as status : either it will clean or dirty shutdown
and below the status you will logs required.

Don;t worry about priv1.stm (the above command from priv1.edb will take care of it)

(in reply to s_manoj21)
Post #: 8
RE: I screwed up the EDB - 23.Sep.2008 7:46:27 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
I am trying to decompress it in safe mode.....in a last attempt to rescue it !! might take another 10-15 minutes

(in reply to ismail.mohammed)
Post #: 9
RE: I screwed up the EDB - 23.Sep.2008 8:15:36 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Following are the updates

1. when i had copied the EDB file from the mail server to another hard disk, the file was automatically decompressed. i just noticed that. even though the file size for both the original and the backup are the same, atleast the attribute "enable compression" is not checked in the backup.

2. i checked this uncompressed version of the EDB file (that i have in backup) using eseuril /mh and the status is clean shutdown.

so what do you think now....do i have any hope since its a clean shutdown ? i can just move the log file, restart the server and try to mount the database.

WHAT ABOUT THE .IFS FILES in the mdbdata ??? i have a "clean shutdown" copy of the EDB...so can i delete the IFS files too ??

< Message edited by s_manoj21 -- 23.Sep.2008 8:20:28 AM >

(in reply to s_manoj21)
Post #: 10
RE: I screwed up the EDB - 23.Sep.2008 8:52:52 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
hi manoj,

Clean shutdown - that's great news

Take a copy of that database.

Now let me know the status of pub1.edb (is it clean shutdown?)

Assuming that you have pub1.edb, pub1.stm, priv1.edb and priv1.stm and other log files (that's it) as far as first storage group is concerned.

Path of the database : C:\program files\exchsrvr\mdbdata

Now you need to rename the mdbdata folder to mdbdata old
Create a new folder called as mbddata
Copy only the pub1.edb, pub1.stm, priv1.edb and priv1.stm (clean shutdown)
Then start the information store service
then try to mount the database.

If it is not mounting make a note of the error message you are getting and in the application what is the event id is triggerred.

(in reply to s_manoj21)
Post #: 11
RE: I screwed up the EDB - 23.Sep.2008 9:01:15 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
you mention the following files are required >>>> (pub1.edb, pub1.stm, priv1.edb and priv1.stm and other log files (that's it) as far as first storage group is concerned.....)

what exactly are the "other log files". as per your previous thread, you had advised to move all log files and to keep only the EDB and STM before mounting

< Message edited by s_manoj21 -- 23.Sep.2008 9:02:44 AM >

(in reply to ismail.mohammed)
Post #: 12
RE: I screwed up the EDB - 23.Sep.2008 9:13:14 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
sorry manoj,

Just you keep pub1.edb, pub1.stm, priv1.edb and priv1.stm

Other stuff (other log files) please move to some other location

(in reply to s_manoj21)
Post #: 13
RE: I screwed up the EDB - 23.Sep.2008 9:35:37 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
thanks ismail
well i am copying the uncompressed version of the backup with "clean state" and "0-0" logs required back to the email server. this copy will take atleast 5 hrs.....

meanwhile i was going through some sites and there was this guy who mentioned that he had an EDB file with "clean state" and "0-0 logs required". still he was not able to mount the store.....take a look at the link below (even i get the same error like his- C1041724
http://forums.msexchange.org/m_200015500/mpage_1/tm.htm#200015522

in my case, after it takes 5 hrs to move the file back and if the EDB still refuses to mount......i will certainly have to contemplate suicide !!!

(in reply to ismail.mohammed)
Post #: 14
RE: I screwed up the EDB - 23.Sep.2008 10:05:45 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
keep the finger cross,

lets try our level best, if there is a problem then don't worry we have last step solution also... which we will try when we will use all the possible solution.

(in reply to s_manoj21)
Post #: 15
RE: I screwed up the EDB - 24.Sep.2008 2:01:32 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Hi Ismail.

The problem is solved now !!! after 2 days of compelte downtime.....wow !! what a way to start the week.

The EDB apparantely was rock solid....it survived all the beating....compression...decompression.....copy...paste etc. The EDB was in "clean shutdown" state with "0 Logs" required. so after i moved the old logs restarted the server...the EDB mounted just fine !! I was luckky though caus i was readin in other forums about people with Clean EDB's and still not able to mount.. but i never had to go through eseutil /D or eseuril /P.....luck !!

Now i have to get a new hard drive and migrate to fault tolerant drives (raid 5)...right now there is no fault taolerance cause i have broken the mirror for space !!

(in reply to ismail.mohammed)
Post #: 16
RE: I screwed up the EDB - 24.Sep.2008 2:42:08 AM   
ismail.mohammed

 

Posts: 3018
Joined: 9.May2007
From: India
Status: offline
good to hear that Manoj you got your database back.

But keep in mind taking regular backup all the time. Otherwise you won't lucky chance all the time.

(in reply to s_manoj21)
Post #: 17
RE: I screwed up the EDB - 30.Sep.2008 7:06:20 PM   
atedja

 

Posts: 64
Joined: 14.Apr.2008
Status: offline
OK,

So the lesson learned in this scenario is to copy the latest transaction logfile and the mailbox database into the default directory and then mount it ?

Please correct me if I'm wrong.

To Manoj: what backup application do you use ? ntbackup.exe ?

thanks and glad that this case has been solved.

_____________________________

/* I Appreciate all kinds of response */

(in reply to ismail.mohammed)
Post #: 18
RE: I screwed up the EDB - 1.Oct.2008 2:13:11 AM   
s_manoj21

 

Posts: 10
Joined: 19.Oct.2006
Status: offline
Hello.
For backup, we are using symantec backup exec 11d (formerly veritas) with exchange option (which means it is an exchange aware backup software)

In my case, the edb had a " clean shutdown" status attached to it. i checked that using the "esutil /mh" command. since it was a clean shutdown, it means that all the transactions had been comitted to the EDB database. so there was no need to copy the log files to the original location. all i needed was the EDB and the STM file with the LOG directory location EMPTY.

In case the EDB had a "dirty shutdown" status, we would have been forced to use esutil /d (for defragmenting) or esutil /p (repair) options. From the research i did, i found that esutil /d is enough to rescue the EDB (it worked for 1 guy who was trying to get exchange up for 52 hours straight!! and finally the esutil /D helped him !! )

The last option would be to restore from a good backup and replay the log files.

And the most important thing learnt was, not to take any decision in a hurry. Even before touching the box, do some research and ask the nice online techie guys for advise.In my case it was Ismail- thanks a lot to him. And ofcourse- never neglect the backups !!!

(in reply to atedja)
Post #: 19
RE: I screwed up the EDB - 1.Oct.2008 2:18:31 AM   
atedja

 

Posts: 64
Joined: 14.Apr.2008
Status: offline
Manoj,

You certainly benefits the whole MSExchange.org community here and also me.

thanks for sharing your story and keeping all to the details. By reading your topic today this morning I gain more knowledge not only in Exc. Serv. but also RAID and such.

Have a great day !

Cheers,

AWT

_____________________________

/* I Appreciate all kinds of response */

(in reply to s_manoj21)
Post #: 20

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> Information Stores >> I screwed up the EDB Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter