System and Hardware Recommendations for HA Deployment
$ multipath
-l
mpath6 (36006016069902d008892bc0dec14e111)
dm-7 DGC,RAID 5
[size=300G][features=1
queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin
0 [prio=0][active]
\_ 8:0:0:1
sdi 8:128 [active][undef]
\_ 8:0:1:1
sdk 8:160 [active][undef]
mpath5 (36006016069902d00563e8a20ec14e111)
dm-6 DGC,RAID 5
[size=300G][features=1
queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin
0 [prio=0][active]
\_ 8:0:0:0
sdh 8:112 [active][undef]
\_ 8:0:1:0
sdj 8:144 [active][undef]
$ vxdctl initdmp
$ vxdctl enable
To see the status
of the new disk, use the following command:
$ vxdisk -o
alldgs list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online
invalid
disk_1 auto:none - - online
invalid
disk_2 auto:none - - online
invalid
disk_3 auto:none - - online
invalid
emc_clariion0_28 auto - - error
emc_clariion0_29 auto - - error
$ /etc/vx/bin/vxdisksetup
-i emc_clariion0_28
$ /etc/vx/bin/vxdisksetup
-i emc_clariion0_29
To see the status
of the new disk, use the command:
$ vxdisk -o
alldgs list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online
invalid
disk_1 auto:none - - online
invalid
disk_2 auto:none - - online
invalid
disk_3 auto:none - - online
invalid
emc_clariion0_28 auto:cdsdisk - - online
emc_clariion0_29 auto:cdsdisk - - online
vxdg init apps_dg apps_dg01=emc_clariion0_28
$ vxdg init
db_dg db_dg01=emc_clariion0_29
IMPORTANT:
$ vxdisk -o
alldgs list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online
invalid
disk_1 auto:none - - online
invalid
disk_2 auto:none - - online
invalid
disk_3 auto:none - - online
invalid
emc_clariion0_28 auto:cdsdisk apps_dg01 apps_dg01 online
emc_clariion0_29 auto:cdsdisk db_dg0 db_dg online
VxVM will ensure
that the newly created DGs are visible from both the cluster nodes. These
disk groups can be used only from one node at a time. You will have
to import/deport a disk group from either node to use the
disk groups and their volumes.
$ vxassist
-g apps_dg make apps_vol 299g
$ vxassist
-g db_dg make db_vol 299g
$ mkfs -t
vxfs -o bsize=4096,largefiles /dev/vx/rdsk/db_dg/db_vol
$ mkfs -t
vxfs -o bsize=4096,largefiles /dev/vx/rdsk/apps_dg/apps_vol
For better performance,
use a 4 KB block size and enable support for large files (more than
1 TB).
$ mount -t
vxfs -o largefiles /dev/vx/dsk/apps_dg/apps_vol /shared_apps
$ mount -t
vxfs -o largefiles /dev/vx/dsk/db_dg/db_vol /shared_db
IMPORTANT:
IMPORTANT:
$ haconf -makerw
$ hagrp -add
mur-ha
$ hagrp –modify
mur-ha SystemList <Node1> 0 <Node2> 1
$ hagrp –modify
mur-ha NumRetries 1
Where, Node1 and Node2
are the hostnames of the active and passive nodes.
$ hares -add
mur-apps-dg DiskGroup mur-ha
$ hares -modify
mur-apps-dg DiskGroup apps_dg
$ hares -modify
mur-apps-dg Enabled 1
$ hares -add
mur-db-dg DiskGroup mur-ha
$ hares -modify
mur-db-dg DiskGroup db_dg
$ hares -modify
mur-db-dg Enabled 1
$ hares -add
mur-apps-vol Volume mur-ha
$ hares -modify
mur-apps-vol DiskGroup apps_dg
$ hares -modify
mur-apps-vol Volume apps_vol
$ hares -modify
mur-apps-vol Enabled 1
$ hares -add
mur-db-vol Volume mur-ha
$ hares -modify
mur-db-vol DiskGroup db_dg
$ hares -modify
mur-db-vol Volume db_vol
$ hares -modify
mur-apps-vol Enabled 1
$ hares -add
mur-apps-mnt Mount mur-ha
$ hares -modify
mur-apps-mnt MountPoint /shared_apps
$ hares -modify
mur-apps-mnt BlockDevice /dev/vx/dsk/apps_dg/apps_vol
$ hares -modify
mur-apps-mnt FSType vxfs
$ hares -modify
mur-apps-mnt FsckOpt %-y
$ hares -modify
mur-apps-mnt MountOpt largefiles
$ hares -modify
mur-apps-mnt Enabled 1
$ hares -add
mur-db-mnt Mount mur-ha
$ hares -modify
mur-db-mnt MountPoint /shared_db
$ hares -modify
mur-db-mnt BlockDevice /dev/vx/dsk/db_dg/db_vol
$ hares -modify
mur-db-mnt FSType vxfs
$ hares -modify
mur-db-mnt FsckOpt %-y
$ hares -modify
mur-db-mnt MountOpt largefiles
$ hares -modify
mur-db-mnt Enabled 1
$ hares -add
mur-app Application mur-ha
$ hares -modify
mur-app User muradmin
$ hares -modify
mur-app StartProgram "/shared_apps/starbi/starbi/bin/serv
start"
$ hares -modify
mur-app StopProgram "/shared_apps/starbi/starbi/bin/serv
forcestop"
$ hares -modify
mur-app PidFiles "/shared_apps/starbi/starbi/server/sysmon/psmon.pid
$ hares -modify
mur-app Enabled 1
$ hares -add
mur-nic NIC mur-ha
$ hares -modify
mur-nic Device eth0
$ hares -modify
mur-nic Enabled 1
$ hares -add
mur-ip IP mur-ha
$ hares -modify
mur-ip Device eth0
$ hares -modify
mur-ip Address <ip-address>
IMPORTANT:
$ hares -modify
mur-ip NetMask 255.255.255.0
$ hares -modify
mur-ip Enabled 1
$ hares -link
mur-app mur-apps-mnt
$ hares -link
mur-app mur-db-mnt
$ hares -link
mur-apps-mnt mur-apps-vol
$ hares -link
mur-db-mnt mur-db-vol
$ hares -link
mur-apps-vol mur-apps-dg
$ hares -link
mur-db-vol mur-db-dg
$ hares -link
mur-app mur-ip
$ hares -link
mur-ip mur-nic
$ haconf -dump
-makero
$ hagrp -online
mur-ha -sys <Node1>
Once the above steps
are performed, the MUR HA application will start running and you can
access GUI using shared IP specified earlier.
$ haconf –makerw
$ hagrp -disable
mur-ha -sys <standby-node>
$ hares -offline
mur-app -sys <active-node>
$ hares -modify
mur-app Enabled 0
$ hares -modify
mur-app Enabled 1
$ hares -online
mur-app -sys <active-node>
$ hagrp -enable
mur-ha -sys <standby-node>
$ haconf -dump
-makero