0

I work with email recovery at a university. We have Exchange 2010 and we use Tivoli as our backup/restore program.

When you do a Mailbox Restore,you specify a user's mailbox to recover and a given day on which the backup occured. After that a folder with a name in the format of TSMRDB-server-DateOfOccurence (ex. TSMRDB-EXSERVER_20120828111630) is created. The entire database for the backup day is copied out, only to have the user's mailbox saved into a .pst file. Yes, this seems inefficient. After the .pst file is created the folder TSMRDB-EXSERVER_20120828111630 is removed. At times the process fails and the database is left dismounted (you cannot simply go to the exchange management console and mount it) and the folder not-deleted.

When you run ESEUTIL /MH "M:\2010 Restores\TSMRDB-EXSERVER_20120828111630\DB3.edb" on the database that was created you see that the state is Dirty Shutdown. In order to repair this you can say ESEUTIL /R e02 /D "M:\2010 Restores\TSMRDB-EXSERVER_20120828111630\DB3.edb". However, it gives an error Operation terminated with error -528 (JET_errMissingLogFile, Current log file missing). The problem is that the server is the one handling the entire process. What log file can I give it to stop asking me or is there another way to mount the database in order to remove it?

DSH
  • 25
  • 7
  • It looks like you can just `Remove-MailboxDatabase -Identity TSMRDB-EXSERVER` and then go and physically delete the folder at M:\2010 Restores\TSMRDB-EXSERVER_20120828111630 – DSH Aug 30 '12 at 19:05
  • are you aware this is a programming website? Your question is obviously more geared to server admin. – Jimmy D Aug 31 '12 at 19:05
  • would you not say that powershell and exchange powershell are not scripting languages similar to python. thanks for marking my question down before thinking. I was asking about how to use the language and i thought who smarter than the people on here. I am new to here, too, so thanks for your help. – DSH Sep 01 '12 at 16:48
  • ESEUTIL is not a "language" and has nothing to do with Powershell. Again, your question has nothing to do with programming. – Jimmy D Sep 04 '12 at 11:49
  • I realize that this might not be the best place to post but I was looking for guidance, not necessarily a critique of my question's validity. Next time, please send a link or directions as to where I should post it. Thanks – DSH Sep 07 '12 at 18:04
  • This kind of question belongs on SuperUser or ServerFault. Google them. – Jimmy D Sep 07 '12 at 18:18

1 Answers1

0

Here is the solution. Use

Remove-MailboxDatabase -Identity TSMRDB-EXSERVER

and then go and physically delete the folder at M:\2010 Restores\TSMRDB-EXSERVER_20120828111630.

Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
DSH
  • 25
  • 7