Setting up HP SIM 5.x on an HP-UX Serviceguard Cluster (448492-002, February 2008)

7
[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)
2562240 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 store
d 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 w
ill be automatically 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
11.
Create the required directories:
#
mkdir
-
p etc/sysconfig etc/pam.d etc/opt etc/init.d var/log var/opt opt
hp
12.
For each
,
move the original HP
SIM content to
the
new destination
and create the symbol
ic links.
#
mv /etc/init.d/hpsim etc/init.d
#
ln
-
sf /hpsimlnx/etc/init.d/hpsim /etc/init.d
#
mv /etc/opt/mx etc/opt/
#
ln
-
sf /hpsimlnx/etc/opt/mx /etc/opt
#
mv /etc/pam.d/hpsmdb etc/pam.d/
#
ln
-
sf /hpsimlnx/etc/pam.d/hpsmdb /etc/pam.d/
#
mv /etc/pam.d/m
xpamauthrealm etc/pam.d/
#
ln
-
sf /hpsimlnx/etc/pam.d/mxpamauthrealm /etc/pam.d
#
mv /etc/init.d/hpsmdb etc/init.d
#
ln
-
sf /hpsimlnx/etc/init.d/hpsmdb /etc/init.d
#
mv /etc/sysconfig/hpsmdb etc/sysconfig/
#
ln
-
sf /hpsimlnx/etc/sysconfig/hpsmdb /etc/sysco
nfig
#
mv /opt/hpsmdb opt/
#
ln
-
sf /hpsimlnx/opt/hpsmdb /opt
#
mv /opt/hpwebadmin opt/
#
ln
-
sf /hpsimlnx/opt/hpwebadmin /opt
#
mv /opt/mx opt/
#
ln
-
sf /hpsimlnx/opt/mx /opt
#
mv /var/log/hpsmdb var/log/
#
ln
-
sf /hpsimlnx/var/log/hpsmdb /var/log
#
mv /v
ar/opt/hpsmdb var/opt/
#
ln
-
sf /hpsimlnx/var/opt/hpsmdb /var/opt
#
mv /var/opt/mx var/opt/
#
ln
-
sf /hpsimlnx/var/opt/mx /var/opt
#
cd /