<br><br><div class="gmail_quote">On Mon, Mar 26, 2012 at 8:43 AM, Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Sun, 2012-03-25 at 15:55 +0200, Marco Pizzoli wrote:<br>
> Hi Martin,<br>
><br>
> On Thu, Mar 22, 2012 at 11:50 AM, Martin Kosek <<a href="mailto:mkosek@redhat.com">mkosek@redhat.com</a>><br>
> wrote:<br>
> Hello Marco,<br>
><br>
> judging from the output you sent, it looks like you had an<br>
> installed<br>
> replica on freeipa03, then stopped it with "ipactl" stop and<br>
> after that<br>
> tried to run ipa-replica-install again - krb5.conf<br>
> and /var/log/messages<br>
> you sent would support this theory.<br>
><br>
> IPA replica agreement should be first removed with<br>
> "ipa-replica-manage<br>
> del <replica>" on freeipa01 and then uninstalled with<br>
> "ipa-server-install --uninstall" before you try to install it<br>
> again.<br>
><br>
><br>
> Thanks for your answer.<br>
> I tried what you suggested, but this is what I'm getting now:<br>
><br>
><br>
> [root@freeipa01 ~]# ipa-replica-manage -v list<br>
> <a href="http://freeipa01.unix.mydomain.it" target="_blank">freeipa01.unix.mydomain.it</a>: master<br>
> <a href="http://freeipa03.unix.mydomain.it" target="_blank">freeipa03.unix.mydomain.it</a>: master<br>
> [root@freeipa01 ~]# ipa-replica-manage -v del<br>
> <a href="http://freeipa03.unix.mydomain.it" target="_blank">freeipa03.unix.mydomain.it</a><br>
> Unable to delete replica <a href="http://freeipa03.unix.mydomain.it" target="_blank">freeipa03.unix.mydomain.it</a>: {'desc': "Can't<br>
> contact LDAP server"}<br>
> [root@freeipa01 ~]# ps -ef|grep slap<br>
> dirsrv 1149 1 0 15:30 ? 00:00:01 /usr/sbin/ns-slapd<br>
> -D /etc/dirsrv/slapd-UNIX-MYDOMAIN-IT<br>
> -i /var/run/dirsrv/slapd-UNIX-MYDOMAIN-IT.pid<br>
> -w /var/run/dirsrv/slapd-UNIX-MYDOMAIN-IT.startpid<br>
> pkisrv 1150 1 0 15:30 ? 00:00:00 /usr/sbin/ns-slapd<br>
> -D /etc/dirsrv/slapd-PKI-IPA -i /var/run/dirsrv/slapd-PKI-IPA.pid<br>
> -w /var/run/dirsrv/slapd-PKI-IPA.startpid<br>
><br>
><br>
> After little investigation (should worth a more descriptive output?<br>
> ^_^) I found the LDAP server being asked was the freeipa03 one.<br>
> Yes, it was not running at the moment I executed the command.<br>
><br>
><br>
> I went to freeipa03 and tried to "systemctl start dirsrv.target".<br>
> This is what I have in my /var/log/messages log:<br>
><br>
><br>
> Mar 25 15:48:50 freeipa03 systemd[1]: Failed to load environment<br>
> files: No such file or directory<br>
> Mar 25 15:48:50 freeipa03 systemd[1]: dirsrv@UNIX-MYDOMAIN-IT.service<br>
> failed to run 'start' task: No such file or directory<br>
> Mar 25 15:48:50 freeipa03 systemd[1]: Unit<br>
> dirsrv@UNIX-MYDOMAIN-IT.service entered failed state.<br>
><br>
><br>
> My dirsrv access and error log files are currently not populated.<br>
><br>
><br>
> How can I exit from the tunnel? :-)<br>
><br>
><br>
> Thanks in advance again<br>
> Marco<br>
><br>
<br>
</div></div>Hello Marco,<br>
<br>
if you want to correctly set up a 2-master configuration, you need to at<br>
first properly remove replica agreements between freeipa01 and freeipa03<br>
(which are visible in your "ipa-replica-manage list") and then install<br>
the replica on freeipa03:<br>
<br>
# force is needed as freeipa03 is not running<br>
<div class="im">[root@freeipa01 ~]# ipa-replica-manage -v del <a href="http://freeipa03.unix.mydomain.it" target="_blank">freeipa03.unix.mydomain.it</a><br>
</div>--force<br>
# to get a new fresh replica info file:<br>
[root@freeipa01 ~]# ipa-replica-prepare <a href="http://freeipa03.unix.mydomain.it" target="_blank">freeipa03.unix.mydomain.it</a><br>
<br>
# on freeipa03:<br>
[root@freeipa03 ~]# ipa-replica-install <new-replica-info-file><br>
<br>
Does this help?<br></blockquote><div><br></div><div>Yes, it helped a lot!</div><div>replica deleted.</div><div><br></div><div>Thanks!</div><div>Marco</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888">Martin<br>
<br>
</font></span></blockquote></div><br>