Exchange Server 2010 Database Crash restore process

Source: Internet
Author: User
Tags all mail

Client Company Exchange Server 2010 Mailbox Database Data Corruption, fortunately, previously used DPM for database backup, temporarily create an empty library to meet the needs of people sent to the mail. After two days, the database in the original DPM is successfully restored, then the new database needs to be merged with the restored database in the following steps:

1.DPM Restore the database to a folder, this operation is simple, as shown in the following:

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/48/ Wkiom1vdlnbhce2vaajccrpmiwi337.jpg "width=" 659 "height=" 493 ">

Follow the prompts to restore the database to the specified folder, and then copy it to the exchange's MBX server, for example, under E:\OLDDB.

2. Create a new database on the EMS, the name can be customized, and then unload the database, and then the database properties-maintenance-"can overwrite this database (T)" Check on.

3. Use the ESEUTIL/MH command to verify the status of the database files that DPM restored, as follows:

C:\Program file\exchsrvr\bin>eseutil/mh "E:\olddb\userdb-01.edb

You must ensure that the status is Cleanshutdown. If not, you need to fix this database file as follows:

C:\Program file\exchsrvr\bin>eseutil/p "E:\olddb\userdb-01.edb"

At this point, may be ejected, forcing the database to close the prompt, click, yes.

Then, review the status of the database file again. It's supposed to be cleanshutdown.

4. Change the database file name restored by DPM to the name of the newly created database file, and then mount. If it is unsuccessful, then the repair must be guaranteed to be a cleanshutdown state.

Export all user mailboxes to PST file:

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/48/ Wkiom1vdlnbdaqf4aas0qw4kvva494.jpg "width=" 972 "height=" 509 ">

The specific commands are as follows:

$i =foreach-object{get-mailbox-database Uec-users01}
$Path =new-item-path "\\ex-bj-cashub-02\D$\testpst\"-name $i. Alias-itemtype Directory-force
$i | Foreach-object {new-mailboxexportrequest-mailbox $_-filepath "$Path \$ ($_. Alias). pst "}

If you are exporting a single user it is simple: New-mailboxexportrequest-mailbox-filepath 650) this.width=650; "title=" image "style=" border-left-0px ; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/48/ Wkiom1vdlnahlfbcaaerghas08e587.jpg "width=" 870 "height=" 244 ">

View Export Request: Get-mailboxexportrequest

As shown in the following:

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/48/ Wkiom1vdlnajsjmgaairkcqst4a851.jpg "width=" 874 "height=" 241 ">

PST file into the user's mailbox:

This example imports all the. pst files on the shared folder. Name each. pst file name after the corresponding user's alias. command to create an import request for all. pst files and import the data into a matching mailbox.

[PS] C:\>dir \\ex-bj-cashub-02\d$\testpst\*.pst | %{New-mailboximportrequest-mailbox $_. Basename-filepath $_. FullName}

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/48/ Wkiom1vdlnbx1vvjaacd32gglmw813.jpg "width=" 977 "height=" 143 ">

View import Status: [PS] C:\>get-mailboximportrequest

Delete Import Request: Get-mailboximportrequest-status completed | Remove-mailboximportrequest

Delete Export request: Get-mailboxexportrequest-status completed | Remove-mailboxexportrequest

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/48/ Wkiom1vdlnbb6xcuaalp4uaffbg502.jpg "width=" 902 "height=" 407 ">

Attention:

1. Backing up existing mailboxes

2. After all mail recovery is successful, only in the Inbox, the next time recovery, no longer recover, avoid duplication. And it's merging, not covering.

The use of PST file export, import is possible, but inefficient, you can directly create a recovery database, and then directly merged, as described below:

1. Create a Recovery database:

New-mailboxdatabase-recovery-name "RDBUSERDB01"-server mail-edbfilepath "D:\DBOLD\userdb-01.edb" –logfolderpath "D : \dbold\usedb01log "

2. You must ensure that the status is Cleanshutdown. If not, the database file needs to be repaired, and/p directly skips the log file as follows:

C:\Program file\exchsrvr\bin>eseutil/p "D:\olddb\userdb-01.edb"

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/48/ Wkiom1vdlnfqf7jaaajnd1bufhs195.jpg "" 610 "height=" 484 ">

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6C/48/ Wkiom1vdlnertb8faafyhpxa8h0104.jpg "" 544 "height=" 437 ">

If the error, you can try more than two times, this 250GB file, about 1.5 hours or so.

You can also use/R for soft repair to submit log files to a data file

ESEUTIL/R e02/l d:\olddb\userdb-01log/d d:\olddb\userdb-01. This command is to commit the log in Viplong to the database file in vipdb.

Open the Recover Database log folder and you can see that the log files begin with E02, and if they do not start with E02, you need to make the appropriate changes.

3. Use Mount-database RDBVIP to mount the recovery database, or you can mount the RDBVIP in the EMC console.

4. After mounting the recovery database, run restore-mailbox–identity user1–recoverydatabase rdpuserdb01 in the Exchange server's EMS. The purpose of this command is to merge the User1 mailbox content in the recovery database with the current User1 mailbox.

If you are merging messages from all users, use the command:

Get-mailbox-database userdb-01 | Restore-mailbox-recoverydatabase rdbuserdb-01
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px;  padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6C/48/ Wkiom1vdlneiysreaaeat2gohlw186.jpg "" 581 "height=" 167 ">
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px;  padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6C/44/ Wkiol1vdl-krexqvaairentmnta924.jpg "" 561 "height=" 416 ">
Finally, uninstall and delete the recovery database:
Dismount-database–identity RDB or Manual uninstallation
Remove-mailboxdatabase–identity RDB or manual operation

Exchange Server 2010 Database Crash restore process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.