HOW-TO HP ServiceGuard Clustering

Share your expert knowledge and show off your skills.

HOW-TO HP ServiceGuard Clustering

Postby ather_36 » Fri Mar 05, 2010 11:06 am

Configuration Road MAP

1. Plan the Hardware
a. Hardware
b. LVM
c. Cluster
d. Packages

2. Setup Hardware
a. Cpu
b. Disks
c. Lans
d. Memory
3. Configure LVM
a. Lock VG
b. Lock Disk
c. Physical VG’s
d. VGs for Packages
4. Configure the Cluster
a. Gather Data
b. Edit the Cluster Configuration file
c. Check and compile the file
d. Send file to other nodes.
5. Configure Packages
a. Edit Pkg Config File
b. Edit Control Script
c. Check and Compile File
d. Send File to Other Nodes
6. Maintenance
a. Cluster
b. Packages
c. Hardware
d. Diagnostics
e. Monitors







IDENTIFY SERVERS

Data To Record Command Used Sever1 Server2


Node name hostname
uname –a
Machine Model model
OS Rev uname –r
Memory dmesg
Date/time/timezone Date
MC SG Rev Swlist –l product \
| grep –i gaurd

IDENTIFY LAN CARDS

NETWORK CARDS DETAILS Command Used Sever1 Server2


IP address ifconfig lan0
ifconfig lan1
ifconfig lan4
Subnet netstat –in
Station address lanscan

Net-Interface Name/PPA lanscan
Description (from ioscan) ioscan –fc lan


LANSCAN: ON SERVER 1

Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#


LINKLOOP CONNECTIVITY TEST

ON Server 1

# linkloop –i 0 server2_station_address on lan 0
# linkloop –i 1 server2_station_address on lan 1
# linkloop –i 2 server2_station_address on lan 2
# linkloop –i 3 server2_station_address on lan 3
# linkloop –i 4 server2_station_address on lan 4

On Server 2

# linkloop –i 0 server1_station_address on lan 0
# linkloop –i 1 server1_station_address on lan 1
# linkloop –i 2 server1_station_address on lan 2
# linkloop –i 3 server1_station_address on lan 3
# linkloop –i 4 server1_station_address on lan 4




SET UP VOLUME GROUP vg_testing

# ioscan
# insf –e
Note down the new pv names

# pvcreate /dev/rdsk/c4t0d1 /dev/rdsk/c4t0d2 /dev/rdsk/c4t0d3
/dev/rdsk/c4t0d4

# mkdir /dev/vg_testing
# mknod /dev/vg_testing/group c 64 0x010000
# chmod 755 /dev/vg_testing
# chmod 640 /dev/vg_testing/group

# vgcreate –s 16 vg_testing/dev/rdsk/c4t0d1 /dev/rdsk/c4t0d2 /dev/rdsk/c4t0d3 /dev/rdsk/c4t0d4 /dev/rdsk/c6t0d1 /dev/rdsk/c6t0d2 /dev/rdsk/c6t0d3 /dev/rdsk/c6t0d4 /dev/rdsk/c8t0d1 /dev/rdsk/c8t0d2 /dev/rdsk/c8t0d3 /dev/rdsk/c8t0d4 /dev/rdsk/c10t0d1 /dev/rdsk/c10t0d2 /dev/rdsk/c10t0d3 /dev/rdsk/c10t0d4

# lvcreate vg_testing
# lvcreate vg_testing
# lvcreate vg_testing
# lvcreate vg_testing

# lvextend –l 3199 /dev/vg_testing/lvol1 /dev/dsk/c4t0d1
# lvextend –l 3199 /dev/vg_testing/lvol2 /dev/dsk/c4t0d2
# lvextend –l 3199 /dev/vg_testing/lvol3 /dev/dsk/c4t0d3
# lvextend –l 3199 /dev/vg_testing/lvol4 /dev/dsk/c4t0d4

# newfs –F vxfs –o largefiles /dev/vg_testing/rlvol1
# newfs –F vxfs –o largefiles /dev/vg_testing/rlvol2
# newfs –F vxfs –o largefiles /dev/vg_testing/rlvol3
# newfs –F vxfs –o largefiles /dev/vg_testing/rlvol4

# mkdir /testing1
# mkdir /testing2
# mkdir /testing3
# mkdir /testing4

# mount /dev/vg_testing/lvol1 /testing1
# mount /dev/vg_testing/lvol1 /testing2
# mount /dev/vg_testing/lvol1 /testing3
# mount /dev/vg_testing/lvol1 /testing4

Export LVM configuration on 1st node.

#vgexport -v -s -p -m /etc/lvmconf/vg_testing.map vg_testing
#vgchange –a n vg_testing

On Node2 :-

# cd /etc/lvmconf
# rcp node1:/etc/lvmconf/vg_testing.map .
# mkdir /dev/vg_testing
# mknod /dev/vg_testing/group c 64 0x010000
# vgimport –v –s –m /etc/lvmconf/vg_testing.map vg_testing
# mkdir /testing1
# mkdir /testing2
# mkdir /testing3
# mkdir /testing4
# vgchange -a r vg_testing
# vgcfgbackup /dev/vg_testing
# vgchange -a n vg_testing



Export LVM configuration on 1st node.

#vgexport -v -s -p -m /etc/lvmconf/vg_testing.map vg_testing
#vgchange –a n vg_testing

On Node2 :-

# cd /etc/lvmconf
# rcp node1:/etc/lvmconf/.map vg_testing
# mkdir /dev/vg_testing
# mknod /dev/vg_testing/group c 64 0x020000
# vgimport –v –s –m /etc/lvmconf/vg_testing.map vg_testing

# mkdir /testing1
# mkdir /testing2
# mkdir /testing3
# mkdir /testing4

# vgchange -a r vg_testing
# vgcfgbackup /dev/vg_testing
# vgchange -a n vg_testing



LMV issue

Modify /etc/lvmrc

AUTO_VT_ACTIVATE=0

Note:-

Multiple network cards must all be on the different subnets
HEARTBEAT_IP addresses must on on the same net.





Cluster Configuration Procedure


1. set up trusted hosts within cluster system:-
#vi /etc/cmcluster/cmclnodelist
node_name_1st node root
note_name _2nd node root

2. cd /etc/cmcluster
3. cmquerycl -v –C cmclconf.ascii –n node1 –n node2
4. modify the required parameters
5. cmcheckconf –v –C /etc/cmcluster/cmclconf.ascii
6. cmapplyconf –v –C /etc/cmcluster/cmclconfig.ascii
7. cmruncl –v
8. cmviewcl –v

#tail -f /var/adm/syslog/syslog.log


Configure Volume Groups as MCSG Volume Groups


#vgchange -c y vgname (Marking VG for MCSG)
#vgchange -c n vgname (Marking VG as non MSSG)
#vgchange -a y vgname (Standard Volume Group Activation)
#vgchange -a e vgname (Exclusive Volume Group)














PACKAGE CONFIGURATION PROCEDURE


1. mkdir /etc/cmcluster/pkgname
2. cd /etc/cmcluster/pkgname
3. cmmakepkg –p pkg.conf
4. vi pkg.conf
5. cmmakepkg –s pkg.cntl
6. vi pkg.cntl
7. ftp pkg.cntl to second node
8. cmcheckconf –P /etc/cmcluster/pkgname/pkg.conf
9. cmapplyconf –P /etc/cmcluster/pkgname/pkg.conf
10. cmviewcl –v

PKG MGMT Commands
cmrunpkg
cmhaltpkg
cmmodpkg

Node MGMT Commands
cmrunnode
cmhaltnode

Cluster MGMT Commands
cmruncl
cmhaltcl
cmviewcl -v


logfile for the package
/etc/cmcluster/pkgname/pkg.cntl.log
-------------------------------------------------------------------------------------
Note: I also have HP ServiceGuard Cluster Configuration with OracleRAC. Please reply me some one require.
Thanks & Regards
Athar Hussain
ather_36
Naik
 
Posts: 97
Joined: Thu Jul 31, 2003 11:38 am
Website: http://www.linuxpakistan.net
WLM: ather_36@hotmail.com
Yahoo Messenger: ather_36@yahoo.com
Location: karachi

Return to “%s” Howto's & Tip n' Tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron