Table of Contents
KFOD – Kernel Files OSM Disk
KFOD utility is used to simulate the disk discovery from the operating system level and it can be found in $GRID_HOME/bin directory (or ASM_HOME/bin in older releases). Note: 1) KFOD is used at installation time as well (by OUI,DBCA or ASMCA) in order to perform disk discovery. 2) In case of a failed installation (e.g no $GRID_HOME/bin existing yet) KFOD can be found under your stage folder: <stage_folder>/grid/stage/ext/bin/ In such cases you might need to set LD_LIBRARY_PATH to <stage_folder>/grid/stage/ext/lib. Using kfod [grid@grac41 ]$ kfod status=TRUE asm_diskstring='/dev/asm*' disk=ALL -------------------------------------------------------------------------------- Disk Size Header Path User Group ================================================================================ 1: 10236 Mb MEMBER /dev/asm_data_10G_disk0 grid asmadmin 2: 10236 Mb MEMBER /dev/asm_data_10G_disk1 grid asmadmin 3: 10236 Mb MEMBER /dev/asm_data_10G_disk2 grid asmadmin 4: 10236 Mb MEMBER /dev/asm_data_10G_disk3 grid asmadmin 5: 2047 Mb MEMBER /dev/asm_ocr_11204_2G_disk1 grid asmadmin 6: 2047 Mb MEMBER /dev/asm_ocr_11204_2G_disk2 grid asmadmin 7: 2047 Mb MEMBER /dev/asm_ocr_11204_2G_disk3 grid asmadmin 8: 1023 Mb MEMBER /dev/asm_test_1G_disk1 grid asmadmin 9: 1023 Mb MEMBER /dev/asm_test_1G_disk2 grid asmadmin 10: 20473 Mb MEMBER /dev/asmdisk_fra1 grid asmadmin 11: 20479 Mb MEMBER /dev/asmdisk_fra2 grid asmadmin -------------------------------------------------------------------------------- ORACLE_SID ORACLE_HOME ================================================================================ +ASM1 /u01/app/11204/grid +ASM3 /u01/app/11204/grid +ASM2 /u01/app/11204/grid
KFED – Kernel Files metadata EDitor
KFED is a useful tool which allows to analyze ASM disk header information when ASM diskgroups can not be mounted. NOTE: KFED executable comes with installation from 11.1 onwards; for the older version you must build it. But it is not included the source of the software, therefore it is not available until GI installation completes. If you need to use it before GI being installed, please refer root@grac41 Desktop]# kfed read /dev/asm_test_1G_disk1 | egrep 'name|size|type' kfbh.type: 1 ; 0x002: KFBTYP_DISKHEAD <-- ASM disk header kfdhdb.dskname: TEST_0000 ; 0x028: length=9 <-- ASM disk name kfdhdb.grpname: TEST ; 0x048: length=4 <-- ASM DG name kfdhdb.fgname: TEST_0000 ; 0x068: length=9 <-- ASM Failgroup kfdhdb.capname: ; 0x088: length=0 kfdhdb.secsize: 512 ; 0x0b8: 0x0200 <-- Disk sector size kfdhdb.blksize: 4096 ; 0x0ba: 0x1000 <-- ASM block size kfdhdb.ausize: 1048576 ; 0x0bc: 0x00100000 <-- AU size : 1 Mbyte kfdhdb.dsksize: 1023 ; 0x0c4: 0x000003ff <-- ASM disk size : 1 GByte
AMDU – ASM Metadata Dump Utility
AMDU is an utility to extract all the available metadata from one or more ASM disks and/or generate formatted printouts of individual blocks. The utility does not require that any diskgroup to be mounted. Key features - Dumps metadata for ASM disks - Extract the content of ASM files even DG isn't mounted Oracle Support may ask you to provide AMDU output, especially when facing internal errors related to the ASM metadata Locate all DG and dump FRA2 DG $ asmcmd lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED NORMAL N 512 4096 1048576 40944 18531 10236 4147 0 N DATA/ MOUNTED EXTERN N 512 4096 1048576 40952 31315 0 31315 0 N FRA2/ MOUNTED NORMAL N 512 4096 4194304 6132 4960 2044 1458 0 Y OCR/ MOUNTED NORMAL N 512 4096 1048576 2046 1746 0 873 0 N TEST/ [grid@grac41 ]$ amdu -diskstring '/dev/asm*' -dump 'FRA2' amdu_2014_07_15_11_20_42/ $ cd amdu_2014_07_15_11_20_42/ [grid@grac41 ]$ ls -l total 144432 -rw-r--r--. 1 grid oinstall 147865600 Jul 15 11:20 FRA2_0001.img -rw-r--r--. 1 grid oinstall 11920 Jul 15 11:20 FRA2.map -rw-r--r--. 1 grid oinstall 12468 Jul 15 11:20 report.txt --> report.txt ************************** SCANNING DISKGROUP FRA2 *************************** Creation Time: 2014/07/10 17:16:26.860000 Disks Discovered: 2 Redundancy: 1 AU Size: 1048576 bytes Metadata Block Size: 4096 bytes Physical Sector Size: 512 bytes Metadata Stride: 113792 AU Duplicate Disk Numbers: 0 ---------------------------- SCANNING DISK N0010 ----------------------------- Disk N0010: '/dev/asmdisk_fra1' Allocated AU's: 4818 Free AU's: 15655 AU's read for dump: 73 Block images saved: 17669 Map lines written: 73 Heartbeats seen: 0 Corrupt metadata blocks: 0 Corrupt AT blocks: 0 ---------------------------- SCANNING DISK N0011 ----------------------------- Disk N0011: '/dev/asmdisk_fra2' Allocated AU's: 4819 Free AU's: 15660 AU's read for dump: 76 Block images saved: 18431 Map lines written: 76 Heartbeats seen: 0 Corrupt metadata blocks: 0 Corrupt AT blocks: 0 ------------------------- SUMMARY FOR DISKGROUP FRA2 ------------------------- Allocated AU's: 9637 Free AU's: 31315 AU's read for dump: 149 Block images saved: 36100 Map lines written: 149 Heartbeats seen: 0 Corrupt metadata blocks: 0 Corrupt AT blocks: 0 --> FRA2_0001.img FRA2.map are binary files
Reference
- KFOD, KFED, AMDU (Doc ID 1485597.1)
- Note 1180491.1 – KFED Tool For Windows OS
- Note 1346190.1 – KFED.PL for diagnosing – ORA-15036 ORA-15042 ORA-15020 ORA-15033
- Note 1505005.1 – Where to find kfed utility before Oracle Grid Infrastructure is installed
Great job
Thx
awesome knowledge sharing.