设为首页 收藏本站
查看: 1650|回复: 0

[经验分享] Exchange2010邮箱恢复

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-1-26 08:59:27 | 显示全部楼层 |阅读模式
                      
  • 新空数据库OLD,将oldEDB文件装入新的空数据库

wKioL1TDsb7BWJsaAAEaxjDiwOo295.jpg        
Eseutil命令
DESCRIPTION:  Database utilities for the Extensible Storage Engine for Microsoft
(R) Exchange Server.

MODES OF OPERATION:
      Defragmentation:  ESEUTIL /d <database name> [options]
             Recovery:  ESEUTIL /r <logfile base name> [options]
            Integrity:  ESEUTIL /g <database name> [options]
             Checksum:  ESEUTIL /k <file name> [options]
               Repair:  ESEUTIL /p <database name> [options]
            File Dump:  ESEUTIL /m[mode-modifier] <filename>
            Copy File:  ESEUTIL /y <source file> [options]
              Restore:  ESEUTIL /c[mode-modifier] <path name> [options]

<<<<<  Press a key for more help  >>>>>
D=Defragmentation, R=Recovery, G=inteGrity, K=checKsum,
P=rePair, M=file duMp, Y=copY file, C=restore

CMD执行,,,
做这些之前先把LOG全部剪贴到其他文件夹       
  • 查看数据库状态是否为State: Dirty Shutdown


C:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil /mh "D:\Program Files
\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 1339450694\Mailbox Datab
ase 1339450694.edb"


Rand:1983680 Computer:
         cbDbPage: 32768
           dbtime: 896820854 (0x35746676)
                State: Dirty Shutdown       
     Log Required: 579051-579057 (0x8d5eb-0x8d5f1)

  • 确认后执行修复---时间较长, 两次扫描, 100G花费1个半小时

C:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil /p "D:\Program Files\
Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 1339450694\Mailbox Databa
se 1339450694.edb"

Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 14.02
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating REPAIR mode...
        Database: D:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox
Database 1339450694\Mailbox Database 1339450694.edb
  Temp. Database: TEMPREPAIR5900.EDB

Checking database integrity.

The database is not up-to-date. This operation may find that
this database is corrupt because data from the log files has
yet to be placed in the database.

To ensure the database is up-to-date please use the 'Recovery' operation.


                     Scanning Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          ...................................................


Scanning the database.

                     Scanning Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          ...................................................


Repairing damaged tables.

                     Scanning Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          ................
Deleting unicode fixup table.

Deleting MSObjids.

Deleting MSysLocales.
...................................
########这里要等待#########

Repair completed. Database corruption has been repaired!

Note:
  It is recommended that you immediately perform a full backup
  of this database. If you restore a backup made before the
  repair, the database will be rolled back to the state
  it was in at the time of that backup.

Operation completed successfully with 595 (JET_wrnDatabaseRepaired, Database cor
ruption has been repaired) after 4132.672 seconds.
wKiom1TDsOSzeF5QAAOcJCPwuq8974.jpg        

  • 查看数据库是否为state:clen shutdown

C:\Program Files\Microsoft\Exchange Server\V14\Bin>eseutil /mh "D:\Program Files
\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 1339450694\Mailbox Datab
ase 1339450694.edb"

     DB Signature: Create time:01/14/2012 17:10:18 Rand:60555826 Computer:
         cbDbPage: 32768
           dbtime: 897394921 (0x357d28e9)
                State: Clean Shutdown       
     Log Required: 0-0 (0x0-0x0)
    Log Committed: 0-0 (0x0-0x0)

wKioL1TDsb6RenUcAAHbK-lCKtg482.jpg                
Exchange是丢失老数据库。fix是新建的正在使用的数据库
Get-mailbox -database Exchange | set-mailbox -database fix
                   


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-41417-1-1.html 上篇帖子: 使用 Windows Server 备份还原 Exchange 的备份 下篇帖子: 关于Exchange2010如何实现邮件组仲裁 邮箱
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表