This utility from 11g is used to get ASM disk information and also can dump other information while asm instance is not running. For example you can get files from asm disk even though asm is not running.
To setup:
export LD_LIBARY_PATH=$LD_LIBARY_PATH:'pwd'
export PATH=$PATH:'pwd'
export LIBPATH=$LIBPATH:'pwd'
To get ASM information for DATA diskgroup:
./amdu - diskstring '/dev/oracleasm/disks/*' -dump 'DATA'
-*-amdu-*-
******************************* AMDU Settings ********************************
ORACLE_HOME = /u01/apps/11.2.0/grid
System name: Linux
Node name: rac01.domain.net
Release: 2.6.18-238.9.1.el5
Version: #1 SMP Fri Mar 18 12:42:39 EDT 2011
Machine: x86_64
amdu run: 02-JUN-11 12:31:53
Endianess: 1
--------------------------------- Operations ---------------------------------
-dump DATA
------------------------------- Disk Selection -------------------------------
-diskstring '/dev/oracleasm/disks/*'
------------------------------ Reading Control -------------------------------
------------------------------- Output Control -------------------------------
********************************* DISCDATAERY **********************************
Disk Path: /dev/oracleasm/disks/DATA_DISK1
Unique Disk ID:
Disk Label:
Physical Sector Size: 512 bytes
Disk Size: 5114 megabytes
Group Name: DATA
Disk Name: DATA_DISK1
Failure Group Name: DATA_DISK1
Disk Number: 0
Header Status: 3
Disk Creation Time: 2011/05/27 14:57:22.771000
Last Mount Time: 2011/05/27 16:28:18.723000
Compatibility Version: 0x0b200000
Disk Sector Size: 512 bytes
Disk size in AUs: 5114 AUs
Group Redundancy: 2
Metadata Block Size: 4096 bytes
AU Size: 1048576 bytes
Stride: 113792 AUs
Group Creation Time: 2011/05/27 14:57:22.720000
File 1 Block 1 location: AU 2
***************** Slept for 6 seconds waiting for heartbeats *****************
*************************** SCANNING DISKGROUP DATA ****************************
Creation Time: 2011/05/27 14:57:22.720000
Disks DiscDATAered: 3
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 N0003 -----------------------------
Disk N0003: '/dev/oracleasm/disks/DATA_DISK1'
AMDU-00209: Corrupt block found: Disk N0003 AU [0] block [43] type [4096]
AMDU-00201: Disk N0003: '/dev/oracleasm/disks/DATA_DISK1'
AMDU-00209: Corrupt block found: Disk N0003 AU [0] block [44] type [4096]
AMDU-00201: Disk N0003: '/dev/oracleasm/disks/DATA_DISK1'
AMDU-00209: Corrupt block found: Disk N0003 AU [0] block [45] type [4096]
No comments:
Post a Comment