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

8
# ln
-
sf /hpsimlnx/var/log/hpsmdb /var/log
# rm
-
rf /var/opt/hpsmdb
# ln
-
sf /hpsimlnx/var/opt/hpsmdb /var/opt
# rm
-
rf
/var/opt/mx
# ln
-
sf /hpsimlnx/var/opt/mx /var/opt
Installing the cluster layer Serviceguard 11.18
HP Serviceguard
11.18 is
used to provide the
HA layer. For the
HP SIM installation
, run both system
installations at the same time.
#
cat /etc/hosts
127.0.
0.1 localhost.localdomain localhost
192.168.5.11 SG1hpsimlnx.hp
-
demo.net SG1hpsimlnx
192.168.5.12 SG2hpsimlnx.hp
-
demo.net SG2hpsimlnx
192.168.5.10 SGhpsimlnx.hp
-
demo.net SGhpsimlnx
192.168.5.13 SGQS
hpsimlnx.hp
-
demo.net SGQShpsimlnx
10.0.0.31 SG1hpsimlnxp.hp
-
demo.net SG1hpsimlnxp
10.0.0.32 SG2hpsimlnxp.hp
-
demo.net SG2hpsimlnxp
#
ssh
-
keygen
-
t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/
home/root/.ssh/id_dsa):
Created directory '/home/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/root/.ssh/id_dsa.
Your public key has been saved in /home/root/.ssh/id_dsa.pub
.
The key fingerprint is:
5c:13:49:89:2e:10:bb:6a:42:84:69:6d:82:d9:95:c0 root@SG1hpsimlnx.hp
-
demo.net
#
cp $HOME/.ssh/id_d
s
a.pub $HOME/.ssh/authorized_keys
#
chmod 600 $HOME/.ssh/authorized_keys
1.
To c
opy the SSH keys from node1 to node2
and
easily copy
co
nfiguration files between nodes
,
execute the following command:
#
scp
-
rp $HOME/.ssh/ SG2hpsimlnx:
2.
Install SGLX on system1.
#
ls
-
1 sg
pidentd
-
3.0.15sg
-
1.i386.rpm
serviceguard
-
A.11.18.00
-
0.product.redhat.i386.rpm
#
cd sg
#
rpm
-
ivh pidentd
-
3.0.15sg
-
1.i38
6.rpm serviceguard
-
A.11.18.00
-
0.product.redhat.i386.rpm
3.
Install SGLX on system2.
a)
Copy the SGLX packages to system2:
#
scp
-
rp sg SG2hpsimlnx:
#
ssh SG2hpsimlnx
#
cd sg
#
rpm
-
ivh pidentd
-
3.0.15sg
-
1.i386.rpm serviceguard
-
A.11.18.00
-
0.product.redhat.i386.rp
m
#
exit
b)
Create a profile script for SGLX on SG1hpsimlnx:
# cat > /etc/profile.d/sg.sh <<EOF
export PATH=
\
${PATH}:/usr/local/cmcluster/bin:/usr/local/sgmgr/bin/
export SGCONF=/usr/local/cmcluster/conf
export SGSBIN=/usr/local/cmcluster/bin