Home

Remove Public Folder Replication in a DAG

%3CLINGO-SUB%20id%3D%22lingo-sub-758708%22%20slang%3D%22en-US%22%3ERemove%20Public%20Folder%20Replication%20in%20a%20DAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-758708%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20we%20have%202%20servers%20(srv1%20and%20srv2)%20in%20da%20DAG.%20Now%20we%20want%20to%20use%20only%20srv1%20without%20DAG.%20To%20do%20this%20i%20have%20also%20to%20uninstall%20exchange%20on%20srv2.%20Before%20uninstalling%20i%20have%20to%20delete%20the%20public%20folder%20database%20on%20srv2.%20Up%20to%20now%20there%20is%20a%20replication%20btw%20both%20servers.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20question%20is%3A%20How%20to%20remove%20the%20replication%20and%20delete%20the%20public%20folder%20on%20srv2%20without%20loosing%20data%20at%20srv1%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20delete%20the%20replication%20manually%20on%20one%20test%20public%20folder.%20But%20if%20i%20delete%20the%20folder%20at%20srv2%2C%20than%20the%20folder%20is%20also%20delete%20on%20srv1.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20how%20can%20i%20manage%20this%20in%20a%20save%20way...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3EHolger%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-758708%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-768106%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20Public%20Folder%20Replication%20in%20a%20DAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-768106%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20must%20not%20remove%20the%20folder%2C%20but%20you%20need%20to%20remove%20the%20replicas%20from%20srv2%2C%20provided%20everything%20is%20replicated%20to%20srv1.%20Check%20which%20PF's%20are%20hosted%20only%20on%20srv2%20(using%20its%20DB%20name)%3A%3CBR%20%2F%3E%3CSTRONG%3EGet-PublicFolder%20-Recurse%20%7C%20Where%20%7B%24_.Replicas%20-eq%20'SRV2%20DB'%7D%20%7C%20Select%20Name%2C%20ParentPath%2C%20Replicas%3C%2FSTRONG%3E%3CBR%20%2F%3ETo%20move%20all%20replicas%20hosted%20on%20srv2%20to%20srv1%2C%20you%20can%20use%20a%20standard%20provided%20script%2C%20located%20in%20%24exscripts%5CScripts%2C%20e.g.%3CBR%20%2F%3E%3CSTRONG%3E.%5CMoveAllReplicas.ps1%20-Server%20srv2%20-NewServer%20srv1%3C%2FSTRONG%3E%3CBR%20%2F%3EWait%20until%20all%20replicas%20have%20been%20succesfull%20moved%20to%20srv1.%20After%20that%2C%20you%20can%20remove%20the%20public%20folder%20DB%20from%20srv2%2C%20after%20you%20have%20done%20some%20checks%2C%20such%20as%20checking%20if%20all%20mailbox%20databases%20are%20pointing%20to%20the%20PF%20database%20on%20srv1%3A%3CBR%20%2F%3E%3CSTRONG%3EGet-MailboxDatabase%20%7C%20select%20Name%2C%20publicFolderDatabase%3C%2FSTRONG%3E%3CBR%20%2F%3EOAB%20generation%20is%20performed%20by%20srv1%3A%3CBR%20%2F%3E%3CSTRONG%3EGet-OfflineAddressBook%20-Identity%20'Default%20Offline%20Address%20Book'%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
holgerkopf
Occasional Visitor

Hi, we have 2 servers (srv1 and srv2) in da DAG. Now we want to use only srv1 without DAG. To do this i have also to uninstall exchange on srv2. Before uninstalling i have to delete the public folder database on srv2. Up to now there is a replication btw both servers. 

 

So my question is: How to remove the replication and delete the public folder on srv2 without loosing data at srv1 ?

 

I tried to delete the replication manually on one test public folder. But if i delete the folder at srv2, than the folder is also delete on srv1.

 

So how can i manage this in a save way...

 

Best Regards

Holger

1 Reply

You must not remove the folder, but you need to remove the replicas from srv2, provided everything is replicated to srv1. Check which PF's are hosted only on srv2 (using its DB name):
Get-PublicFolder -Recurse | Where {$_.Replicas -eq 'SRV2 DB'} | Select Name, ParentPath, Replicas
To move all replicas hosted on srv2 to srv1, you can use a standard provided script, located in $exscripts\Scripts, e.g.
.\MoveAllReplicas.ps1 -Server srv2 -NewServer srv1
Wait until all replicas have been succesfull moved to srv1. After that, you can remove the public folder DB from srv2, after you have done some checks, such as checking if all mailbox databases are pointing to the PF database on srv1:
Get-MailboxDatabase | select Name, publicFolderDatabase
OAB generation is performed by srv1:
Get-OfflineAddressBook -Identity 'Default Offline Address Book'

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies