Wednesday, April 29, 2015

How to find out mapped oracle ASM disk.

First you need enter into root.

sudo su -

Then change directory into cd /etc/init.d

[root@test200 init.d]# ./oracleasm listdisks

If you want find which ASM disk is mapped which device, then you must use oracleasm querydisk with ASM disk name.

[root@test200 init.d]# oracleasm querydisk -d DATA01
Disk "DATA01" is a valid ASM disk on device [8,15]

As see you, DATA01 is valid ASM disk on device [8,15].

What is means?
It means DATA01 is mapped to device [8,15].

How to find [8,15] device?
We must use Linux ls –l  command as below.

[root@test200 init.d]# ls -l /dev/* | grep 8, | grep 15
brw-rw---- 1 root disk      8,  15 Jan  12 13:22 /dev/sdf

Now, we can say DATA01 is mapped to /dev/sdf

No comments:

Post a Comment