LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-17-2011, 11:18 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,068

Rep: Reputation: 45
SCSI emulation: how can I know if its being used?


kernel 2.6.21.5, slackware 12.0

Hi:
How could I know if the OS uses scsi emulation or not?
How can I know
 
Old 09-17-2011, 11:56 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,079

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
type 'mount'
if your devices (including any IDE devices) are listed as /dev/sdX and they aren't scsi then probably scsi emulation is being used, though i believe this is default for most distributions, even LFS uses scsi emulation these days.
 
Old 09-18-2011, 12:04 AM   #3
tristezo2k
LQ Newbie
 
Registered: Oct 2009
Distribution: debian ubuntu solaris FreeBSD
Posts: 26

Rep: Reputation: 4
There are AFAIK three ways to think scsi in the linux kernel
- The true scsi, that is a hardware piece that acts as an scsi target such as those adaptec.
- the sg devices, that is some devices are accessed using scsi commands such as midi, synthetizers, and such
- the scsi to ata layer.
I am not sure if this is a good way to put it, but is what comes to my mind now
So, short answer, more or less all the disk you have are accessed using scsi commands, that translates to the native commands.

Out of boredom I have just setup a debian 6.0 64bits vm at virtualbox.
I added PATA, Sata (AHCI), 2 x true scsi (lsilogic and buslogic), a SAS controller and one iscsi device. This is the lsscsi output
This are the kernel names for the disks
root@debian:~# lsscsi -k
[0:0:0:0] disk VBOX HARDDISK 1.0 /dev/sdb
[1:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda
[2:0:0:0] cd/dvd VBOX CD-ROM 1.0 /dev/sr0
[3:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdc
[4:0:0:0] disk VBOX HARDDISK 1.0 /dev/sdd
[5:0:0:0] disk VBOX HARDDISK 1.0 /dev/sde
[6:0:0:0] disk OPNFILER VIRTUAL-DISK 0 /dev/sdf

And this are the "hosts"
root@debian:~# lsscsi --hosts -v
[0] BusLogic
dir: /sys/class/scsi_host/host0
device dir: /sys/devices/pci0000:00/0000:00:15.0/host0
[1] ata_piix
dir: /sys/class/scsi_host/host1
device dir: /sys/devices/pci0000:00/0000:00:1f.1/host1
[2] ata_piix
dir: /sys/class/scsi_host/host2
device dir: /sys/devices/pci0000:00/0000:00:1f.1/host2
[3] ahci
dir: /sys/class/scsi_host/host3
device dir: /sys/devices/pci0000:00/0000:00:1f.2/host3
[4] mptspi
dir: /sys/class/scsi_host/host4
device dir: /sys/devices/pci0000:00/0000:00:14.0/host4
[5] mptsas
dir: /sys/class/scsi_host/host5
device dir: /sys/devices/pci0000:00/0000:00:16.0/host5
[6] iscsi_tcp
dir: /sys/class/scsi_host/host6
device dir: /sys/devices/platform/host6

As you can see sata, sas, iscsi, and ahci devices are mapped to a virtual scsi device and accessed as SCSI.
Thanks for letting me play with this a while. It had been a while since I had had so much fun

Regards
Sebastian
 
Old 09-18-2011, 12:22 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,068

Original Poster
Rep: Reputation: 45
Hi: and thanks for your post. I think slackware does not mount optical media at boot. My problem is cdrecord, which does not recognize the device. But I solved it this way, for the time being at least. Notice I'm using slack 9.1 and current is 13.x:

a) I added line 'append= "hdc=ide-scsi" in lilo.conf
b) I made the soft links
/dev/cdrom -> /dev/hdc -> /dev/scd0

Now I run 'cdrecord -toc dev=0,0,0' and this does it. But I'm not convinced about b) being necessary.
 
  


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
SCSI emulation brokenflea Slackware 8 02-20-2005 07:11 PM
SCSI Emulation???? don_dimo Linux - Software 2 12-31-2004 03:28 AM
scsi emulation h/w Linux - Hardware 5 09-11-2003 04:13 PM
SCSI Emulation Odd_Bloke Linux - Newbie 7 09-07-2003 12:15 AM
scsi emulation one Slackware 6 09-06-2003 06:12 PM


All times are GMT -5. The time now is 05:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration