1829735 Members
1786 Online
109992 Solutions
New Discussion

Re: cluster document

 
SOLVED
Go to solution
himacs
Super Advisor

cluster document

Hi gurus,

please provide document for cluster configuration for integrity servers..


regards
himacs
5 REPLIES 5
Mel Burslan
Honored Contributor
Solution

Re: cluster document

This is a good document to have under your hand if you are going to do clustering:

http://docs.hp.com/en/B3936-90135/B3936-90135.pdf

HTH
________________________________
UNIX because I majored in cryptology...
Roopesh Francis_1
Trusted Contributor

Re: cluster document

Steven E. Protter
Exalted Contributor

Re: cluster document

Shalom himacs,

This is my favorite.

http://docs.hp.com/en/6033/HPServiceguardClusterConfig_WP.pdf

It works well on IA64/IPF servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Serviceguard for Linux
Honored Contributor

Re: cluster document

Since you were not that specific, you may want to go here: http://docs.hp.com/en/ha.html and select the most appropriate doc.
Basheer_2
Trusted Contributor

Re: cluster document

Hello,

Here is the one I created

Both nodes
Root mirror

# dont allow the os to auto activate the vgs
# (vg00 is auto activated)
vi /etc/lvmrc
VG_AUTO_ACTIVATE=0
customer_vgactivation
{
# If there are any LOCAL vgs, activate here
/usr/sbin/vgchange -a y /dev/vglocal-not-cluster-vg
}

# let the cluster auto start after reboots
vi /etc/rc.config.d/cmcluster
AUTOSTART_CMCLD=1

NTP config /etc/ntp.conf
Primary and secondary time sources
Nptq â p
/sbin/init.d/xntpd start/stop/status
Xntpq
/etc/rc.config.d/netdaemons â TIME_SERVER=1

.rhosts or cmclnodelist (/etc/cmcluster)



Node 1
-------
0) Create LUN, ioscan, insf -e
1) pvcreate -f /dev/rdks/c1t1d0 ( Assume this is a SAN LUN vdisk)
2) mkdir /vg01
3) mknod /dev/vg01/group c 64 0x010000 (0x## this number must match in node2, step 2 under Node 2)
4) vgcreate /dev/vg01 /dev/dsk/c1t1d0
5) lvcreate -L 2048 -n lvora /dev/vg01
6) newfs -F vxfs /dev/vg01/rlvora
7) mkdir /oracle
8) mount -F vxfs /dev/vg01/lvora /oracle
9) vgexport -v -s -p -m /tmp/vg01.map /dev/vg01
10) scp /tmp/vg01.map node2:/tmp

Node 2
------
1) mkdir /dev/vg01
2) mknod /dev/vg01/group c 64 0x010000 (0x## This number must be same as Step 3 of Node 1)
3) vgimport -v -s -m /tmp/vg01.map /dev/vg01
4) mkdir /oracle
5) vgchange -a r /dev/vg01
6) mount â F vxfs â o ro /dev/vg01/lvora /oracle
7) vgcfgbackup /dev/vg01
8) vgchange -a n /dev/vg01


node1
------
lan0 heartbeat 192.168.1.2
lan1 primary A.B.C.101
lan2 standby

node2
------
lan0 heartbeat 192.168.1.2
lan1 primary A.B.C.102
lan2 standby

add lan0 and lan1 to /etc/hosts


in Node 1 and Node 2 (for ftp/rcp) cmclnodelist is Identicall on all nodes
--------------------------------------------------------------------------
#Custer configuration steps
#1)
vi /etc/cmcluster/cmclnodelist (create in node1 and node2)
node1 root
node2 root

chmod 444 cmclnodelist
rcp cmclnodelist node2:$PWD

in Node 1
---------
#2) Create cluster config file
cd /etc/cmcluster
cmquerycl -v -C cmclconfig.ascii -n node1 -n node2


vi cmclconfig.ascii # change ( minimum it needs these 2)
CLUSTER_NAME psoft
NODE_TIMEOUT 2000000 # 2 seconds, good to have 2-3 secs

# change other parameters
# Add the vgs
VOLUME-GROUPS
/dev/vg01

#3) check for errors
cmcheckconf -v -C /etc/cmcluster/cmclconfig.ascii

#4) compile cmclconfig.ascii to binary and distribute the binary file to all the other cluter nodes
cmapplyconf -v -C /etc/cmcluster/cmclconfig.ascii

#5) Start the cluster and view
cmruncl â v (first time start, 100% node attendance is required. For other times to start cluster in one node cmruncl â v â n node1
cmviewcl


now a basic cluster is up.
to halt
cmhaltl -v


now start creating the packages.
Each Package needs 2 files 1) pkg conf file and 2) pkg script control file

create pkg conf file
mkdir /etc/cmcluster/jdeprod
cd /etc/cmcluster/jdepro
cmmakepkg -v -p jdeprod.conf

vi jdeprod.conf
PACKAGE_NAME jdeprod
PACKAGE_TYPE FAILOVER
FAILOVER_POLICY CONFIGURED NODE
FAILBACK_POLICY MANUAL
NODE_NAME node1
NODE_NAME node2
AUTO_RUN YES
LOCAL_LAN_FAILOVER_ALLOWED YES
RUN_SCRIPT /etc/cmcluster/clustername/pkgname/jdeprod.ctl start
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /etc/cmcluster/clustername/pkgname/jdeprod.ctl stop
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
SERVICE_NAME orapromon
SERVICE_HALT_TIMEOUT 120
SERVICE_NAME jdepromon
SERVICE_HALT_TIMEOUT 120
SUBNET 204.187.168.0


create pkg control script
cd /etc/cmcluster/jdepro
cmmakepkg -v -s jdepro.cntl

add all the vgs, lvs, fs and mount points used by the pkg
VG[0]=vg01
VG{1}=vg02

Still working on to finish the pkg conf and pkg control script.