Title: fcluster setup notes Subject: fcluster is an High Availablity service manager for Linux ################### # Server Setup # ################### # # Create User, group # groupadd fcluster -g 300 useradd fcluster -u 300 -g 300 -d /usr/local/fcluster # # Make a link to the iptables command, so that fcluster can find it. # ln -s /usr/sbin/iptables /sbin/iptables # # Unpack the install script and run the install # pushd /usr/local/ tar -zxvpf /root/bla/jstile/fcluster-1.0.3.tar.gz cd /usr/local/fcluster-1.0.3/ ./install Checking for system account 'fcluster': Found! Installation type: [Client|Server]: Server fCluster server IP: 10.0.2.178 fCluster server port: fCluster client IP: 10.0.2.219 Installing fcluster in /usr/local/fcluster Starting fcluster web server on port 9000 Installation complete, fcluster started: listening on port 9000 # # Verify that service has started # lsof -i tcp |grep fcluster # # Copy the fcluster.lic place. # Copy the fcluster fucntions into place. # Copy index.html into place, as the install failed to do so. # Copy the firewall script into place. # cp fcluster.lic /usr/local/fcluster/ cp /usr/local/fcluster-1.0.3/example_fcluster.filters /etc/fcluster.filters cp ../fcluster-1.0.3/index.html /usr/local/fcluster/ cp /usr/local/fcluster-1.0.3/example_ipt_firewall /root/rc.firewall # # Configure the web interface for the server # http://10.0.2.178:9000/index.html -> Server Config Firewall script = /root/rc.firewall Firewall type = iptables fCluster configuration utility. Server configuration complete. # # Put server startup script into position. # Linux Standards base puts stuff in /etc/init.d/ # Mandrake and Redhat put stuff in /etc/rc.d/init.d/ # ln -s /usr/local/fcluster/rc.fcluster_srv /etc/init.d/rc.fcluster_srv edit /usr/local/fcluster/rc.fcluster_srv # Get config. # SuSE does not have this file, # so I checked the variables normally in this file, and # set them within this script. # . /etc/sysconfig/network NETWORKING=yes test -z "$HOSTNAME" && HOSTNAME=`hostname 2> /dev/null` GATEWAY="10.0.0.254" FORWARD_IPV4="yes" # # Tried to start the server # ./rc.fcluster_srv start Starting fcluster_srv services: Your license has expired. Please contact InnerTek Software to purchase appropriate licensing Send email to Steven Chagnot. ######################################### ## 2002-08-14 : Got key, Resume install ######################################### # # Put key in position # cp fcluster.lic /usr/local/fcluster/ # # Try to start it up with shell debug mode # sh -x /etc/init.d/rc.fcluster_srv start + NETWORKING=yes + test -z sf1lsdmz02 + GATEWAY=10.0.0.254 + FORWARD_IPV4=yes + '[' yes = no ']' + RETVAL=0 + . /usr/local/fcluster/config ++ install_type=server ++ serverip=10.0.2.178 ++ serverport= ++ clientip=10.0.2.219 + echo -n 'Starting fcluster_srv services: ' Starting fcluster_srv services: + /usr/local/fcluster/fcluster_server -p License file found and is valid, starting fCluster... ./fcluster_srv: option requires an argument -- p Try `fcluster_server --help' for more information. + RETVAL=0 + echo + '[' 0 -eq 0 ']' + touch /var/lock/subsys/fcluster + exit 0 # # In the setup I did not enter a port number, # assuming that the default would be used # Looking at the config file, no value was set, # so I will add it now. # cat /usr/local/fcluster/config install_type=server serverip=10.0.2.178 serverport=9000 clientip=10.0.2.219 # # Now try to restart # sh -x /etc/init.d/rc.fcluster_srv start + NETWORKING=yes + test -z sf1lsdmz02 + GATEWAY=10.0.0.254 + FORWARD_IPV4=yes + '[' yes = no ']' + RETVAL=0 + . /usr/local/fcluster/config ++ install_type=server ++ serverip=10.0.2.178 ++ serverport=9000 ++ clientip=10.0.2.219 + echo -n 'Starting fcluster_srv services: ' Starting fcluster_srv services: + /usr/local/fcluster/fcluster_server -p 5000 License file found and is valid, starting fCluster... + RETVAL=0 + echo + '[' 0 -eq 0 ']' + touch /var/lock/subsys/fcluster + exit 0 # # I can's access the web site now. # status() { # Test syntax. if [ $# = 0 ] ; then echo "Usage: status {program}" return 1 fi # First try "pidof" pid=`pidof -o $$ -o $PPID -o %PPID -x $1` if [ "$pid" != "" ] ; then echo "$1 (pid $pid) is running..." return 0 fi # Next try "/var/run/*.pid" files if [ -f /var/run/$1.pid ] ; then pid=`head -1 /var/run/$1.pid` if [ "$pid" != "" ] ; then echo "$1 dead but pid file exists" return 1 fi fi # See if /var/lock/subsys/$1 exists if [ -f /var/lock/subsys/$1 ]; then echo "$1 dead but subsys locked" return 2 fi echo "$1 is stopped" return 3 } ptrace - ptrace (2) - process trace checkproc (8) - Checks for a process by full path name pidof Startproc (8) [start_daemon] - Start processes identified by path name kill (2) - send signal to a process Pidofproc (8) [checkproc] - Checks for a process by full path name killproc (8) - Send signals to processes by full path name Checkproc (8) [checkproc] - Checks for a process by full path name pidofproc (8) - Checks for a process by full path name perlipc (1) - Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores) =========================================== ################### # Client Setup # ################### # # Create User, group # groupadd fcluster -g 300 useradd fcluster -u 300 -g 300 -d /usr/local/fcluster # # Make a link to the iptables command, so that fcluster can find it. # ln -s /usr/sbin/iptables /sbin/iptables # # Unpack the install script and run the install # pushd /usr/local/ tar -zxvpf /home/jstile/fcluster-1.0.3.tar.gz cd fcluster-1.0.3/ ./install Checking for system account 'fcluster': Found! Installation type: [Client|Server]: Client fCluster server IP: 10.0.2.178 fCluster server port: fCluster client IP: 10.0.2.219 Installing fcluster in /usr/local/fcluster Starting fcluster web server on port 9000 Installation complete, fcluster started: listening on port 9000 cp /home/jstile/fcluster.lic /usr/local/fcluster/ cp /usr/local/fcluster-1.0.3/example_fcluster.filters /etc/fcluster.filters cp /usr/local/fcluster-1.0.3/example_ipt_firewall /root/rc.firewall ln -s /usr/local/fcluster/rc.fcluster_srv /etc/init.d/rc.fcluster_srv # # Configure the web interface for the server # http://10.0.2.178:9000/index.html -> Client Config Timer server pulse 5 Level 1 recipiants root,jstile@skyflow.com Level 1 email message level1.txt Level 2 recipiants root,jstile@skyflow.com Level 2 email message level2.txt Retry interval 3 Retry server pulse 5 IP fail over info Device eth0 IP Address 10.0.2.178 Netmask 255.255.240.0 Device eth1 IP Address 63.104.231.135 Netmask 255.255.255.128 Gateway 10.0.0.254 Firewall /root/rc.firewall fCluster configuration utility. Client configuration complete.