Beruflich Dokumente
Kultur Dokumente
ASM Troubleshooting
Yahoo!
August 2009
Kevin Moore
Technical Lead, Advanced Customer Services
ASM L & L Topics
• ###########################################
• # Cluster Database
• ###########################################
• cluster_database=true
• ###########################################
• # Miscellaneous
• ###########################################
• diagnostic_dest=/home/oracle
• instance_type=asm
• ###########################################
• # Pools
• ###########################################
• large_pool_size=12M
• asm_diskgroups='DATA'
• +ASM2.instance_number=2
• +ASM1.instance_number=1
Note #351117.1 - Information to gather when diagnosing ASM space issues contains
scripts for collecting specific ASM information
TRUSSing or STRACEing the RBAL process while selecting * from v$asm_disk can often show errors in the path of the
command
SESSION #1
SESSION #2
SESSION #3
tail –f /tmp/rbal.trc
1. First of all, please scan the disks (on all the nodes if RAC):
dbaasm.us.oracle.com:+ASM:oracle:11g>/etc/init.d/oracleasm scandisks
Scanning system for ASM disks: OK ]
dbaasm.us.oracle.com:+ASM:oracle:11g>/etc/init.d/oracleasm listdisks
VOL1_10G
VOL2_10G
dbaasm.us.oracle.com:+ASM:oracle:11g>ls -l /dev/oracleasm/disks/VOL1_10G
brw-rw---- 1 oracle dba 3, 18 Aug 13 09:54 /dev/oracleasm/disks/VOL1_10G
dbaasm.us.oracle.com:+ASM:oracle:11g>ls -l /dev/oracleasm/disks/VOL2_10G
brw-rw---- 1 oracle dba 3, 22 Aug 13 09:55 /dev/oracleasm/disks/VOL2_10G
5) Then, in the initialization parameter file set the discovery disks string parameter as follow:
asm_diskstring =ORCL:*
Note: Also, you can set it thru the DBCA (during the diskgroup(s) creation) by pressing the [Change Disk Discovery Path]
button.
asm_diskstring = /dev/oracleasm/disks/*
7) As workaround you can setasm_diskstring = /dev/oracleasm/disks/*, this is possible for Oracle 10g Release 2 and onwards since it
can access block devices. Oracle uses O_DIRECT flag, which can be used for opening block devices to bypass the OS cache.
8) If the problem persists, please open a new service request with Oracle support and then please provide us the next information
(from all the nodes if RAC) :
• more /tmp/rbal.trc
• Changing setting
• Verifying Change
• Allocation Units (AU) at the disk level and Extents at the file level
• Default AU size is 1mb
• Default extent size is 1mb
• Extents are allocated in 1, 4, 16, & 64mb chunks (11g)
• Extent placement is circular when disks are the same size
• Cannot be changed without recreating the diskgroup
• Templates can be created and added to diskgroups
• Viewing Template
• select * from V$ASM_TEMPLATE;
• Altering Template
• Alter diskgroup DG modify template NAME attributes (coarse/fine);
• Adding Template
• Alter diskgroup DG add template NAME attributes (attributes);
• Dropping Templates
• Alter diskgroup DG drop template NAME;
View Contents
V$ASM_ALIAS Alias for each disk group mounted by the ASM
instance
V$ASM_CLIENT Identifies databases using disk groups managed by
the ASM instance.
V$ASM_DISK Disks discovered by the ASM instance
V$ASM_FILE File list for each disk group mounted by the ASM
instance
V$ASM_OPERATION Long running operations executing in the ASM
instance
V$ASM_TEMPLATE Templates present in each ASM mounted disk group
cp - Enables you to copy files between ASM disk groups on local instances and
remote instances.
lsdsk -ASM can list disk information with or without a running ASM instance. Also
useful for system or storage administrators to obtain lists of disks that
an ASM instance uses.
md_backup and md_restore - These commands enable you to re-create a pre-existing ASM
disk group with the same disk path, disk name, failure groups, attributes,templates and alias
directory structure. You can use md_backup to back up the disk group environment and use
md_restore to re-create the disk group before loading from a database backup.
remap - You can remap and recover bad blocks on an ASM disk in normal or high redundancy
that have been reported by storage management tools such as disk scrubbers. ASM reads from
the good copy of an ASM mirror and rewrites these blocks to an alternate location on disk.