LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2020, 01:57 PM   #1
CyberArtem
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Rep: Reputation: Disabled
Help needed with a wierd SCSI device with LUN0 and LUN1


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.
 
Old 04-25-2020, 10:50 PM   #2
CyberArtem
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Can a moderator move this thread to - "Linux - Hardware" please
 
Old 04-26-2020, 07:08 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,956
Blog Entries: 13

Rep: Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986Reputation: 4986
@CyberArtem,

Welcome to LQ.

This thread has been moved to Linux Hardware per your request.

For future reference you may use the Report button to request your thread be moved, there is a dialog box where you can type the request details.
 
Old 04-27-2020, 03:00 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
If you can dd the drive by moving the disk to a system then you should be able to use that image on the emulator. I know I did it that way.

DEC used an external enclosure a lot for booting.

Is this a Qbus or Alpha?

Last edited by jefro; 04-27-2020 at 03:01 PM.
 
Old 04-28-2020, 07:09 AM   #5
CyberArtem
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi jefro,

I am using Alpha.
Thanks for the reply, but the problem is not with the disk image or running the openvms. The problem is that the linux and scsi card bios does not identify the lun1 of the scsi device attached. Therefore i cannot pass the lun1 device to the alpha emulator. The disk i am usung was "dd"ed and working fine. I am looking for a way to manually create a scsi lun1 device in linux to which i could then attach a device called gkb101 in openvms.

Thanks ��
 
Old 04-28-2020, 03:30 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
I don't fully get the manually create part.

Depending on distro and hardware this may still be useful. What hardware and distro are you using?


https://linoxide.com/how-tos/how-che...an-disk-linux/

https://www.thegeekdiary.com/how-to-...lying-os-disk/

However the emulator I used was like typical VM's in that you let the host do what it needs and it is transparent to the client. The dd's image would not know what resource it is running on except for how you configured the VM.

Last edited by jefro; 04-28-2020 at 03:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping /proc/scsi/scsi entries with respective device names in /dev/ directory neo3matrix Red Hat 2 04-21-2011 06:56 AM
lifekeeper error: DEVICE FAILURE on SCSI device '/dev/add' yuanjunliang Linux - Server 3 09-17-2009 04:24 PM
How can I access my scsi hdd from dev/scsi/host1/bus0/target0/lun0 ?? marius7sv Linux - Hardware 0 09-06-2004 10:40 AM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM
what's /dev/scsi/host0/bus0/target0/lun0 whutxuan Linux - General 1 05-21-2004 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration