So I messed up one of my replica servers. I’m trying to rebuilt it, but I’m hitting a wall trying to get ipa-replica-install to run. It says there’s an existing replica agreement. But how do I get it to re-initialize? I’ve done the uninstall commands and re-added the replica server but still hit the same issue.
When it says there’s already an agreement, that means you need to manually remove the remaining remnants.
On all other replicas you have:
ldapsearch -D 'cn=Directory Manager' -W -LLL -o ldif-wrap=no -b "cn=config"
"objectclass=nsds5replicationagreement" nsDS5ReplicaRoot nsDS5ReplicaHost
ldapsearch -D 'cn=Directory Manager' -W -LLL -o ldif-wrap=no -b "cn=config"
"objectclass=nsds5replica" nsDS5ReplicaRoot nsDS5ReplicaId nsds50ruv
This should tell you if there are pieces left behind.
I got it sorted. Thankfully I had a pre-replica version of my original that I used and it worked fine.