http://www.symantec.com/business/support/index?page=content&id=HOWTO58833
-
# add volume definition
hares -add SRVS-vol8 Volume SRVS-SG
hares -modify SRVS-vol8 Critical 0
hares -modify SRVS-vol8 DiskGroup cjprd
hares -modify SRVS-vol8 Volume cjprd-vol8
hares -modify SRVS-vol8 Enabled 1
hares -link SRVS-vol8 SRVS-dg 0 0# Add mount definition
hares -add SRVS-odbf4 Mount SRVS-SG
hares -modify SRVS-odbf4 Critical 1
hares -modify SRVS-odbf4 SnapUmount 0
hares -modify SRVS-odbf4 CkptUmount 1
hares -modify SRVS-odbf4 SecondLevelMonitor 0
hares -modify SRVS-odbf4 SecondLevelTimeout 30
hares -modify SRVS-odbf4 MountPoint /cjprd/odbf4
hares -modify SRVS-odbf4 BlockDevice /dev/vx/dsk/cjprd/cjprd-vol8
hares -modify SRVS-odbf4 FSType vxfs
hares -modify SRVS-odbf4 MountOpt
hares -modify SRVS-odbf4 FsckOpt -y
hares -modify SRVS-odbf4 Enabled 0
hares -modify SRVS-odbf4 Critical 0
hares -modify SRVS-odbf4 Enabled 1
hares -link SRVS-odbf4 SRVS-vol8 0 0hares -modify SRVS-odbf4 Critical 1
hares -link SRVS-odbf4 SRVS 0 0
hares -modify SRVS-vol8 Critical 1
haconf -dump -
hares -display -attribute Address -group GROUP_NAME | tail -1| awk '{print $4}' -
hastatus -sum | grep FAULT| awk '{print "hagrp -clear", $2, " -sys ", $3}'| sh -
hastatus -sum | grep ^B|grep OFFLINE|awk '{print $2, $6}'|sort | uniq -c|sort -n -
hagrp -flush GROUP -sys SYS
hares -probe RESOURCE -sys SYS
-
export GROUP=SERVICE_GROUP for RESOURCE in `hares -display -attribute MountOpt -group ${GROUP} | awk '{print $1}' | grep -v ^\#`; do echo "hares -modify ${RESOURCE} MountOpt 'mincache=direct,convosync=direct'" done | sh haconf -dump -
#!/bin/sh # # parmanand patram; 2010-11-25 # find and clear faulted VCS resource # # This script takes a list of VCS resource groups # and clears any FAULTED states in the cluster. # ex. # clear_VCS_faulted.sh 'GROUP1 GROUP2 ...' VCS_GROUPS=$1 VCS_BINPATH=/opt/VRTSvcs/bin for VCS_GROUP in ${VCS_GROUPS} do # hares will show all resources of this group that are faulted # but we will only need to clear based on the unique hostname for SYS in `${VCS_BINPATH}/hares -display -group ${VCS_GROUP} -attribute State | grep FAULTED | awk '{print $3}' | sort | uniq` do #echo ${VCS_BINPATH}/hares -display -group ${VCS_GROUP} -attribute State | grep FAULTED ${VCS_BINPATH}/hagrp -clear ${VCS_GROUP} -sys ${SYS} done done
Category:
- Administration
- APPS
- Articles
- Backup & Recovery
- Certification
- Configuration
- DATABASE STRUCTURE
- DATAGUARD
- Documentation
- EBS
- Enterprise Manager
- FLASHBACK
- HACKING
- HEADS UP
- Installation
- JDeveloper
- Linux
- Monitoring
- MQ
- NFS
- NXclient/server
- Online Resources
- PERL
- python
- RMAN
- Routing & Switching
- SAN – NAS
- Scripts
- Serial-Parallel-Port-Testers
- SNMP
- Software
- Solaris
- Spiritual
- SQL & PL/SQL
- SQLPLUS
- Startup/Shutdown
- Streams
- Tuning
- Version Control
- Vertias
- VMWare
- VNC
- Windows XP
- ZFS





