locked
Move public folder database to New mailbox server 2010 RRS feed

  • Question

  • We are changing our Exchange 2010 enviornment from phyical to VM. We created 2 new MB server and have added and seeded them in the DAG.

    ...now I need move the Public Folder Database:

    Just wanted to verify my plan

    Public Folder move:

    Create New Public Folder Databases on new VM server

    DB Name: Public Folder 2010

    From the directory below
    C:\Program Files\Microsoft\Exchange Server\V14\Scripts\MoveAllReplicas.ps1 -Server PhyicalServerName -NewServer VMServerName

    Wait for all replicas to move (this may take time not too long our PF Databases are small)

    Move the OAB to Server. 

    Dismount Database on old server. 

    Are there any other task that I would need to include?


    • Edited by Eiram Rulz Tuesday, October 20, 2015 7:58 PM
    Tuesday, October 20, 2015 7:57 PM

Answers

  • Actually figured that part out,  it was the system attendant service was not running.  I was thinking about Exchange 2013, 2012 still has that service and it was not started on the server.   
    • Marked as answer by Eiram Rulz Thursday, October 22, 2015 3:41 PM
    Thursday, October 22, 2015 3:41 PM

All replies

  • Hi,

    If you run MoveAllReplicas.ps1 to replace the physical servers with the virtual servers in one go, you may end up in a position where the data has not yet replicated from the physical servers to the virtual servers. In this case, go through the below steps:

    You should add the new VMs as replicas to the public folders using the below commands:

    .\AddReplicaToPFRecursive.ps1 -TopPublicFolder "\" -ServerToAdd Exchange2010VM1
    .\AddReplicaToPFRecursive.ps1 -TopPublicFolder "\" -ServerToAdd Exchange2010VM2

    You should now have four replicas of each public folder. Confirm that all the public folder data has replicated using this script: https://gallery.technet.microsoft.com/Exchange-2007-2010-2013-3a480e49. This initial replication may take hours or days depending on how much public folder data you have.

    Once done, run the below commands to remove the replicas from the physical servers:

    .\RemoveReplicaFromPFRecursive.ps1 -TopPublicFolder "\" -ServerToRemove Exchange2010Server1
    .\RemoveReplicaFromPFRecursive.ps1 -TopPublicFolder "\" -ServerToRemove Exchange2010Server1
    

    This is in effect doing the same as the MoveAllReplicas.ps1 script but always ensures that you have public folder redundancy, a simple rollback plan and minimizes risk throughout the migration process.

    More information on these scripts can be found here: https://technet.microsoft.com/en-us/library/aa997966(v=exchg.141).aspx.

    Let me know if this resolves your issue.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    • Proposed as answer by David Wang_ Wednesday, October 21, 2015 2:52 AM
    Wednesday, October 21, 2015 12:09 AM
  • Hi,

    To move all public folders in a public folder database on one server to a public folder database on another server, use the MoveAllReplicas.ps1 script. This script replaces a server with a new server in the replication list for all public folders, including system folders. To move all the replicas of a public folder subtree from one server to another server, use the ReplaceReplicaOnPFRecursive.ps1 script. This script adds a new server to the replication list for a public folder and all the folders within that hierarchy.

    Please have a look at the below blog:

    http://sharadtech.blogspot.com/2011/11/hot-to-move-public-folder-from-one.html

    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information. And the changes made in the above blog is not supported officially by Microsoft.

    Regards,
    David 


    • Edited by David Wang_ Wednesday, October 21, 2015 3:11 AM
    Wednesday, October 21, 2015 3:06 AM
  • Thanks so I was able to move the replicas using the:

    MoveAllReplicas.ps1 -Server PhyicalServerName -NewServer VMServerName

    However now ran into the following when trying to move the OAB:

    Summary: 1 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:00

    Default Offline Address List
    Failed

    Error:
    Failed to create the 'ExchangeOAB' folder on the target server 'PhyicalServerName1'. Two possible reasons for the failure are that the System Attendant Service is not running or you do not have permission to perform this operation. Error message : 'Error 0x6d9 (There are no more endpoints available from the endpoint mapper) from RpcEpResolveBinding'.

    Error 0x6d9 (There are no more endpoints available from the endpoint mapper) from RpcEpResolveBinding
    Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.3.224.2&t=exchgf1&e=ms.exch.err.Ex856764

    Exchange Management Shell command attempted:
    move-OfflineAddressBook -Identity '\Default Offline Address List' -Server 'PhyicalServername1'

    Elapsed Time: 00:00:00

    This is Exchange 2010

    Wednesday, October 21, 2015 6:32 PM
  • Hi,

    The server parameter on the Move-OfflineAddressBook cmdlet should be the destination server, one of the virtual exchange servers.

    Thanks.


    Please mark as an answer if this answers your question

    Mark Gossa

    MCSE 2003, MCITP Enterprise Administrator 2008 R2, MCSA 2012 R2, MCTS Exchange 2010

    Blog: http://markgossa.blogspot.com

    Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

    Wednesday, October 21, 2015 7:01 PM
  • This is the command I am using

    Exchange Management Shell command attempted:
    move-OfflineAddressBook -Identity '\Offline Address Book 2010' -Server 'NewVMServer'

    Ran it from the powershell got a little more if or an error:

    Confirm
    Are you sure you want to perform this action?
    Moving offline address book "Offline Address Book 2010" to server "NewVMServer".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y
    Failed to create the 'ExchangeOAB' folder on the target server 'NewVMServer'. Two possible reasons for the failure are
    that the System Attendant Service is not running or you do not have permission to perform this operation. Error message
     : 'Error 0x6d9 (There are no more endpoints available from the endpoint mapper) from RpcEpResolveBinding'.
        + CategoryInfo          : InvalidResult: (Offline Address Book 2010:OfflineAddressBookIdParameter) [Move-OfflineAd
       dressBook], LocalizedException
        + FullyQualifiedErrorId : 6699CF4B,Microsoft.Exchange.Management.SystemConfigurationTasks.MoveOfflineAddressBook

    What permission and where? 

    • Edited by Eiram Rulz Thursday, October 22, 2015 3:07 PM
    Thursday, October 22, 2015 2:49 PM
  • Actually figured that part out,  it was the system attendant service was not running.  I was thinking about Exchange 2013, 2012 still has that service and it was not started on the server.   
    • Marked as answer by Eiram Rulz Thursday, October 22, 2015 3:41 PM
    Thursday, October 22, 2015 3:41 PM