Exchange 2007 Public store unmounts daily after restore from backup

I'm hoping this is a simple solution, here is my problem.

Last week I had to restore the public store database due to a user and a delete key.  I restored both the log folder and the .edb file from the previous day and it mounted fine.

Now every morning the public folder is dismounted and when I try to mount it claims there are missing log files and does not allow it.

I have tried running eseutil /p and even though it reports that it repairs the database it still does not mount.  

Currently I just keep restoring back to the Friday backup (the day after the restore)

I figure I missed a huge step in the restore process.

Thanks
GreenmanITSupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmitIT ArchitectCommented:
Do you have all logs files intact. After restore, did you saw restore.env file. You can run eseutil /cm to check the restore.env and check if any logs are missing. Else you can restore the logs in the current log file location and replay it with eseutil /cc

Normally, I tried to ignore PF restore in Prod. If anything missing, restore in test and then convert to pst and merge it in prod.
0
GreenmanITSupportAuthor Commented:
I did not see restore.env, I manually pulled the log files and the .edb file out of the backup and then moved them into position. (was this wrong?)

The experience is that the .edb file remains unchanged in size but the log files are incomplete in the morning, would it be prudent to just run the eseutil /cc now even though the store has been mounted?
0
AmitIT ArchitectCommented:
That is the problem that you manually pulled. Process is, first dismount the DB, allow it to overwrite and then start the restore. In restore, select Last Restore Set and mount the DB. Backup tool will automatically do it everything.

If any data is deleted, first use PFDAVAdmin, this has option to recover deleted items. It will avoid you to restore complete PF data.
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=635BE792-D8AD-49E3-ADA4-E2422C0AB424&displaylang=en
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

GreenmanITSupportAuthor Commented:
Is there any way to force the database that I've incorrectly restored to rebuild it's log files?
0
AmitIT ArchitectCommented:
You can restore again from old backup. But follow the steps

1) Dismoun the DB
2) Allow overwrite
3) Restore from backup
4) Mount the DB
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GreenmanITSupportAuthor Commented:
I'm using the backup build into server 2007, I have the option of selecting either the .edb file or the log file directory so each is run as a separate restore function.  Also I fail to understand how that is any different from what I have already done which is restore the backup to a different directory and manually move the files over.
0
AmitIT ArchitectCommented:
Can you tell, what steps you are following.
0
GreenmanITSupportAuthor Commented:
Public store is unmounted as it is every morning, set "can be restored from backup"

1) Open windows server backup
2) restore log files to temporary folder
3) restore .edb file to temporary folder
4) delete log files & .edb file currently in production (corrupted)
5) move restored log file and .edb file into proper locations
6) mount database

7) think everything is fine
8) wait 20 to 24 hours
9) get woken up really early in the morning by frantic phone call because public folders are not accessible
10) repeat
0
AmitIT ArchitectCommented:
What events are logged Application logs, after DB got dismounted. Can you check it and post them here.
0
GreenmanITSupportAuthor Commented:
This seems to be it, it's hard to pinpoint the exact time that it dismounts, though it seems to happen in the window of database maintenance (between 1 and 4am)

 Screen cap of error log
0
AmitIT ArchitectCommented:
Can you run this command and post the result

nltest /dsgetdc: /gc
0
GreenmanITSupportAuthor Commented:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\administrator.ETC>nltest /dsgetdc: /gc
           DC: \\Fileserver.***********.local
      Address: \\10.1.1.8
     Dom Guid: 436a355c-3065-47ae-a304-6df401ad5fbe
     Dom Name: ***********.local
  Forest Name: ***********.local
 Dc Site Name: Default-First-Site-Name
Our Site Name: Default-First-Site-Name
        Flags: GC DS LDAP KDC TIMESERV WRITABLE DNS_DC DNS_DOMAIN DNS_FOREST CLOSE_SITE FULL_SECRET 0x2000
The command completed successfully

C:\Users\administrator.ETC>
0
GreenmanITSupportAuthor Commented:
You really think having the dns set to first the 2ndary DC and then the primary would cause this problem?
0
AmitIT ArchitectCommented:
From the event and the way it is getting dismount automatically, points to DNS issue. We need to narrow it down one by one.
0
GreenmanITSupportAuthor Commented:
Sounds good to me, I changed the DNS settings to point first to the primary DC and then to the 2ndary.
0
AmitIT ArchitectCommented:
Next time if dismount happen, save the app logs. We need to analyse it and run the Exbpa tool and gather the information.
0
AmitIT ArchitectCommented:
Forget to add. If you see any issue after DNS change, run ISINTEG –FIX for PF db and then monitor it.
0
GreenmanITSupportAuthor Commented:
I was just restoring an already broken copy, I went back a month in restores and it worked fine, thanks for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.