Thursday, February 17, 2011

How to export a PST file in Exchange 2010 and Tivoli Data Protection Client..this will make you forget the Exmerge tool :)

Do not tell me you miss the exmerge all miss him.... So I'm glad to show and share this solution:

Pre-requisites: (all must be installed in your Mailbox server)
  1. TDP for  Microsoft Exchange client version 6.1.3
  2. TSM BA Client  version 6.2.2
  3. Update Rollup 2 for Exchange Server 2010 Service Pack 1

    http://support.microsoft.com/kb/2425179
  4. Microsoft Exchange Server MAPI Client and Collaboration Data Objects 1.2.1  http://www.microsoft.com/downloads/en/details.aspx?FamilyID=94274318-27c4-4d8d-9bc5-3e6484286b1f&DisplayLang=en
    5.  A Recovery Database doesn't exists
Check the Tivoli for Mail documentation : http://publib.boulder.ibm.com/infocenter/tsminfo/v6/topic/com.ibm.itsm.mail.exc.doc/b_dp_mail_exc_guide_win.pdf

Configure in your TDP client the DBTemp and LOGTemp directory and the CAS server (only available in the 6.1.3 version)




When you run the below command  a new Recovery Database will be created in the local mailbox server, you must provides the user name's alias to recover and the date. If you want to recover a mailbox user from another server that local you must add the /EXCSERVER switch in the command. Then the application will search the user in the catalog and the backup more closely to the date you 've indicated before. After that the application will creates the Recovery Database in your server dismounted and start the restore.
Very important take in care the permissions, be sure that the account is member of Organization Management Role and add the send as and full access permission

Add-MailboxPermission -Identity 'CN=User1,CN=Users,DC=test,DC=ca' -User 'TEST\restoreadmin' -AccessRights 'FullAccess'
Add-ADPermission -Identity 'CN=User1,CN=Users,DC=test,DC=ca' -User 'TEST\restoreadmin' -ExtendedRights 'Send-as'

From "your_installation_path\Tivoli\TSM\TDPExchange\" open the Exchange Client - Command Line and type:

TDPEXCC RESTOREMAILBOX user1 /TSMPASSWORD=Password /MAILBOXORIGLOCATION=MBX1T1,MST1DB1 /MAILBOXRESTOREDAte=02/16/2011 /MAILBOXRESTOREDESTination=PST,e:\pst\user1.pst

and this is the output

IBM Tivoli Storage Manager for Mail:
Data Protection for Microsoft Exchange Server
Version 6, Release 1, Level 3.01
(C) Copyright IBM Corporation 1998, 2010. All rights reserved.

Starting Microsoft Exchange restore...
Querying Exchange component information...
Querying mailbox information...
Connecting to TSM Server as node 'MBX1T1_EXC'...
Connecting to Local DSM Agent 'MBX1T1'...
Preparing Exchange Recovery Database...
Performing mailbox restore using closest available backup.
Connecting to TSM Server as node 'MBX1T1_EXC'...
Connecting to Local DSM Agent 'MBX1T1'...
Starting Microsoft Exchange restore...


Beginning VSS restore of 'Logs', 'MST1DB1'...

Preparing for restore of 'MST1DB1' from TSM backup.
   Files Examined/Completed/Failed: [ 3504 / 3504 / 0 ]   Total Bytes: 3966952400
VSS Restore operation completed with rc = 0
   Files Examined   : 3504
   Files Completed  : 3504
   Files Failed     : 0
   Total Bytes      : 3966952400

Querying Exchange Recovery Database...
Checking Active Directory entries...
Recovering deleted items for mailbox 'User1(user1)'. This process may take several minutes...

Restoring mailbox 'User1(user1)' to 'e:\pst\user1.pst'...

  Mailbox restore completed successfully with 59 items restored.
Removing Exchange Recovery Database...

Total mailboxes requested for restore:     1
Total mailboxes restored:                  1


And that's it...but we have several troubles and a lot of drops of transpiration poured...

1. This is because the CAS server wasn't set in the configuration.
02/17/2011 08:00:48 ANS0322E (RC5853) no text available for this return code.
02/17/2011 08:00:48 ANS0322E (RC5853) no text available for this return code.
02/17/2011 08:00:50 The operation couldn't be performed because object 'MBX1T1' couldn't be found on 'DCT1.test.ca'.
02/17/2011 08:00:50 =========================================================================
02/17/2011 08:00:50 Request                                 : Restore Mailbox Results       
02/17/2011 08:00:50 -------------------------------------------------------------------------
02/17/2011 08:00:50 Total mailboxes requested for restore   : 1                          
02/17/2011 08:00:50 Total mailboxes restored                : 0                          
02/17/2011 08:00:50 -------------------------------------------------------------------------
02/17/2011 08:00:50 ANS0322E (RC5853) no text available for this return code.
02/17/2011 08:29:50 =========================================================================


2. This is because the TDP client version should be 6.1.3

2/17/2011 05:41:16 ============================================================
02/17/2011 05:41:16 Request                           : VSS RESTORE
02/17/2011 05:41:16 Component List                    : 'Logs'(full, TSM), 'MST1DB1'(full, TSM)
02/17/2011 05:41:16 Local DSMAGENT Node               : MBX1T1
02/17/2011 05:41:16 Mount Wait                        : Yes
02/17/2011 05:41:16 ------------------------------------------------------------
02/17/2011 05:41:51 Backup(s) to be restored:
02/17/2011 05:41:51 <Logs : VSS : full : 02/16/2011 11:34:46>
02/17/2011 05:41:51 <File : VSS : full : 02/16/2011 11:34:46>
02/17/2011 05:42:02 Preparing for restore of 'MST1DB1' from TSM backup.
02/17/2011 05:59:29 VSS Restore operation completed with rc = 0
02/17/2011 05:59:29    Files Examined   : 3504
02/17/2011 05:59:29    Files Completed  : 3504
02/17/2011 05:59:29    Files Failed     : 0
02/17/2011 05:59:29    Total Bytes      : 3966952400
02/17/2011 06:00:08 ACN5909E The MAPI subsystem logon has failed. Please check that you have
02/17/2011 06:00:08 an active mailbox and sufficient privileges for this operation.

02/17/2011 06:00:11 =========================================================================
02/17/2011 06:00:11 Request                                 : Restore Mailbox Results       
02/17/2011 06:00:11 -------------------------------------------------------------------------
02/17/2011 06:00:11 Total mailboxes requested for restore   : 1                          
02/17/2011 06:00:11 Total mailboxes restored                : 0                          
02/17/2011 06:00:11 -------------------------------------------------------------------------

 Be happy delegating this task to the Backup Team :)

Thank you JuanMa!!
-Dario