1753355 Members
5007 Online
108792 Solutions
New Discussion юеВ

Single node cluster

 
SOLVED
Go to solution
H_16
Trusted Contributor

Single node cluster

Im running HPUX 11.23 Mc/SG 11.18

At the moment I only want a basic package for my NICs only..

Primary IP 172.168.2.143 (lan1)
Secondary IP 172.168.2.144 (lan5)
Virtual IP 172.168.2.145

I basically want if lan1 fails it will failover to lan5

Im new to MC/SG so can anyone tell me the steps are require in being a package with these details

20 REPLIES 20
Mel Burslan
Honored Contributor

Re: Single node cluster

In /etc/cmcluster directory, you should have an ascii cluster definition file, more than likely, named as cmclconf.ascii. When you edit this file, you will se a construct looking like this:


NODE_NAME sunshine
NETWORK_INTERFACE lan1
HEARTBEAT_IP 10.22.21.8
NETWORK_INTERFACE lan3
NETWORK_INTERFACE lan2
HEARTBEAT_IP 10.14.21.8
NETWORK_INTERFACE lan6


In this example here, lan1 is the primary interface with an IP address od 10.22.21.8 and if it fails, this IP address is going to be taken over by lan3. In the same train of thought, lan2, another interface needed by my package, has an IP address of 10.14.21.8. If this one fails for some reason, IP address will be taken over by lan6.

Hope this makes it a little clearer for you. But you need to understand that, if the only reason you are setting up a single node cluster, is to have network redundancy, please reconsider using HP Auto Port Aggregation (HP-APA). It is a much better way of doing it.

HTH
________________________________
UNIX because I majored in cryptology...
Rita C Workman
Honored Contributor

Re: Single node cluster

I copied this from somewhere and used when we had to do a slightly different thing. Break up an 8 node cluster into single node clusters for DR purposes. Along with Mel's instruction to NOT assign an IP to your second failover lan, you might this info helpful too.

Managing a Single-Node Cluster
The number of nodes you will need for your Serviceguard cluster depends
on the processing requirements of the applications you want to protect.
You may want to configure a single-node cluster to take advantage of
Serviceguard├в s network failure protection.
In a single-node cluster, a cluster lock is not required, since there is no
other node in the cluster. The output from the cmquerycl command
omits the cluster lock information area if there is only one node.
You still need to have redundant networks, but you do not need to specify
any heartbeat LANs, since there is no other node to send heartbeats to.
In the cluster configuration ASCII file, specify all LANs that you want
Serviceguard to monitor. For LANs that already have IP addresses,
specify them with the STATIONARY_IP keyword, rather than the
HEARTBEAT_IP keyword. For standby LANs, all that is required is the
NETWORK_INTERFACE keyword with the LAN device name.
Single-Node Operation
Single-node operation occurs in a single-node cluster or in a multi-node
cluster, following a situation where all but one node has failed, or where
you have shut down all but one node, which will probably have
applications running. As long as the Serviceguard daemon cmcld is
active, other nodes can re-join the cluster at a later time.
If the Serviceguard daemon fails when in single-node operation, it will
leave the single node up and your applications running. This is different
from the loss of the Serviceguard daemon in a multi-node cluster, which
halts the node with a TOC, and causes packages to be switched to
adoptive nodes.
It is not necessary to halt the single node in this scenario, since the
application is still running, and no other node is currently available for
package switching.

However, you should not try to restart Serviceguard, since data
corruption might occur if the node were to attempt to start up a new
instance of the application that is still running on the node. Instead of
restarting the cluster, choose an appropriate time to shutdown and
reboot the node, which will allow the applications to shut down and then
permit Serviceguard to restart the cluster after rebooting.


Rgrds,
Rita

Re: Single node cluster

You are missing a basic point of the way SG LAN failover works here

If you want SG to just do LAN failover for you and nothing else, you don't need a package at all, or a virtual IP. However the standby LAN card has to have no IP bound to it, so for starters get rid of that extra IP address on lan5 with:

ifconfig lan5 0

Now in your case if you simply want an IP address which is normally on lan1 and then moves to lan5 if lan1 fails, you really only need the following in a cluster configuration file:

CLUSTER_NAME mycluster
NODE_NAME
NETWORK_INTERFACE lan1
HEARTBEAT_IP 172.168.2.143 NETWORK_INTERFACE lan5
HEARTBEAT_INTERVAL 1000000
NODE_TIMEOUT 2000000
AUTO_START_TIMEOUT 600000000
NETWORK_POLLING_INTERVAL 2000000
MAX_CONFIGURED_PACKAGES 10

Check that with "cmcheckconf -C "
and then apply it with "cmapplyconf -C "

Then start your cluster with cmruncl

You will now find that the IP address on lan1 of 172.168.2.143 will failover to lan5 if you pull the cable from lan1

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Solution

Re: Single node cluster

hmmm formatting got a bit screwed up there - that file should look like this:

CLUSTER_NAME mycluster
NODE_NAME
NETWORK_INTERFACE lan1
HEARTBEAT_IP 172.168.2.143
NETWORK_INTERFACE lan5
HEARTBEAT_INTERVAL 1000000
NODE_TIMEOUT 2000000
AUTO_START_TIMEOUT 600000000
NETWORK_POLLING_INTERVAL 2000000
MAX_CONFIGURED_PACKAGES 10


HTH

Duncan

I am an HPE Employee
Accept or Kudo
Viktor Balogh
Honored Contributor

Re: Single node cluster

as Rite wrote it there's no sense of a HEARTBEAT_IP in a single-node cluster, instead of it i would write STATIONARY_IP.
otherwise it's ok.
****
Unix operates with beer.
H_16
Trusted Contributor

Re: Single node cluster


I have just installed MC/SG A.11.18

There doesnt seem to be a cmclconf.ascii file...or do I have to create myself by running specific commands?
Ganesan R
Honored Contributor

Re: Single node cluster

Hi,

You have to create the cluster ascii file by running this command.

#cmquerycl -v -n nodename -C cmclconf.ascii
Best wishes,

Ganesh.
H_16
Trusted Contributor

Re: Single node cluster

Should my netconf on have lan1 configured..
I have commented out lan5

INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="10.124.3.144"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

#INTERFACE_NAME[2]="lan5"
#IP_ADDRESS[2]="10.124.3.145"
#SUBNET_MASK[2]="255.255.255.0"
#BROADCAST_ADDRESS[2]=""
#INTERFACE_STATE[2]=""
#DHCP_ENABLE[2]=0
#INTERFACE_MODULES[2]=""
H_16
Trusted Contributor

Re: Single node cluster

should have read...

Only have lan1 configured..