Setting up an HP SIM server 6.0 or greater on a Linux-based Serviceguard Cluster White Paper 444847-004, February 2010

10
# vi /opt/hp/hpsmh/tomcat/bin/setclasspath.sh
else
if [ !
-
r "$JAVA_HOME"/bin/java
-
o !
-
r "$JAVA_HOME"/bin/
jdb
-
o !
-
r
"$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
###
exit 1
fi
# rpm
-
ivh sgmgrpi
-
B.01.01
-
1.rhel4.i386.rpm
Preparing..
. ###########################################
[100%]
1:sgmgrpi ###########################################
[100%]
[root@sgnode2 ~]# /etc/init.d/hpsmhd restart
Stopping hpsmhd:
Starting hpsmhd:
... OK ]
The
Serviceguard Ma
nager is
now
available.
Installing the Quorum
s
erver
1.
Install
and configure the
Q
uorum server
(SGQShpsimlnxauth file)
.
# rpm
ivh SGQShpsimlnx
-
A.02.00.04
-
0.rhel4
2.
After completing the installation,
create an authorization file
:
Cat > /usr/local/qs/conf/qs_a
uthfile << EOF
SG1hpsimlnx
root
SG2hpsimlnx root
EOF
3.
Add
the following entry in /etc/inittab f
ile:
qs:345:respawn:/usr/local/qs/bin/qs>> /var/log/qs/qs.log 2>&1
4.
Run the following command for updating the latest authorizations
:
#/usr/local/qs/bin/qs
upda
te
5.
To start the quorum server
,
enter
the
following
command
:
#telinit q
6.
Verify that the
quorum ser
vices
are running
:
#ps
ef | grep qs
Configuring the Cluster
1.
Manage the
SGLX authorizations
:
#
cat > /usr/local/cmcluster/conf/cmclnodelist << EOF
SG1hpsimlnx
root
SG2hpsimlnx root
SG1hpsimlnxp root
SG2hpsimlnxp root
EOF
#
chmod 600 /usr/local/cmcluster/conf/cmclnodelist
2.
Generate
the cluster.conf
ig
file
:
#
cmquerycl
v
C $SGCONF/clust
er
.config
n node1
n node2
q Quorum