Ask the Community
Groups
Target DPU Has a New IP Address / Moving the Target to New Network - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>How to reestablish hot copy replication if moving the source or target DPU to a new network.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p>There is a source and a target that was working, but now the target has moved to a new location and has been assigned a new ip. Now, replication needs to be reactivated. </p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <ol><li>Confirm that port 1194 was open on both firewalls for source and target.</li> <li>Open two SSH sessions, one to the source and then to the target . Verify that tun0 is present: <b>ifconfig</b> <ol><li>If not, use <b>service openvpn restart</b> to restart Openvpn service. Verify with <b>ifconfig</b> again that tun0 has returned.</li></ol></li> <li>From source to target, ping the new ip address to verify that there is connectivity, then confirm the same from target to source. Resolve pinging as necessary.</li> <li>vi the hosts table: <b>vi /etc/hosts</b> </li> <li>Comment out the old nonVPN from the hosts file, then create a new nonVPN entry for the new ip address on both the source and target. <ol><li>Example: </li> <li>50.150.200.100 UnitrendsDPU-nonVPN</li> <li>#192.168.0.75 UnitrendsDPU-nonVPN</li> </ol></li> <li> <b>psql -U postgres bpdb -c "select * from bp.systems"</b> : On the target, check the systems table on the target and verify that is_active is set to t for the source DPU <ol><li>If not, use the command <b>psql -U postgres bpdb -c "update bp.systems set is_active='t' where system_id='X'"</b> where X is the specific system id for the DPU you need from the table.</li> <li>Now verify that the db on the target can talk to the source: <b>psql bpdb -h SourceName</b> </li> </ol></li> <li>If still not communicating, ssh to the source and run the command: <b>cmc_grant grant TargetName</b> to grant management rights on the source database. <ol><li>Now verify that the db on the target can talk to the source: <b>psql bpdb -h SourceName </b> </li> <li>Update the bp.systems table on the Target again: <b>psql -U postgres bpdb -c "update bp.systems set is_active='t' where system_id='X'" </b> </li> </ol></li> <li>Now restart the openvpn services on source and target: service openvpn restart</li> <li>Now verify that jobs are starting to move again.</li> </ol> </article> </main>