- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
1#
发表于 2012-3-21 21:25:46
|
查看: 5268 |
回复: 2
How not to LOSE your ASM disks on Linux
What is the disk I’m looking at (sg_inq or 3rd party driver specific tool)
What is on the header of the disk (dd / kfed / kfod / fdisk)
What is inside the disk(dd / asmcmd / fsck )
What was the original design(off-line documentation)
What is the current problem / error(ASM alert log, /var/log/messages, dmesg, other)
dd – disk dump (data description) – standard *NIX command to read or write raw data to a disk
Example, backup the header of your ASM disks:dd if=/dev/sdb1 of=/tmp/sdb1-hdr bs=512 count=1
kfed / kfod – utilities from Oracle available since 10gR1 though hidden.
Can read the header of an ASM disk and show you the contents
To make KFED utility for 10g
cd $ORACLE_HOME/rdbms/lib
cp ins_rdbms.mk ins_rdbms.mk_prekfed
Modify the ins_rdbms.mk file:
Duplicate the ikfod lines, then change all occurrences of kfod to kfed (I.E.ikfed: $(KFED)-mv -f $(ORACLE_HOME)/bin/kfed $(ORACLE_HOME)/bin/kfed0-mv $(ORACLE_HOME)/rdbms/lib/kfed $(ORACLE_HOME)/bin/kfed-chmod 751 $(ORACLE_HOME)/bin/kfed
cp ssskfeded.o sskfeded.o
make -f ins_rdbms.mk ikfed
How not to LOSE your ASM disks on Linux.ppt
(2.28 MB, 下载次数: 6, 售价: 10 金钱)
|
|