Questions tagged [scsi]

The tag has no usage guidance.

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 ...
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?
1
vote
0answers
15 views

How to identify the disks of a Linux virtual machine in VMware vSphere 6

I have a virtualized RHEL7 server with vsphere 6, I need to remove some virtual disks from vCenter that are presented to my virtual machine (rhel server) that are no longer being used by the operating ...
3
votes
3answers
39 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 ...
0
votes
1answer
28 views

How to get host “client” initiator wwn's from FC SAN card & switch

I saw an IBM San Storage and at Host alias creation page they can show you available host (client) initiators wwn's to choose. And I wonder how they can find client initiator wwn's from storage? I ...
1
vote
0answers
17 views

how to make sure SCSI is properly freed

I have external SSD that I want to safely remove (as part of automation): lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 89.3M 1 loop /snap/core/...
0
votes
2answers
5k 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@...
1
vote
0answers
67 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
31 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
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 ...
0
votes
1answer
55 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
59 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
2answers
612 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
0answers
112 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
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 ...
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 ...
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 ...
0
votes
0answers
67 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 ...
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 ...
2
votes
2answers
155 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
1answer
628 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
61 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 ...
4
votes
2answers
726 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 ...
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 ...
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 ...
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
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 ...
0
votes
1answer
241 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
30 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 ...
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
1answer
294 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 ...
3
votes
2answers
223 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
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
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 ...
3
votes
1answer
640 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
131 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
127 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. ...
1
vote
1answer
249 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
662 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 ...
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 /...
0
votes
1answer
344 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
0answers
262 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
2k views

How does SMART work for scsi device?

After going through the man pages of smartctl, smartd and smartd.conf, I am no clearer on how S.M.A.R.T. is supposed to work on a scsi device. I have a default configuration file that says: ...
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 ...
1
vote
1answer
885 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 ...
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
847 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
375 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 ...
0
votes
1answer
148 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 ...