Maclean Liu(刘相兵 发表于 2012-3-21 21:25:46

How not to LOSE your ASM disks on Linux

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


casper0511 发表于 2012-12-4 10:11:26

谢谢分享,学习!!!!!

zengmuansha 发表于 2013-10-31 21:51:25

刘大的一定要支持
页: [1]
查看完整版本: How not to LOSE your ASM disks on Linux