LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to know OracleASM disk mapper to SAN LUN (https://www.linuxquestions.org/questions/linux-server-73/how-to-know-oracleasm-disk-mapper-to-san-lun-4175532190/)

eazlan 01-27-2015 01:00 AM

How to know OracleASM disk mapper to SAN LUN
 
Hi,

I'm using Oracle Enterprise Linux 6.3 with OracleASM and HP SAN P2000. In OS level, when i type "df -h" command i will get below info

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-LogVol00 69G 27G 39G 42% /
tmpfs 7.8G 4.3G 3.5G 56% /dev/shm
/dev/sda1 194M 55M 130M 30% /boot
/dev/mapper/vg00-LogVol01 20G 2.6G 17G 14% /home
/dev/mapper/vg00-LogVol02 45G 22G 21G 52% /opt
/dev/mapper/vg00-LogVol04 15G 5.8G 8.3G 42% /tmp
/dev/mapper/vg00-LogVol05 69G 13G 54G 19% /u01/app
/dev/mapper/vg00-LogVol03 60G 2.9G 54G 6% /var
/dev/mapper/vg00-LogVol06 20G 172M 19G 1% /var/crash
/dev/mapper/vg00-LogVol07 80G 28G 48G 37% /rmanbkp

My question is, for example; how do i know /dev/mapper/vg00-LogVol00 mapped to whis LUN at SAN?

Thanks

grim76 01-27-2015 11:32 AM

ASM handles the drives. You won't see them as a mount point from a systems perspective. Last I knew you have to get to a command line for OracleASM and look at them from there. Once they are put into ASM then it handles them from there.

Edit---

The location that you are talking about does not appear to be an ASM location, but an LVM location. You might want to look at the commands pvdisplay, vgdisplay, and lvdisplay.

p_s_shah 01-27-2015 11:58 AM

Agreed with above reply. Just to elaborate more.

#vgdisplay vg00
#lvdisplay LV00
This will show all devices part of LV00.
#pvdisplay <each device in above ouput>

Once you get device name, you need to utility will give you device (for e.g. /dev/sdc) to lun id and wwn number.
For symmetrix, utility is called "inq", there must be something similar for HP storage array.

http://h20564.www2.hp.com/hpsc/swd/p...&swEnvOid=4103

Please reply back on thread if more info required.

eazlan 01-27-2015 08:46 PM

Sorry. I'm totally a beginner and new to OracleASM. Pls correct me if i'm wrong.
1. pvdisplay
2. vgdisplay
3. lvdisplay

Then?

Example, i want to find info for vg00-LogVol01

Thanks

grim76 01-28-2015 08:36 AM

The volume you are talking about is likely not managed by OracleASM. It is managed by LVM.

Oracle has really good documentation on OracleASM and how to manage it. I would refer to that especially since you are paying for support from Oracle. However, looking at the volume that you are talking about appears to be managed by LVM and not ASM.


All times are GMT -5. The time now is 08:14 AM.