Hi,
I have several luns connected to the ELM via HBA, and I need to disconnect one that is not in use, the difficulty here is that I can't find any relation between what I can find in the os, and what is seen on the storage side. Any idea how to display lun id on the OS side?
GetSanVolumes - does not do the job
sg_map also nothing
Best Regards
Daniel
Solved! Go to Solution.
Hi
slci - nice tool but still does not show what I need or shows it in some other format, anyway I found a way around that.
sg_inq -p=0x83 /dev/sdd
VPD INQUIRY, page code=0x83:
Only hex output supported
00 00 83 00 1c 01 03 00 10 60 00 09 70 00 02 92 60 ........`..p...`
10 40 33 53 30 33 31 37 43 01 14 00 04 00 00 00 dc @3S0317C........
it will show you a device id, and a wwn
DEVICE | DEVICEWWN |
317C | 60000970000292604033533033313743 |
as on the report above you can see the device id and the wwn of the lun, my aim was to find the wwn in that format, as you can see the highlighted information is the one I was after.
If you have another way to find these please share.
Thanks
Best Regards
Daniel
hi
maybe try the following commands on the ELM:
lspci
lsscsi
GetSanVolumes
i know there is a command line option to connect to the Qlogic card.
i dont have one in my elm so i cant test it.
Hi,
SCLI than Option no. 2
Best Regards
MK
Hi
slci - nice tool but still does not show what I need or shows it in some other format, anyway I found a way around that.
sg_inq -p=0x83 /dev/sdd
VPD INQUIRY, page code=0x83:
Only hex output supported
00 00 83 00 1c 01 03 00 10 60 00 09 70 00 02 92 60 ........`..p...`
10 40 33 53 30 33 31 37 43 01 14 00 04 00 00 00 dc @3S0317C........
it will show you a device id, and a wwn
DEVICE | DEVICEWWN |
317C | 60000970000292604033533033313743 |
as on the report above you can see the device id and the wwn of the lun, my aim was to find the wwn in that format, as you can see the highlighted information is the one I was after.
If you have another way to find these please share.
Thanks
Best Regards
Daniel
You can also try:
systool -c fc_host -v | grep port_name
Best Regards
MK