haconf -makerw
hagrp -add app_sg
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node01 node02
hagrp -display app_sg -attribute AutoStartList
hares -add app_dg DiskGroup app_sg
hares -add app_nic NIC app_sg
hares -add app_mnt Mount app_sg
hares -add app_vol Volume app_sg
hares -add app_ip IP app_sg
hares -list
hagrp -modify app_sg SystemList node01 node02
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node02 node01
hagrp -modify app_sg SystemList node01 0 node02 1
hagrp -modify app_sg AutoStartList node01 node02
hares -modify app_dg DiskGroup webdg
hares -modify app_mnt BlockDevice /dev/vx/dsk/webdg/vol2
hares -modify app_mnt FSType vxfs
hares -modify app_mnt FsckOpt "-%y"
hares -modify app_mnt FsckOpt "%-y"
hares -modify app_mnt MountPoint /webvol2
hares -modify app_ip Device e1000g3
hares -modify app_ip Address 10.200.50.215
hares -modify app_ip NetMask 255.255.255.0
hares -modify app_vol Volume vol2
hares -modify app_vol DiskGroup webdg
--
hares -link app_ip app_nic
hares -link app_mnt app_vol
hares -link app_mnt app_ip
hares -link app_vol app_dg
-------------
hares -modify app_mnt Critical 1
hares -modify app_dg Enabled 1
-----------------------
hares -list
hares -dep
---------
root@node01:/var/VRTSvcs/log # hastatus -sum
-- SYSTEM STATE
-- System State Frozen
A node01 RUNNING 0
A node02 RUNNING 0
-- GROUP STATE
-- Group System Probed AutoDisabled State
B apache_sg node01 Y N ONLINE
B apache_sg node02 Y N OFFLINE
B app_sg node01 Y N OFFLINE
B app_sg node02 Y N ONLINE
root@node01:/var/VRTSvcs/log #
----------------------------------------------------------------
hagrp -switch app_sg -to node02