Questions tagged [scsi]

The tag has no usage guidance.

14
votes
1answer
2k views

Why does Linux use SCSI drivers for non-SCSI devices? [duplicate]

Looking at what block device commands like lsblk or blkid return it seems that linux HDD support SCSI drivers regardless of the type of the devices, like a USB flash driver that is presented as ...
10
votes
5answers
22k views

Prevent a USB external hard drive from sleeping

Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing ...
10
votes
3answers
23k views

mptscsih: ioc0: task abort: SUCCESS (rv=2002) causes 30 seconds freezing

I/O to my software RAID6 often freezes for around 30 seconds after which everything is back to normal. After the freeze is over this is put into syslog: Mar 14 18:43:57 server kernel: [35649.816060] ...
9
votes
1answer
6k views

Why do my SATA devices show up under /proc/scsi/scsi?

I have 3 SATA devices on my system. They show up under /proc/scsi/scsi, although these are not SCSI devices. Why do my SATA devices show up under the SCSI directory? $ cat /proc/scsi/scsi Attached ...
8
votes
1answer
14k views

“echo 1 > /sys/block/sdX/device/delete” on all disks except predetermined list

I have a list of scsi disks that I need to remove. The list is considered random at best and changes from time to time. I want to remove everything except a predefined list that I have created. Let's ...
7
votes
1answer
11k views

How can I write raw data to a USB device

I'm attempting to write raw data to a USB device connected to my computer. I'm using Kali Linux, and I found the correct filepath: "/dev/usb/003/013" . However, when I try to write data to it I get ...
7
votes
2answers
1k views

Why does it take so long to detect an usb stick?

I'm writing an initramfs-script and want to detect usb-sticks as fast as possible. When I insert an usb 2.0 stick, the detection of idVendor, idProduct and USB class happens within 100 ms. But the ...
6
votes
1answer
2k views

“Cannot allocate memory” when reading from SCSI tape

I am experimenting with some old SCSI tape drives, and I have successfully written some data to a tape, but I am struggling trying to read it back again. # tar tvf /dev/st0 tar: /dev/st0: Cannot ...
6
votes
2answers
3k views

How to tell if a SCSI device is removable?

In DMESG I see: [sdb] Attached SCSI removable disk How does Linux decide what is removable and not removable? Is there a way I can look up if a device is "removable" or not other than the log, for ...
6
votes
5answers
6k views

How to fix mpt2sas “port enable: FAILED with timeout (timeout=300s)”?

Since having set the drives attached to an LSI SAS 2008 controller to "Power up in standby", these drives are no longer being detected. Power up in standby is also known as PUIS, POIS or "ATA6 power ...
5
votes
1answer
8k views

Match PCI address of SATA controller and SCSI address of attached disks

I have a PCI-attached SATA controller connected to a (variable) number of disks on a machine with a Linux 2.6.39 kernel. I am trying to find the physical location of the disk, knowing the PCI address ...
5
votes
2answers
1k views

How do I make use of unused space on my boot drive on FreeBSD

I have an old FreeBSD Server (running 7.3-RELEASE) that desperately needs additional storage. In fact, it has some-- the original 20G SCSI drives have been replaced by 300G SCSI drives, so in theory ...
4
votes
3answers
61k views

Find scsi device ids under Linux?

How can I list scsi device ids under Linux?
4
votes
4answers
13k views

Locate disk in SAS enclosure

I want to blink the failing device in my 24-disk SAS enclosure. I have found sg_ses --index 7 --set=locate /dev/sg24 which is supposed to identify slot 7. But how do I figure out which slot/index /...
4
votes
2answers
523 views

Getting SCSI Tape Usage Info

I have a SCSI tape (/dev/st0) and I would like to get information about how much of it is used. How can I do that, preferably with a command?
4
votes
1answer
2k views

Unable to edit the /sys/block/sdX/device/queue_depth file

I'm trying to increase my SSD's queue depth value with the following command: echo 64 > /sys/block/sda/device/queue_depth But I receive the following error: bash: echo: write error: Invalid ...
4
votes
2answers
729 views

How to find out what enclosure a disk belongs to?

lsscsi tells me that I have a number of disks and enclosures. I can use $ ls /sys/class/enclosure/6:0:10:0/ArrayDevice*/device/scsi/disk to get a listing of all the scsi addresses of disks under the ...
3
votes
3answers
40 views

SCSI: SAN or local disk?

I have a Debian 9 running. It has a SSD connected as well as a fibrechannel link to a SAN storage. As far I see both are visible as /dev/sdX devices. How can I find out what is the disk and what is ...
3
votes
1answer
641 views

dmesg Output - Mode Sense - Bytes Explanation

Run dmesg and grep on [sda] Mode Sense: to return a row such as this: [sda] Mode Sense: 00 3a 00 00 What do the 4 bytes of data represent 00 3a 00 00? Its likely the answer is contained in a ...
3
votes
2answers
224 views

How to prevent FreeBSD from disconnecting a drive device?

While accessing a drive with high error rates (as, for example, here for opensuse) in FreeBSD, the system eventually disconnects the drive and it disappears from /dev. This makes it impossible to run ...
3
votes
1answer
313 views

My LTO tape drive is slow and “shoe-shines” on FreeBSD

Regardless of what data I write to my LTO-4 tape drive /dev/nsa0, writing is very slow (less than 1 MB/s) and the tape is constantly being wound back and forth in a shoe-shine pattern. No speed ...
3
votes
1answer
1k views

Correspondence between SCSI device entries in /sys and the disks in /dev

Under the /sys/class/scsi_device folder I have the following: root@linux01:/sys/class/scsi_device # ls 1:0:0:0 2:0:0:0 2:0:1:0 3:0:0:0 How can I know how each of these devices is related to the ...
3
votes
2answers
1k views

What is a Linux command that lists only USB storage devices?

I would like to list only the USB storage devices connected to my computer. Since these are SCSI disks, I used the command lsscsi, which lists the USB drives as well as my computer's hard drive and CD ...
3
votes
1answer
4k views

How to check if hot-swap or hot-plug are activated on my Linux machine

I have Ubuntu 12.04.1 LTS 64-bit on a PowerEdge 2900. My current setup has two 300GB disks (no RAID), but I want migrate the system to three new 600GB disks. I'm trying to connect the new disks, make ...
3
votes
1answer
6k views

How to install much newer mpt2sas driver version in debian squeeze?

Linux debian squeeze 6.0.6 (2.6.32-5-amd64) is supplied with quite an old 02.100.03.00 version of the mpt2sas driver. I do wish to install a much newer mpt2sas driver version. In know there are ...
3
votes
2answers
2k views

SCSI Tape drive on ubuntu and centos

On ubuntu 12.10 I have those SCSI drives: [1:0:0:0] cd/dvd TSSTcorp CDDVDW TS-H653N 0208 /dev/sr0 [2:0:0:0] disk Generic USB SD Reader 1.00 /dev/sdb [2:0:0:1] disk Generic ...
2
votes
1answer
2k views

how to tell which disk is sda and which is sdb disk?

from the df -k command, I see sda, sdb, sdc disks. They have some partitions (for example, sda has sda1, sda3). I want to detach sdb and sdc temporarily for OS upgrade. How exactly can I tell which ...
2
votes
2answers
612 views

How to get Linux to completely ignore a SCSI drive?

Similar to this question I a am interested in completely ignoring a drive, but in my case it is one drive which is exposed to the system as a SCSI drive. I have two drives from 21 drives in the server ...
2
votes
2answers
613 views

What does Fedora Workstation 29 use as the default I/O scheduler?

If it depends on the exact type of block device, then what is the default I/O scheduler for each type of device? Background information Fedora 29 includes a Linux kernel from the 4.19 series. (...
2
votes
2answers
15k views

How to detect new hard disk attached without rebooting?

I'm having a little issue. I've a live system which run on RHEL 6.7 (VM) and have VMware 6.5 (which is not managed by our group) . The issue is, the other group tried to extend the capacity of an ...
2
votes
1answer
9k views

tar: /dev/nst0: Cannot write: Input/output error when taking backup

When I try to take backup of data more than 1MB in a tape (LTO3) using tar command it showing me the following error. xyz@localhost# tar -cvf /dev/nst0 file1.tar file1.tar tar: /dev/nst0: Cannot ...
2
votes
2answers
2k views

Are any SCSI modules needed in initrd if only SATA and IDE disks are used?

I am creating a cloning script to automate a minimalistic installation of Cent OS 5.5 on about 100 workstations of various hardware and age (2-10 years). The workstations are all either IDE or SATA. ...
2
votes
1answer
30 views

sd 5:0:0:0: [sda] Attached SCSI disk, what are these four numbers? Will they change?

I can usually see this log in dmesg: sd 5:0:0:0: [sda] Attached SCSI disk Can you please explain what are these 4 numbers? Will these numbers change after reboot? or it should be constant?
2
votes
2answers
157 views

How can I read and extract information from a DDS-1 tape today?

I have a DDS-1 tape (Sony 60M 1.3 GB tape) and am hoping to find a tape drive where I can still read it. The problem is that while I can find the associated compatible tape drives online, I am not ...
2
votes
1answer
5k views

Failed in execute of “lsscsi” command [closed]

I can't execute the "lsscsi" command in linux, I keep getting "command not found" when I try to run it. How can I solve this issue?
2
votes
1answer
2k views

Multipath to a logical volume in a staging VM

How do I configure multipath in testing VM (purpose is purely academical)? I made new logical volume, modified multipath.conf to be as follows: defaults { udev_dir /dev ...
2
votes
1answer
2k views

How to skip/exclude one SCSI bus from scanning during boot?

A "Linux debian 3.2.0-0.bpo.3-amd64 #1 SMP Thu Aug 23 07:41:30 UTC 2012 x86_64 GNU/Linux" system has at least 5 SCSI hosts: root@debian:~# ls /sys/class/scsi_host host0 host1 host2 host3 host4 ...
2
votes
1answer
4k views

Devices get renamed when SATA disk attached

I have an HP xw8200 workstation running linux with two small, fast SCSI drives hooked up to the onboard LSI SCSI controller. The drives get labeled /dev/sda & /dev/sdb in /dev, respectively. I ...
2
votes
1answer
99 views

SCSI LTO4 very slow on CentOS 7

I've replaced my backup server and I switched from a Debian Stretch to a CentOS7. I have a SuperLoader 3 LTO4 SCSI on an old adaptec SCSI 160. At first, I had to use the CentOSplus kernel which add ...
2
votes
1answer
36 views

SCSI's, SATA's, RAID's oh my. Please direct me the wizard of RAID recovery [closed]

I have 4 disks (SATA) that I am 95% certain belong to a raid. The client/boss handed me a box with some disks in them and said recover data, reuse disks. There is another SCSI drive that I suppose ...
2
votes
1answer
4k views

Linux EMC scan Lun not working

We have CX4-120 EMC SAN storage, I expend existing LUN size to 20GB but now i am not able to see any cylinder changes on host fdisk -l output. Following command i am running to re-scan my hda or LUN ...
2
votes
0answers
26 views

Does Linux has a fundamental limitation about using multiple cd/dvd drives simultaneously?

I have two cd/dvd drives in my laptop. One is an external USB drive and the other is the SATA drive that came with it. And I can't burn two DVDs at the same time in both of them at full speed no ...
2
votes
0answers
114 views

/sys/block/sd*/device/timeout not accurate

The default value for the timeout file for SCSI disks is 30, supposedly meaning 30s. In my dmesg logs, I find that the system is waiting 180s before timing out. Setting timeout to various values ...
2
votes
0answers
43 views

Multipath — Ignoring internal disks

I want to configure multipath such that it ignores all the internal disks and only sees SAN Luns. Any idea how can I achieve that? Basically I want to filter out all the internal disks like IDE, SAS ...
2
votes
0answers
124 views

Virtualization and SCSI passthrough

Is there a way to do SCSI passthrough in a virtualized environnement under Linux (Linux being the host OS, and MacOSX being the guest OS)? My goal is to drive a high end scanner for which no driver ...
2
votes
1answer
293 views

Disable SCSI (CAM) device

I want to tell the FreeBSD kernel to completely ignore a SCSI cam(4) device. # cat /var/run/dmesg.boot | grep '\<da1\>' ada0: 600.000MB/s transfers (SATA 3.x, da1 at umass-sim0 bus 0 scbus4 ...
2
votes
0answers
2k views

module scsi_wait_scan not found on CentOS kernel-ml causes kernel panic on boot

I am attempting to upgrade from kernel-lt to kernel-ml, following the instructions here, however on boot the console is flooded with module "scsi_wait_scan" not found This leads to a general kernel ...
1
vote
1answer
2k views

dd outputting: “function not implemented” when trying to write to /dev/sg11

I'm trying to use the following command: dd if=/dev/urandom of=/dev/sg11 bs=16K count=1 But when executing it, I get the following error: dd: writing `/dev/sg11': Function not implemented When I ...
1
vote
1answer
278 views

How to format floppy disks in a USB floppy disk drive on FreeBSD?

I want to format a MF 2HD floppy in a USB floppy disk drive. Since a USB floppy disk drive appears as a da(4) device instead of an fdc(4) device, the standard fdformat utility cannot be used. How ...
1
vote
2answers
94 views

How is reliability achieved with SCSI and SAN?

I am pretty new to SCSI and actually not even sure if this is the correct forum to ask. (I did because I found some SCSI questions :) So please feel free to improve/migrate this question. I am ...