Results 1 to 3 of 3
what's up everyone. I am having an issue that I hope you can help with. I need determine which LUN (from an external fibre array) is mounted to a specific ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-02-2004 #1
- Join Date
- Aug 2004
LUN device mapping
/proc/scsi/scsi shows me the available luns
fdisk -l shows me the physical volumes/devices
but nowhere can I see the correlation between the both of the them
if /dev/sdd1 is using LUN 4, then I want to know that
Any help would be greatly appreciated.
- 08-03-2004 #2
Maybe sg3-utils is what you look, for, the sg_scan gives nice output, look here for example:
oh, btw, if you're compiling you'r own kernel, don't forget to make sure the Query all LUNs option under SCSI is set to 'y' - or you'll only seen the one attached to LUN=0 (I've had this problem myself - took a while to figure out)
Originally Posted by http://vic.dyndns.org/linux-UsbMassStorage/Regards Scienitca (registered user #335819 - http://counter.li.org )
A master is nothing more than a student who knows something of which he can teach to other students.
- 02-07-2012 #3
- Join Date
- Feb 2012
Old posts are usefull... Thank you.
Folowing this, I found the solution, with only one sg command :
[root@pouetpouet ~]# sg_map -x
/dev/sg0 0 0 0 0 0 /dev/sda
/dev/sg1 0 0 1 0 0 /dev/sdb
/dev/sg2 0 0 2 0 0 /dev/sdc