Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [scsi]

The tag has no usage guidance.

0
votes
0answers
10 views

USB SCSI drive recognized, but can't mount

This is a MyBook AV drive that was recording video from my fios box before I cut the cord. I'm trying to use it as a backup drive with a SCSI to USB cable. Ubuntu 18.04. Detected by lsusb and lsscsi, ...
1
vote
1answer
18 views

Can I change LIO SCSI Disk Vendor name

I'm using LIO for SAN scsi. The shared disks shown as LIO-ORG at client side. Example; [root@testing ~]# lsblk -S NAME HCTL TYPE VENDOR MODEL REV TRAN sdc 4:0:0:0 disk LIO-...
2
votes
0answers
23 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 ...
0
votes
1answer
28 views

connected old scsi disk via IDE->USB adapter, recognized in syslog but not fdisk?

I have an old hard disk I'm trying to check for data and format before recycling/donating. I'm using an IDE to USB adapter to connect the disk to my linux laptop. In my syslog I see the following ...
1
vote
1answer
56 views

How to terminate old IBM internal DDS-3 tape drive?

I'm having some difficulty getting an old DDS-3 tape reader working on my Linux workstation. Some details: From the product code that is printed on the label (E30364) I managed to identify the tape ...
2
votes
0answers
60 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 ...
0
votes
0answers
28 views

Shrink LVM2 Thin Volume

I would like to shrink the space required by a thin volume used as a disk for a virtual machine (Windows). Unfortunately, the underlying disk is a USB-attached SSD and therefore mounting the NTFS ...
2
votes
2answers
503 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. (...
0
votes
1answer
383 views

Dealing with Device-Mapper (Multipath) Failing paths

When a disk starts to die slowly multipath starts to Failing & Reinstating paths and this keeps forever.. (I'm using LSI-3008HBA card with SAS-JBOD not FC-Network) Dmesg; Sep 13 11:20:17 DEV2 ...
0
votes
1answer
59 views

How soon will linux notice that a disk has been detached ? And can it be quicker?

I found that if I detach a disk from my Linux server (CentOS 7), the related /dev/sd* file will disappear automatically about 10 seconds later. I'm wondering how does Linux know a disk has been ...
1
vote
0answers
35 views

Drive emulation at driver level

I would like to emulate a virtual SED at driver level. The goal is to develop/simulate the "firmware" of a drive, and map driver interface commands to an app which would handle interface specific ...
0
votes
0answers
52 views

Is the SCSI disk identify info exposed in /sys on Linux?

When looking at the output of sudo strace hdparm -I /dev/sdb on Linux, it looks like hdparm is getting the device serial number using this ioctl: ioctl(3, SG_IO, {interface_id='S', dxfer_direction=...
2
votes
1answer
1k 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 ...
0
votes
1answer
199 views

Why is `ioerr_cnt` rising, without showing any messages in the log?

$ cd /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0 $ ls -l driver subsystem lrwxrwxrwx. 1 root root 0 Apr 5 10:48 driver -> ../../../../../../../bus/scsi/drivers/sd ...
0
votes
0answers
29 views

How to view pending SCSI requests?

If the PC sends a request to read a sector on an optical disc, which turns out to be unreadable, the drive deadlocks the program into responselessness and motionlessness, until it returns the sector ...
2
votes
1answer
88 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 ...
1
vote
1answer
250 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 ...
3
votes
1answer
548 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 ...
0
votes
1answer
106 views

mtx reverses the numbers given to tape drives by CentOS and scsi generic (sg) devices

we have some confusion when we run mtx commands to load a tape from an autoloader slot to tape drive. we have two LTO-5 tape drives connected to our backup server. They are recognized by the ...
1
vote
0answers
107 views

Max transfer size in SG_IO/SG_ATA_16

I need to pass a direct, raw ATA request to a hard drive (0x25, READ DMA EXT), to disobey max sector count (long story), and to bypass all possible OS caches, buffers, reorderings et al. ...
2
votes
2answers
13k 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 ...
1
vote
1answer
211 views

(re)Scanning scsi device works while scanning scsi host doesn't on centOS 6.9

Today I added 1GB of extra space to a virtual disk (basically extended it) in esxi VM. I followed 2 approaches to get the new space recognized: echo "- - -" > /sys/class/scsi_host/host2/scan ...
0
votes
1answer
567 views

How to interpret SCSI device (sd) timeout logs

In /var/log/messages, I find the following log: Oct 23 21:48:53 localhost kernel: sd 3:0:0:0: timing out command, waited 180s Please explain the values that are separated by colons. Also where ...
3
votes
1answer
298 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 ...
0
votes
1answer
295 views

Get SAN Lun Names

My storage administrator assigned LUNS for a RHEL 5.10 Server. Now when I run /sbin/scsi_id -g -u -s /block/sdN, it shows: 360060160c8803500183327ae00a2e711 Now I want to see the exact name, just ...
0
votes
2answers
4k views

How to figure out SCSI_ID on RHEL7

I am running into an issue on a server I am building into a template for Oracle on Red Hat 7. I can't seem to pull in my SCSI IDs of hard drives. Here is what I have tried so far. [root@...
2
votes
2answers
126 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 ...
0
votes
0answers
250 views

Usb storage doesn't mount

I'm connecting my LinkitOne to my arch linux pc, and it doesn't mount. When I'm connecting same Linkit One to windows pc and another arch linux pc it works as it should. Here is dmesg output on my pc ...
1
vote
0answers
1k views

How do I determine the cause of a SCSI device reset?

I found this in /var/log/messages: Jul 27 03:59:46 localhost kernel: sd 3:0:1:0: [sdd] SCSI device reset on scsi3:1 I don't see any other error logs to indicate why the reset occurred. How do I ...
1
vote
1answer
266 views

/proc/scsi/<device> not found, but device is otherwise working

I have a RocketRaid 622 RAID controller card, installed on a machine running Linux Mint 18.2. The drivers have been successfully compiled and installed with dkms, after some customizations to make it ...
2
votes
0answers
42 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 ...
1
vote
1answer
802 views

monitor iops sizes

How to monitor size of the storage iops on a modern Linux ? I'm able to monitor quantity of the storage iops using commands like iostat. However I would like to know the size of the iops which are ...
4
votes
2answers
632 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 ...
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 ...
1
vote
0answers
771 views

Disable disk spindown with sdparm?

I'm using USB drive sat controller so hdparm doesn't fully work for me. How can I disable spindown with sdparm? (equivalent of -B 255, -S 0) lapsio@nuc ~> sudo hdparm -I /dev/sdb /dev/sdb: ATA ...
1
vote
1answer
349 views

Force disk onto /dev/sdX

I'm trying to ddrescue (through rescueCD) a drive, which keeps spinning down. e.g ddrescue -N -n -A -M -f /dev/sdk /dev/sdd mapfile Without rebooting I can get the drive for a short while through ...
3
votes
2answers
566 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 ...
1
vote
2answers
88 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 ...
0
votes
1answer
111 views

How to change the ID number of the SCSI bus

I've 2 disk in RAID1 which is broken. I worked several day thinking the RAID is working and I noted not because several files is missing after a reboot. The odder the disk doesn't want to take its ...
1
vote
1answer
3k views

VMware: `SG_IO: bad/missing sense data` on a fresh SCSI virtual disk

I'm running VMWare Workstation 12.1.1 Pro under Windows 10, with a guest Linux Mint 17.2 with virtual hardware version 11. My only current disk is a virtual SATA. When I add a virtual SCSI device at ...
1
vote
1answer
71 views

Cannot boot up when Adaptec SCSI card is replaced

Current Fedora 19 installation is on an Adaptec 29320 and I am trying to temporarily replace it with an Adaptec 29160. The functionality of the cards is very nearly the same except the replacement is ...
1
vote
1answer
66 views

Batch creating partition then partition node; access failing

So I've got an program that takes a device, partitions it and then creates the device node for the partition. The problem is, that the kernel does not pick up the device until some kind of rescan is ...
4
votes
2answers
487 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?
1
vote
1answer
215 views

Why so many `scsi 4:0:0:0: CDB: Inquiry: 12 00 00 00 24 00` in my message log?

My os is debian8. cat /var/lgo/messages Jul 23 16:56:27 hwy kernel: [ 117.736167] scsi 4:0:0:0: CDB: Jul 23 16:56:27 hwy kernel: [ 117.736168] Inquiry: 12 00 00 00 24 00 so many Jul 23 16:56:...
7
votes
1answer
10k 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 ...
1
vote
1answer
168 views

Bushound alternative for Linux for SCSI logging

I was wondering if anyone knew of a good solution to logging specific SCSI device traffic on Linux? Does anyone knew of a comprable Linux alternative to Window's Bushound? I have looked at already ...
3
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 ...
1
vote
1answer
503 views

Is there a tape drive connected?

I need to know if there is a SCSI tape drive connected to my OpenSUSE Linux server. I tried checking the status of /dev/st0 but got an error message: mt: /dev/st0: Input/output error. /proc/scsi/...
2
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 ...
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 ...