Help needed with a wierd SCSI device with LUN0 and LUN1
by CyberArtem from LinuxQuestions.org on (#52NP3)
Hello All,
I need some help from you guys regarding some SCSI device or SCSI configuration.
I am working on a project to migrate a DEC OpenVMS system to emualtion on X86 (linux)
All works great except one thing, i have an external non standard SCSI device which was connected to DEC system.
The device is a "processor" type SCSI-2 device which sits on ID 1 and has LUN0 and LUN1.
On DEC system the SCSI device worked great, DEC system had two devices configured
GKB100 and GKB101 which corresponds to the SCSI device on ID1 and LUN0 and LUN1.
The GKB100 and GKB101 devices were always present , even if no SCSI device was connected.
Now on X86 sysem, i must have the SCSI device connected to it in order for SCSI bios to detect the device and the LUNs for Linux to "see" them as "sg0" and "sg1"
But looks like the SCSI device is not responding on LUN1 only on LUN0.
Therefore the Linux "see" only "sg0".
Now , i know there are LUN0 and LUN1 it's just the wierd SCSI device will not "allow" to detect it's LUN1.
The question is how i can create two devices in Linux regardless of SCSI bios detection to be able to work with both LUN0 and LUN1.
Clearly the DEC system works wihtout detecting the LUNs, it just sends the SCSI packets with ID1 LUN0 or LUN1 to the SCSI bus.
Thanks !
BR,
- Artiom.


I need some help from you guys regarding some SCSI device or SCSI configuration.
I am working on a project to migrate a DEC OpenVMS system to emualtion on X86 (linux)
All works great except one thing, i have an external non standard SCSI device which was connected to DEC system.
The device is a "processor" type SCSI-2 device which sits on ID 1 and has LUN0 and LUN1.
On DEC system the SCSI device worked great, DEC system had two devices configured
GKB100 and GKB101 which corresponds to the SCSI device on ID1 and LUN0 and LUN1.
The GKB100 and GKB101 devices were always present , even if no SCSI device was connected.
Now on X86 sysem, i must have the SCSI device connected to it in order for SCSI bios to detect the device and the LUNs for Linux to "see" them as "sg0" and "sg1"
But looks like the SCSI device is not responding on LUN1 only on LUN0.
Therefore the Linux "see" only "sg0".
Now , i know there are LUN0 and LUN1 it's just the wierd SCSI device will not "allow" to detect it's LUN1.
The question is how i can create two devices in Linux regardless of SCSI bios detection to be able to work with both LUN0 and LUN1.
Clearly the DEC system works wihtout detecting the LUNs, it just sends the SCSI packets with ID1 LUN0 or LUN1 to the SCSI bus.
Thanks !
BR,
- Artiom.