$ multipath
-1
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]
$ vxdctl initdmp
$ vxdctl enable
$ 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_30
auto - - error
$ /etc/vx/bin/vxdisksetup
-i emc_clariion0_30
[root@pnextappsucs460-1
~] # vxdisk -o alldgs list
$ vxdg init
ppt_dg ppt_dg01=emc_clariion0_30
Note:
$ 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_30
auto:cdsdisk ppt_dg01 ppt_dg online
VxVM ensures that the
newly created disk groups are visible from both the cluster nodes.
These disk groups can be used only from one node at a time. You
have to import/deport a disk group from either node to
use the disk groups and their volumes.
$ vxassist
-g ppt_dg make ppt_vol
299g
$ mkfs -t
vxfs -o bsize=4096,largefiles /dev/vx/rdsk/ppt_dg/ppt_vol
$ mount -t
vxfs -o largefiles /dev/vx/dsk/ppt_dg/ppt_vol /shared_ppt
IMPORTANT:
hagrp -add ppt-ha
hagrp -modify ppt-ha SystemList -add pnstextappsucs1
1 pnstextappsucs3 2
$ hares -add
ppt-apps-dg DiskGroup ppt-ha
$ hares -modify
ppt-apps-dg DiskGroup ppt_dg
$ hares -modify
ppt-apps-dg Enabled 1
$ hares -add
ppt-apps-vol Volume ppt-ha
$ hares -modify
ppt-apps-vol DiskGroup ppt_dg
$ hares -modify
ppt-apps-vol Volume ppt_vol
$ hares -modify
ppt-apps-vol Enabled 1
$ hares -add
ppt-apps-mnt Mount ppt-ha
$ hares -modify
ppt-apps-mnt MountPoint /shared_ppt
$ hares -modify
ppt-apps-mnt BlockDevice /dev/vx/dsk/ppt_dg/ppt_vol
$ hares -modify
ppt-apps-mnt FSType vxfs
$ hares -modify
ppt-apps-mnt FsckOpt %-y
$ hares -modify
ppt-apps-mnt MountOpt largefiles
$ hares -modify
ppt-apps-mnt Enabled 1
$ hares -add
ppt-app Application ppt-ha
$ hares -modify
ppt-app User pptadmin
$ hares -modify
ppt-app StartProgram "<ppt-install-dir>/pptctl
start"
$ hares -modify
ppt-app StopProgram "<ppt-install-dir>/pptctl
forcestop"
$ hares -modify
ppt-app PidFiles "<ppt-install-dir>/3rdparty/psmon/psmon.pid"
$ hares -modify
ppt-app Enabled 1
$ hares -modify ppt-app Critical 0
$ hares -add
ppt-nic NIC ppt-ha
$ hares -modify
ppt-nic Device eth0
$ hares -modify
ppt-nic Enabled 1
$ hares -add
ppt-ip IP ppt-ha
$ hares -modify
ppt-ip Device eth0
$ hares -modify
ppt-ip Address 10.4.83.151
$ hares -modify
ppt-ip NetMask 255.255.255.0
$ hares -modify
ppt-ip Enabled 1
$ hares -link
ppt-app ppt-apps-mnt
$ hares -link
ppt-apps-mnt ppt-apps-vol
$ hares -link
ppt-apps-vol ppt-apps-dg
$ hares -link
ppt-app ppt-ip
$ hares -link
ppt-ip ppt-nic
hastatus -sum
This command will provide
the summary of HA resources. Output would be similar to the one
shown below:
[root@pnqaems-ucs1
~]# hastatus -sum
-- SYSTEM STATE
-- System
State Frozen
A pnqaems-ucs1
RUNNING 0
A pnqaems-ucs2
RUNNING 0
-- GROUP STATE
-- Group
System Probed AutoDisabled State
B ems-rg
pnqaems-ucs1 Y N OFFLINE
B ems-rg
pnqaems-ucs2 Y N OFFLINE
B mur-rg
pnqaems-ucs1 Y N OFFLINE
B mur-rg
pnqaems-ucs2 Y N PARTIAL
B ppt-rg
pnqaems-ucs1 Y N ONLINE
B ppt-rg
pnqaems-ucs2 Y N OFFLINE
Veritas Cluster Files