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

6
9.
If the
daemons
are not running, start them by executing the following command:
# /opt/mx/bin/mxstart
10.
After install
ing
the HP SIM package
perform the following steps
to
create
the
relevant directories
on the shared storage, copy the contents of the original directory and create symbolic links
(
/etc/pam.d/mxpamauthrealm, /etc/opt/mx, / opt/mx, /var/opt/mx,
/etc/init.d/hpsim,
and
/var/
opt
/
smdb
)
respectively
.
a)
Stop the running processes:
# /etc/init.d/hpsim stop
# /etc/init.d/hpsmdb
stop
b)
Create the future shared storage mount point:
# mkdir /hpsimlnx
c)
Create the LVM infrastructure on the shared storage
(/dev/s
db
in the following example
):
[root@SG1hpsimlnx ~]# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
[root@SG1hpsimlnx ~]# vgcreate vgsg /dev/sdb
Volume group "vgsg" successfully created
[root@SG1hpsimlnx ~]# lvcreate
-
L 19990M
-
n lvsg
vgsg
Rounding up size to full physical extent 19.52 GB
Logical volume "lvsg" created
[root@SG1hpsimlnx ~]# mke2fs
-
m0
-
j /dev/vgsg/lvsg
mke2fs 1.35 (28
-
Feb
-
2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
25622
40 inodes, 5117952 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=8388608
157 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208,
4096000
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatical
ly checked every 30 mounts or
180 days, whichever comes first. Use tune2fs
-
c or
-
i to override.
# mount /dev/vgsg/lvsg /hpsimlnx/
# df /hpsimlnx/
Filesystem 1K
-
blocks Used Available Use% Mounted on
/dev/vgsg/lvsg 20642412 77888
20564524 1% /hpsimlnx
# cd /hpsimlnx
d)
Create the required directories:
#
mkdir
-
p etc/sysconfig etc/pam.d etc/opt etc/init.d var/log var/opt
opt
/
hp