11-06-2014 11:33 AM - edited 03-17-2019 12:50 AM
Hello All, I will be doing an upgrade to version 10.5 from 8.5 of CUCM. I've done this before and as documented started with the publisher and then subscriber. When I have done this I always wait and check Database replication via RTMT and the CLI.
I'm always nervous as this process seems to take a long time. Is this just a waiting game or is there a command that I can force replication to my subscribers? How long should this process really take? I never know....
Thanks,
Dan
Solved! Go to Solution.
12-10-2014 03:30 PM
admin:utils dbreplication reset all
This command will try to start Replication reset and will return in 1-2 minutes.
Background repair of replication will continue after that for 1 hour.
Please watch RTMT replication state. It should go from 0 to 2. When all subs
have an RTMT Replicate State of 2, replication is complete.
If Sub replication state becomes 4 or 1, there is an error in replication setup.
Monitor the RTMT counters on all subs to determine when replication is complete.
Error details if found will be listed below
OK [<YOUR SUBSCRIBER IP>]
Reset command completed successfully on:
--> <YOUR SUBSCRIBER NAME>
Reset completed: 1 Failed: 0
Duration: 1.66 minute
Use CLI to see detail: 'file view activelog cm/trace/dbl/sdi/dbl_repl_output_util.log'
admin:
11-06-2014 01:04 PM
Hello Dan,
Could you please tell me how many servers you have in your cluster? Right now all of them are in "2" status? Unfortunatelly you have to wait after upgrade and be sure everything will go ok. It will take minimum 2 hours, of course depends on your cluster. Maybe more and more hours. But if replication process stops or stucks you can try these command;
Then you will have to keep monitoring.
Hope this helps you.
Ekin.
11-16-2014 01:30 PM
Thanks Ekin, that is some great commands. You mentioned not to proceed after the next steps...how will I know will the Command line tell me that the "dbreplication" has stopped?
Thanks,
Dan
11-17-2014 12:00 AM
Hello Dan Hale,
After you proceed the command "utils dbreplication stop" on one server you will see message on your screen but I am sorry I don't remember what was the exact message. And also you can use "utils dbreplication status" to check
12-10-2014 02:55 PM
admin:utils dbreplication stop
********************************************************************************************
This command will delete the marker file(s) so that automatic replication setup is stopped
It will also stop any replication setup currently executing
********************************************************************************************
Deleted the marker file, auto replication setup is stopped
Service Manager is running
Commanded Out of Service
A Cisco DB Replicator[NOTRUNNING]
Service Manager is running
A Cisco DB Replicator[STARTED]
Killed dblrpc process - 16609
Completed replication process cleanup
Please run the command 'utils dbreplication runtimestate' and make sure all nodes are
RPC reachable before a replication reset is executed
...
...
this one. Issued just the same, so i thought i append the output here
12-10-2014 03:16 PM
admin:utils dbreplication dropadmindb
*****************************************************************************************
WARNING !!!
This command will drop syscdr database on the node.
*****************************************************************************************
Do you want to continue? (y/n):y
This command may take a significant amount of time. Please be patient.
No argument provided. Dropping syscdr on local server [<YOUR SERVER IP>]
DropAdminDB is being executed on [<YOUR SERVER IP>]
DropAdminDB successfully dropped both syscdr and deltab tables on the node [<YOUR SERVER IP>]
DropAdminDB completed sucessfully.
12-10-2014 03:30 PM
admin:utils dbreplication reset all
This command will try to start Replication reset and will return in 1-2 minutes.
Background repair of replication will continue after that for 1 hour.
Please watch RTMT replication state. It should go from 0 to 2. When all subs
have an RTMT Replicate State of 2, replication is complete.
If Sub replication state becomes 4 or 1, there is an error in replication setup.
Monitor the RTMT counters on all subs to determine when replication is complete.
Error details if found will be listed below
OK [<YOUR SUBSCRIBER IP>]
Reset command completed successfully on:
--> <YOUR SUBSCRIBER NAME>
Reset completed: 1 Failed: 0
Duration: 1.66 minute
Use CLI to see detail: 'file view activelog cm/trace/dbl/sdi/dbl_repl_output_util.log'
admin:
11-17-2014 12:20 AM
Dan,
Use "utils dbreplication runtimestate" to check the replication status of your servers in the cluster. The servers should show connected to the publisher and a status of 2
Or you can use unified reporting to generate report on db replication as follows.
Check Database Replication:
Access Publisher CUCM GUI
Navigate to Cisco Unified Reporting
Select System Reports
Select Unified CM Database Status
Generate New Report
In the Unified CM Database Status section of the report, expand the View Details under the All servers have a good replication status and confirm a Replicate State for all servers of “2” as follows:
If your replication is broken (I had this issue after an upgrade last month) just rebuild the database replication from the publisher with a single command..
utils dbreplication rebuild (This command does multiple things. It saves you the need to enter individual commands, like dbdrop, dbrepair etc)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide