Search This Blog

Total Pageviews

Saturday 2 June 2012

kfod ASM utility





kfod asm_diskstring='/dev/oracleasm/disks/*' nohdr=true verbose=true disks=all status=true op=disks


a/sm_diskstring ASM Diskstring [asm_diskstring=discoverystring, discoverystring ...]
n/ohdr KFOD header suppression [nohdr=TRUE/(FALSE)]
di/sks Disks to discover [disks=raw,asm,all]
s/tatus Include disk header status [status=TRUE/(FALSE)]
o/p KFOD options type [OP=DISKS/CANDIDATES/MISSING/GROUPS/INSTS/VERSION/CLIENTS/RM/RMVERS/DFLTDSTR/GPNPDSTR/METADATA/ALL]


syntax :

$ kfod asm_diskstring='ORCL:*' disks=all
$ kfod asm_diskstring='/dev/rdsk/* ' disks=all





KFOD - ASM Tool

KFOD tool available in ASM Home (Grid Home) in 11gR2 , This is useful in diagnosting disk access errors in ASM.

Options available wth KFOD

kfod help=y
_asm_a/llow_only_raw_disks KFOD allow only raw devices [_asm_allow_only_raw_disks=TRUE/(FALSE)]
_asm_l/ibraries ASM Libraries[_asm_libraries=lib1,lib2,...]
_asms/id ASM Instance[_asmsid=sid]
a/sm_diskstring ASM Diskstring [asm_diskstring=discoverystring, discoverystring ...]
c/luster KFOD cluster [cluster=TRUE/(FALSE)]
db/_unique_name db_unique_name for ASM instance[db_unique_name=dbname]
di/sks Disks to discover [disks=raw,asm,all]
ds/cvgroup Include group name [dscvgroup=TRUE/(FALSE)]
g/roup Disks in diskgroup [group=diskgroup]
h/ostlist hostlist[hostlist=host1,host2,...]
metadata_a/usize AU Size for Metadata Size Calculation
metadata_c/lients Client Count for Metadata Size Calculation
metadata_d/isks Disk Count for Metadata Size Calculation
metadata_n/odes Node Count for Metadata Size Calculation
metadata_r/edundancy Redundancy for Metadata Size Calculation
n/ohdr KFOD header suppression [nohdr=TRUE/(FALSE)]
o/p KFOD options type [OP=DISKS/CANDIDATES/MISSING/GROUPS/INSTS/VERSION/CLIENTS/RM/RMVERS/DFLTDSTR/GPNPDSTR/METADATA/ALL]
p/file ASM parameter file [pfile=parameterfile]
s/tatus Include disk header status [status=TRUE/(FALSE)]
v/erbose KFOD verbose errors [verbose=TRUE/(FALSE)]

Unix Monitor Oracle Process ..... 

unix shell script 



#!/bin/bash 
ps -ef | grep -i mrp|grep -v grep|wc -l> /u01/app/ora/admin/logs/Pstandby.log 
if [ `cat /u01/app/ora/admin/logs/Pstandby.log|grep -v grep|grep -i "1"|wc -l` -eq 1 ]; then 
exit 0 
else 
# echo "The process is not running" 
echo "Physical Standby process is not running on XXXXXXXX......." | /usr/bin/mailx -s "### server-name-instance Physical Standby `hostname` " "Oracle@gmail.com"
  
fi 


Oracle DBA

anuj blog Archive