使用KFOD模擬ASM DISK DISCOVERY過程

尛樣兒發表於2014-04-14
    KFOD(Kernel Files Osm Disk)用來從作業系統層面模擬disk discovery。該工具可以從$GRID_HOME/bin目錄(或者是老版本的ASM_HOME/bin目錄)下找到。

注意:
1).KFOD也會在安裝時使用(透過OUI,DBCA或者ASMCA),為了執行disk discovery。
2).在失敗安裝的情況下(例如,$GRID_HOME/bin不存在),KFOD能在stage資料夾下找到:/grid/stage/ext/bin/,同時需要設定LD_LIBRARY_PATH到/grid/stage/ext/lib

1.KFOD幫助資訊:
[root@rhel1 ~]# su - grid
[grid@rhel1 ~]$ which kfod
/u01/app/11.2.0/grid/bin/kfod
[grid@rhel1 ~]$ kfod -help
_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)]

2.使用kfod例子:
[grid@rhel1 ~]$ kfod status=TRUE asm_diskstring='/dev/raw/raw*' disks=all
--------------------------------------------------------------------------------
 Disk          Size Header    Path                                     User     Group   
================================================================================
   1:       2047 Mb MEMBER    /dev/raw/raw1                            grid     oinstall
   2:       2047 Mb MEMBER    /dev/raw/raw3                            grid     oinstall
--------------------------------------------------------------------------------
ORACLE_SID ORACLE_HOME                                                          
================================================================================
     +ASM2 /u01/app/11.2.0/grid                                                 

參考文章:《ASM tools used by Support : KFOD, KFED, AMDU (文件 ID 1485597.1)》

--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-1141948/,如需轉載,請註明出處,否則將追究法律責任。

相關文章