Google it ....

Showing posts with label diskgroup. Show all posts
Showing posts with label diskgroup. Show all posts

Monday, April 27, 2015

How to find mapping of ASM disks to Physical Devices?

Here I'll show you easy way to find which physical device is corresponding for ASM disk.
Login with root user
1) Identify asm disks
/etc/init.d/oracleasm listdisks
DATA01

2) Query disks FOR DATA01
/etc/init.d/oracleasm querydisk -p DATA01
Disk "DATA01" is a valid ASM disk
/dev/sde2: LABEL="DATA01" TYPE="oracleasm"

or find this way

/etc/init.d/oracleasm querydisk -d DATA01
Disk "DATA01" is a valid ASM disk on device /dev/sde2[8,66]
ls -l /dev | grep 8 | grep 66
brw-r----- 1 root disk     8,  66 Jan 11 06:51 sde2

It means that physical partition sde2 is using for ASM disk DATA01.