1840256 Members
2853 Online
110162 Solutions
New Discussion

How to find?

 
unixguy_1
Regular Advisor

How to find?

Dear Friends,

we are maintaing HP Storage Area,I have one file system,The file system name is lv202.

I want to find this is in Which LUN?

Pls any one help to me?

Regards,
Unixguy.
3 REPLIES 3
Johnson Punniyalingam
Honored Contributor

Re: How to find?

Hi,

you do

lvdisplay -v /dev/vgxx/lvol202 |more

Example:-

--- Logical volumes ---
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3096
Current LE 387
Allocated PE 774
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
----> /dev/dsk/c1t2d0 387 387
---> /dev/dsk/c2t2d0 387 387

after that

iocan -fnC disk --> will show which lun,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor

Re: How to find?

Hi,

lvdisplay -v is the correct command to find out the answer of above question.

See the below example

monitor@testbox[/home/monitor] > /usr/sbin/lvdisplay -v /dev/vg_ora_logB_new/lv_origlogB_new
--- Logical volumes ---
LV Name /dev/vg_ora_logB_new/lv_origlogB_new
VG Name /dev/vg_ora_logB_new
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3008
Current LE 47
Allocated PE 47
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c14t0d2 47 47

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c14t0d2 00000 current
00001 /dev/dsk/c14t0d2 00001 current
00002 /dev/dsk/c14t0d2 00002 current
00003 /dev/dsk/c14t0d2 00003 current
00004 /dev/dsk/c14t0d2 00004 current
00005 /dev/dsk/c14t0d2 00005 current
00006 /dev/dsk/c14t0d2 00006 current
00007 /dev/dsk/c14t0d2 00007 current
00008 /dev/dsk/c14t0d2 00008 current
00009 /dev/dsk/c14t0d2 00009 current
00010 /dev/dsk/c14t0d2 00010 current
00011 /dev/dsk/c14t0d2 00011 current
00012 /dev/dsk/c14t0d2 00012 current
00013 /dev/dsk/c14t0d2 00013 current
00014 /dev/dsk/c14t0d2 00014 current
00015 /dev/dsk/c14t0d2 00015 current
00016 /dev/dsk/c14t0d2 00016 current
00017 /dev/dsk/c14t0d2 00017 current
00018 /dev/dsk/c14t0d2 00018 current
00019 /dev/dsk/c14t0d2 00019 current
00020 /dev/dsk/c14t0d2 00020 current
00021 /dev/dsk/c14t0d2 00021 current
00022 /dev/dsk/c14t0d2 00022 current
00023 /dev/dsk/c14t0d2 00023 current
00024 /dev/dsk/c14t0d2 00024 current
00025 /dev/dsk/c14t0d2 00025 current
00026 /dev/dsk/c14t0d2 00026 current
00027 /dev/dsk/c14t0d2 00027 current
00028 /dev/dsk/c14t0d2 00028 current
00029 /dev/dsk/c14t0d2 00029 current
00030 /dev/dsk/c14t0d2 00030 current
00031 /dev/dsk/c14t0d2 00031 current
00032 /dev/dsk/c14t0d2 00032 current
00033 /dev/dsk/c14t0d2 00033 current
00034 /dev/dsk/c14t0d2 00034 current
00035 /dev/dsk/c14t0d2 00035 current
00036 /dev/dsk/c14t0d2 00036 current
00037 /dev/dsk/c14t0d2 00037 current
00038 /dev/dsk/c14t0d2 00038 current
00039 /dev/dsk/c14t0d2 00039 current
00040 /dev/dsk/c14t0d2 00040 current
00041 /dev/dsk/c14t0d2 00041 current
00042 /dev/dsk/c14t0d2 00042 current
00043 /dev/dsk/c14t0d2 00043 current
00044 /dev/dsk/c14t0d2 00044 current
00045 /dev/dsk/c14t0d2 00045 current
00046 /dev/dsk/c14t0d2 00046 current

For this above case lun is /dev/dsk/c14t0d2


Suraj
Johnson Punniyalingam
Honored Contributor

Re: How to find?

Hi UnixGuy,

you need to also assign points for your dear Friends sharing their valuable time and knowledge sharing,

hope you understand,

Thnx

JOhnson
Problems are common to all, but attitude makes the difference