<div dir="ltr">I have been continuing further studying <a href="https://www.ateam-oracle.com/post/isv-implementation-details-part-4a-linux-clustering-with-pacemaker-and-corosync">https://www.ateam-oracle.com/post/isv-implementation-details-part-4a-linux-clustering-with-pacemaker-and-corosync</a> <div><br></div><div>Right now, I got pacemaker and corosync up and running. However, I am stuck in one part: it seems IPaddr2 couldn't execute external binary:</div><div><br><font face="monospace">##### OCI vNIC variables<br>server="`hostname -s`"<br>nat1_vnic="ocid1.vnic.oc1.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"<br>nat2_vnic="ocid1.vnic.oc1.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"<br>vnicip="10.0.0.10"<br><br>...<br>...<br><br><br>#<br>#        Add an interface<br>#<br>add_interface () {<br><br>        currentDate=`date`<br>        echo $currentDate >> /home/user1/mylog<br>        echo "Added Interface" >> /home/user1/mylog<br><br>        ##### OCI/IPaddr Integration<br>        if [ $server = "z2-server-nat1" ]; then<br><br>                echo $nat1_vnic >> /home/user1/mylog<br>                echo $vnicip >> /home/user1/mylog<br><br>                oocciivv=`/root/bin/oci -v`<br>                echo $oocciivv >> /home/user1/mylog<br><br>                oouutt1=`/root/bin/oci network vnic assign-private-ip --unassign-if-already-assigned --vnic-id $nat1_vnic  --ip-address $vnicip`<br>                               oouutt2=`/bin/systemctl network restart`<br>                <br>                            echo $oouutt1 >> /home/user1/mylog<br>                echo $oouutt2 >> /home/user1/mylog<br><br>                echo "z2-server-nat1" >> /home/user1/mylog<br>        else<br>                /root/bin/oci network vnic assign-private-ip --unassign-if-already-assigned --vnic-id $nat2_vnic  --ip-address $vnicip >> /home/user1/mylog<br>                /bin/systemctl network restart >> /home/user1/mylog<br>                echo "z2-server-nat2" >> /home/user1/mylog<br>        fi<br><br>        echo "----------" >> /home/user1/mylog<br><br>        local cmd msg ipaddr netmask broadcast iface label<br><br>...<br>...</font><br></div><div><br></div><div>After doing some resource moving via:</div><div><br></div><div><font face="monospace">pcs resource move Cluster_VIP z2-server-nat2<br></font></div><div><font face="monospace">pcs resource move Cluster_VIP z2-server-nat1</font><br></div><div><br></div><div>I got some results in my <font face="monospace">/home/user1/mylog</font> file, and it turned out I <font face="monospace">/root/bin/oci</font> and <font face="monospace">/bin/systemctl</font> have no output whatsoever. The log file got the date, the string "Added Interface", the variable nat1_vnic, the variable vnicip, a few blank lines (which supposed to be the output of oci and systemctl) and the string "z2-server-nat1".</div><div><br></div><div>In this case, I see that the script is executed, but it seems it cannot run oci and systemctl for some reasons. </div><div><br></div><div>I have also tried creating a testOCI.sh file housing:</div><div><br></div><div><font face="monospace">echo `/root/bin/oci network vnic assign-private-ip --unassign-if-already-assigned --vnic-id ocid1.vnic.oc1.xxxxxxxxxxxxxxxxxxxxxxxxxx --ip-address 10.0.0.10` >> /home/user1/myLogForSimpleSH<br>echo `/bin/systemctl network restart` >> /home/user1/myLogForSimpleSH</font><br></div><div><br></div><div>Here, if I run it directly from the terminal with ./testOCI.sh, I see that I got the data from oci correctly.</div><div><br></div><div>Am I missing something in this case? What is needed for the IPaddr2 file to run external binaries?</div><div><br></div><div>Thank you,</div><div>Chariot</div></div>