使用AMDU DUMP ASM磁盘元数据信息

    AMDU是一个从一个或多个ASM磁盘提取所有活动元数据信息,或者格式化打印输出单一的块的工具。这个工具不需要任何磁盘组被MOUNT。 AMDU是从11.1版本开始安装,虽然这个工具是11g发布的,但是它也能用于ASM 10g。

dump磁盘组相关元数据的语法如下:
amdu -diskstring '' -dump ''

amdu -help可以看到详细的帮助信息。

每次执行AMDU在当前位置都有一个目录被创建,除非使用参数-directory进行覆盖。
目录的格式为:amdu_YYYY_MM_DD_HH24_MM_SS。

默认命令将生成以下的文件:
_0001.img 磁盘组内容精确的DUMP;大小限制在2gb,但是能多于一个文件。 
.map 能用于找到磁盘ASM元数据的精确位置。
report.txt 包含磁盘扫描的详细信息。

report.txt文件显示数据磁盘组的磁盘的头信息,例如:
[grid@rhel1 ~]$ amdu -diskstring '/dev/raw/raw*' -dump 'DGOCR'
amdu_2014_04_14_19_11_00/
[grid@rhel1 ~]$ cd amdu*
[grid@rhel1 amdu_2014_04_14_19_11_00]$ ls
DGOCR_0001.img  DGOCR.map  report.txt
[grid@rhel1 amdu_2014_04_14_19_11_00]$ cat report.txt
-*-amdu-*-

******************************* AMDU Settings ********************************
ORACLE_HOME = /u01/app/11.2.0/grid
System name:    Linux
Node name:      rhel1.localdomain
Release:        2.6.18-164.el5xen
Version:        #1 SMP Tue Aug 18 15:59:52 EDT 2009
Machine:        x86_64
amdu run:       14-APR-14 19:11:00
Endianess:      1

--------------------------------- Operations ---------------------------------
       -dump DGOCR

------------------------------- Disk Selection -------------------------------
 -diskstring '/dev/raw/raw*'

------------------------------ Reading Control -------------------------------

------------------------------- Output Control -------------------------------

********************************* DISCOVERY **********************************

----------------------------- DISK REPORT N0001 ------------------------------
                Disk Path: /dev/raw/raw1
           Unique Disk ID: 
               Disk Label: 
     Physical Sector Size: 512 bytes
                Disk Size: 2047 megabytes
               Group Name: DGOCR
                Disk Name: DGOCR_0002
       Failure Group Name: DGOCR_0002
              Disk Number: 2
            Header Status: 3
       Disk Creation Time: 2012/10/21 10:39:21.696000
          Last Mount Time: 2013/05/01 20:42:43.751000
    Compatibility Version: 0x0b200000(11020000)
         Disk Sector Size: 512 bytes
         Disk size in AUs: 2047 AUs
         Group Redundancy: 2
      Metadata Block Size: 4096 bytes
                  AU Size: 1048576 bytes
                   Stride: 113792 AUs
      Group Creation Time: 2012/10/21 10:39:21.428000
  File 1 Block 1 location: AU 2
              OCR Present: YES

----------------------------- DISK REPORT N0002 ------------------------------
                Disk Path: /dev/raw/raw3
           Unique Disk ID: 
               Disk Label: 
     Physical Sector Size: 512 bytes
                Disk Size: 2047 megabytes
               Group Name: DGOCR
                Disk Name: DGOCR_0001
       Failure Group Name: DGOCR_0001
              Disk Number: 1
            Header Status: 3
       Disk Creation Time: 2012/10/21 10:39:21.696000
          Last Mount Time: 2013/05/01 20:42:43.751000
    Compatibility Version: 0x0b200000(11020000)
         Disk Sector Size: 512 bytes
         Disk size in AUs: 2047 AUs
         Group Redundancy: 2
      Metadata Block Size: 4096 bytes
                  AU Size: 1048576 bytes
                   Stride: 113792 AUs
      Group Creation Time: 2012/10/21 10:39:21.428000
  File 1 Block 1 location: AU 2
              OCR Present: YES

***************** Slept for 6 seconds waiting for heartbeats *****************

************************** SCANNING DISKGROUP DGOCR **************************
            Creation Time: 2012/10/21 10:39:21.428000
         Disks Discovered: 2
               Redundancy: 2
                  AU Size: 1048576 bytes
      Metadata Block Size: 4096 bytes
     Physical Sector Size: 512 bytes
          Metadata Stride: 113792 AU
   Duplicate Disk Numbers: 0


---------------------------- SCANNING DISK N0002 -----------------------------
Disk N0002: '/dev/raw/raw3'
           Allocated AU's: 309
                Free AU's: 1738
       AU's read for dump: 102
       Block images saved: 23302
        Map lines written: 102
          Heartbeats seen: 0
  Corrupt metadata blocks: 0
        Corrupt AT blocks: 0


---------------------------- SCANNING DISK N0001 -----------------------------
Disk N0001: '/dev/raw/raw1'
           Allocated AU's: 309
                Free AU's: 1738
       AU's read for dump: 102
       Block images saved: 23302
        Map lines written: 102
          Heartbeats seen: 0
  Corrupt metadata blocks: 0
        Corrupt AT blocks: 0


------------------------ SUMMARY FOR DISKGROUP DGOCR -------------------------
           Allocated AU's: 618
                Free AU's: 3476
       AU's read for dump: 204
       Block images saved: 46604
        Map lines written: 204
          Heartbeats seen: 0
  Corrupt metadata blocks: 0
        Corrupt AT blocks: 0

******************************* END OF REPORT ********************************

参考文章:《ASM tools used by Support : KFOD, KFED, AMDU (文档 ID 1485597.1)》。

--end--

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-1141954/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23135684/viewspace-1141954/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值