Questions tagged [scsi]

Small Computer System Interface (SCSI, pronounced skuz-ee) is a set of parallel interface standards developed by the American National Standards Institute (ANSI) for physically connecting and transferring data between computers and peripheral devices(like printers, disk drives, scanners and other). It is a fast bus and supported by all major operating systems.

Small Computer System Interface (SCSI, pronounced skuz-ee) is a set of standards for physically connecting and transferring data between computers and peripheral devices. The official name of the SCSI standard is: ANSI X3.131.

The SCSI standards define commands, protocols, and electrical and optical interfaces. SCSI uses a low-voltage differential (LVD) bus, a method where data is transmitted by comparing the difference in voltage between a pair of wires. SCSI is most commonly used for hard disks and tape drives, but it can connect a wide range of other devices, including scanners and CD drives.

Some important features:

  • SCSI is capable of supporting eight devices, or sixteen devices with Wide SCSI.
  • The latest version, 16-bit Ultra-640 (Fast-320) SCSI has a 640 MBps transfer speed.
  • SCSI standards are generally backward-compatible.

Common SCSI components:

  • Initiator - it issues requests for service by the SCSI device and receives responses.
  • Target - A SCSI target is typically a physical storage device like a hard-disk or a storage array
  • Service delivery subsystem - it allows communication to occur between the initiator and the target

The SCSI subsystem has a 3 level architecture with the "upper" level being closest to the user/kernel interface while the "lower" level is closest to the hardware.

For more info: http://en.wikipedia.org/wiki/SCSI

181 questions
1
vote
1 answer

COMPARE AND WRITE on umapped block?

The COMPARE AND WRITE command description in the SBC-4 doesn't say anything about the case when the range of logical blocks to be replaced contains unmapped blocks. What's the common practice to deal with this case on the target side? Should a…
HEKTO
  • 3,876
  • 2
  • 24
  • 45
1
vote
1 answer

Regarding SCSI Reservations

I am trying to write a program to block a LUN using SCSI 2 reservations. In SCSI 2 reservations, can the LUN be reserved by the same host with a different path or the I-T-L nexus is only a single path. Eg : Lets say the host tries to reserve the…
lokesharo
  • 305
  • 2
  • 11
1
vote
1 answer

Meaning of the PMI bit in the SCSI READ CAPACITY command

I'm looking at the SBC-3 item 5.15 (READ CAPACITY (10) command). The description of the PMI bit (bit 0 of byte 8 in the CDB) is copied below: "A PMI bit set to one specifies that the device server return information on the last logical block after…
HEKTO
  • 3,876
  • 2
  • 24
  • 45
1
vote
1 answer

For SCSI, was there a change to the definition of ADDITIONAL LENGTH?

I am reading the SCSI SPC4r22. In regards to ADDITIONAL LENGTH all revisions prior to spc3 have stated the following ("shall not be adjusted"): From spc2r20.pdf: "The ADDITIONAL LENGTH field shall specify the length in bytes of the parameters. If…
eddyq
  • 879
  • 1
  • 13
  • 25
1
vote
1 answer

Why does SCSI standard allow a device to have both multiple "ports" and multiple "logical units"?

I'm trying to understand the low-level details of SCSI. The SCSI standards (such as the SAM-5 SCSI Architecture document) state that a single SCSI device can have multiple "target ports", and also multiple "logical units". When an initiator sends a…
Alex D
  • 29,755
  • 7
  • 80
  • 126
1
vote
0 answers

USB SCSI Inquiry and RequestSense

I am currently writing USB(EHCI) driver for pendrives in assembly for my OS. I can successfully get the Device-, String-, Configuration(Interface and Endpoint)-descriptors. However, the SCSI Inquiry and other commnads fail. This is what I do (after…
rob
  • 21
  • 3
1
vote
2 answers

ISCSI multiple connections using the same initiator IQN

Is it possible for multiple computers to connect to the same target at the same time, using the same initiator IQN? Thank you.
Casteurr
  • 956
  • 3
  • 16
  • 35
1
vote
1 answer

SCSI sense data formats and MODE SENSE control page

The SCSI reference manual defines two types of sense data formats - fixed and variable descriptor-based ones (chapter 2.4). The "Control Mode Page (0Ah)" (4.3.8), which is supposed to be returned as a response to the MODE SENSE SCSI command,…
HEKTO
  • 3,876
  • 2
  • 24
  • 45
1
vote
0 answers

DeviceIOControl error with LTFS on Windows

I am trying to use my HP LTO drive with the LTFS wizard in Windows. I get the following errors (Windows 7 32-bit and Windows Server 2008 32-bit): LTFS15000I Starting mkltfs, HP StoreOpen Standalone version 2.2.0, log level 2 LTFS15041I Launched by…
user553702
  • 2,819
  • 5
  • 23
  • 27
1
vote
1 answer

Sense Key for ASC/ASCQ Numbers

In SCSI Interface errors are recognized by concatenation of 3 numbers: SenseKey + ASC + ASCQ. asc/ascq pair description describes the meaning of all errors based on asc/ascq values. But not all asc/ascq pairs have meaning with all sense keys. How…
user1284064
  • 175
  • 2
  • 9
1
vote
1 answer

raw hard disk acces /dev/sd[x] vs /dev/sg[y]?

I have been working on a program which reads data from harddisks. And I wonder is it better to use the sda device or the sg0 device? I understand that sg0 is better used if you are gonna do things like use the sg driver for such things as inquirys…
user2882307
1
vote
1 answer

algorithm to get scsi id as page 0x83

What is the algorithm used to create page 0x83 SCSI id # scsi_id --whitelisted --page=0x83 --device=/dev/sdjj 3600a0980443175414a3f4443364d5638 # that is used in the corresponding soft link /dev/disk/by-id/scsi-3600a0980443175414a3f4443364d5638…
konstan
  • 11
  • 2
1
vote
2 answers

Is there any equavalent of sg3_utils for windows

Is there an equivalent of sg3_utils for windows? I need to query the Page 83 information of a physical disk and read it's LUN name.
mhsundar
  • 53
  • 1
  • 6
1
vote
1 answer

Not getting host, id, channel number of scsi

I am writing a program which will print host, channel number, id number, lun of a SCSI device. cat /proc/scsi/scsi giving the information about it. But i want print it through c program. I'm getting vendor id, device type, revision level... but…
gangadhars
  • 2,584
  • 7
  • 41
  • 68
1
vote
1 answer

Get virtual SCSI hardware on servers using Powershell

I'm trying to use Powershell to get SCSI hardware from several virtual servers and get the operating system of each specific server. I've managed to get the specific SCSI hardware that I want to find with my code, however I'm unable to figure out…
Valrok
  • 1,514
  • 7
  • 30
  • 49