kfod is another ASM disk discovery utility executed from the operating system level and is located in the $GRID_HOME/bin directory. kfod is heavily leveraged during installation and by tools like OUI, DBCA and ASMCA. kfod can be invoked with help=y (or -h) to display all the options.

+ASM > kfod -h
_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)]

Here’s some examples of the kfod utility that maybe useful for you:


+ASM > kfod
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME                                                         
================================================================================
      +ASM /apps/11.2.0/grid  


+ASM > kfod disks=all
--------------------------------------------------------------------------------
 Disk          Size Path                                     User     Group  
================================================================================
   1:      32761 Mb ORCL:DATA1                               <unknown> <unknown>
   2:      32761 Mb ORCL:DATA2                               <unknown> <unknown>
   3:      65526 Mb ORCL:FRA1                                <unknown> <unknown>
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME                                                         
================================================================================
      +ASM /apps/11.2.0/grid    

+ASM > kfod a='ORCL:*' di=all
--------------------------------------------------------------------------------
 Disk          Size Path                                     User     Group  
================================================================================
   1:      32761 Mb ORCL:DATA1                               <unknown> <unknown>
   2:      32761 Mb ORCL:DATA2                               <unknown> <unknown>
   3:      65526 Mb ORCL:FRA1                                <unknown> <unknown>
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME                                                         
================================================================================
      +ASM /apps/11.2.0/grid   

+ASM > kfod op=groups
--------------------------------------------------------------------------------
Group          Size          Free Redundancy Name          
================================================================================
   1:      65526 Mb      59596 Mb     EXTERN FRA           
   2:      40577 Mb      33093 Mb     EXTERN DATA          
my561:/home/oracle/work/dgmenu
+ASM > kfod op=VERSION
--------------------------------------------------------------------------------
ORACLE_SID RAC VERSION  
================================================================================
      +ASM  NO 11.2.0.2.0   

+ASM > kfod ds=true di=all
--------------------------------------------------------------------------------
 Disk          Size Path                                     Disk Group   User     Group  
================================================================================
   1:      32761 Mb ORCL:DATA1                               DATA         <unknown> <unknown>
   2:      32761 Mb ORCL:DATA2                               DATA         <unknown> <unknown>
   3:      65526 Mb ORCL:FRA1                                FRA          <unknown> <unknown>
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME                                                         
================================================================================
      +ASM /apps/11.2.0/grid   

Posted in ASM
Share this post, let the world know

Comments are closed