Hi Feng,
Please follow the file "00-README.conf" in the Opensaf source code and configure. Let me know if you find any difficulties. You can just try by following the below steps: 1- Modify the file /etc/opensaf/nid.conf export OPENSAF_MANAGE_TIPC="yes" TIPC_ETH_IF=<network interface> TIPC_NET_ID=<tipc net_id value> (ex- 1234) # The below variables have to be changed to "root" # if user has built OpenSAF to run as root export OPENSAF_GROUP=root export OPENSAF_USER=root 2- edit file "/etc/opensaf/node_name" with node name. 3- edit file "/etc/opensaf/node_type" as controller or Payload. How many controllers and payloads in your cluster? 4- cd /usr/share/opensaf/immxml/ Generate a config file (nodes.cfg) for a 5 node cluster: $ ./immxml-clustersize -s 2 -p 3 (for 2 controller and 3 Payloads) Edit nodes.cfg The third column in nodes.cfg should be edited to match the short form of the hostname (as shown by 'hostname -s') for each host. $ ./immxml-configure Copy the generated imm.xml file to the standard OpenSAF configuration directory. For eg: $ cp imm.xml.20100217_2201 /etc/opensaf/imm.xml Then start opensafd. ~ Dheeraj -----Original Message----- From: Feng Xie [mailto:feng_x...@jabil.com] Sent: 06 March 2018 02:50 To: opensaf-users@lists.sourceforge.net; opensaf-de...@lists.sourceforge.net Subject: [users] Errors in running OpenSaf 5.3 in a Ubuntu VM Hi, I am new in using OpenSAF. I encountered an error in running the latest OpenSaf software in a Ubuntu Linux VM. I would appreciate if somebody can provide some hint on this issue in specific and some references in running OpenSAF in general. Thanks a lot in advance! 1. Procedures and errors encountered * Download the latest OpenSAF package opensaf-5.18.02.tar.gz in a Ubuntu Linux VM (Linux version 4.4.0-116-generic (buildd@lgw01-amd64-021) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)); * Use "./configure -enable-tipc", "make" and "make install" to install the OpenSAF; * Use "/etc/init.d/opensafd start" * Errors (output from "journalctl -xe") Mar 05 12:46:33 feng-opensaf-2 opensafd[57351]: Starting OpenSAF Services(5.18.02 - 2ed303919c3f0f36859028f47caf1498e882f45a) (Using TCP) Mar 05 12:46:33 feng-opensaf-2 opensafd[57330]: Starting OpenSAF Services (Using TCP):/usr/local/lib/opensaf/opensafd: error while loading shared libraries: libopensaf_core.so.0: cannot open shared object file: No such file or directory Mar 05 12:46:33 feng-opensaf-2 opensafd[57330]: * Mar 05 12:46:33 feng-opensaf-2 opensafd[57675]: Starting OpenSAF failed Mar 05 12:46:33 feng-opensaf-2 systemd[1]: opensafd.service: Control process exited, code=exited status=127 Mar 05 12:46:33 feng-opensaf-2 systemd[1]: Failed to start OpenSAF daemon. -- Subject: Unit opensafd.service has failed 1. I checked /usr/local/lib and I found libopensaf_core.so.0 by "ls -l /usr/local/lib" -rwxr-xr-x 1 root root 974 Mar 2 16:29 libopensaf_core.la lrwxrwxrwx 1 root root 24 Mar 2 16:29 libopensaf_core.so -> libopensaf_core.so.0.2.0 lrwxrwxrwx 1 root root 24 Mar 2 16:29 libopensaf_core.so.0 -> libopensaf_core.so.0.2.0 -rwxr-xr-x 1 root root 2816096 Mar 2 16:29 libopensaf_core.so.0.2.0 ............ 1. Then I modified my $LD_LIBRARY_PATH to include "/usr/local/lib" by adding it to the .bashrc file and did "source ./bashrc" root@opensaf-2:/home/xyz# echo $LD_LIBRARY_PATH /usr/local/lib 1. Rerun opensaf by using "/etc/init.d/opensafd start", the same error was seen. Feng ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-users mailing list Opensaf-users@lists.sourceforge.net<mailto:Opensaf-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/opensaf-users ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html <http://www.techmahindra.com/Disclaimer.html> externally http://tim.techmahindra.com/tim/disclaimer.html <http://tim.techmahindra.com/tim/disclaimer.html> internally within TechMahindra. ============================================================================================================================ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-users mailing list Opensaf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-users