Questions tagged [scsi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
63 views

How to blacklist some scsi devices via a kernel parameter?

I need to tell kernel to completely ignore some SCSI devices (eg. from vendor 'PURE'). I see libata.force=x.yy:disable can be used for individual SATA devices, but I need something equivalent for SCSI ...
user avatar
  • 456
0 votes
0 answers
29 views

How to stop (prevent) scsi kthreads (from) handling some SATA ports

My motherboard gets 6 AHCI ports 1, 3 of them being connected (permanently) to SATA disks. Because I would like to use the free ports for other purposes (than connecting SCSI compatible devices), I ...
user avatar
  • 2,850
0 votes
1 answer
104 views

LVM VG/LV is not activated at system startup

I have two multipath devices configured mpathb (36005076300808b3e9000000000000007) dm-1 IBM,2145 size=16T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw |-+- policy='service-time 0' prio=50 ...
user avatar
0 votes
1 answer
162 views

linux scsi: Unit Not Ready, Sense Key, Hardware Error

I have attached a USB device which is an enclosure for an NVMe M.2 storage unit. Both devices, the enclosure and the media, had been known to be in working order during their last use. When I connect ...
user avatar
  • 172
1 vote
0 answers
29 views

Optical drive suffering from chronic premature ejection

My slot-loading optical drive (HP BDDVDRW CA21N) spins and up and then ejects every disc, a process that takes about 15 seconds. I've found lots of posts on enabling wanted ejects, but close to ...
user avatar
0 votes
0 answers
60 views

Medium Format Corrupted on SSD after SAS failure

Recently some of the servers we use have failed, leading to Sense Key: MEDIUM FORMAT CORRUPTED of the SSD's. The SAS card being used is the HighPoint RR2711. The SAS card is still functional after a ...
user avatar
0 votes
0 answers
76 views

How do I set up a JBOD device on Ubuntu using a SAS card

I am running Ubuntu 20.04 LTS server. I have installed a SAS PCI card I purchased from Amazon. The card is active and detected (lspci shows the device). I have installed the appropriate drivers from ...
user avatar
  • 101
1 vote
1 answer
94 views

sas drive i/o error 5 via raid card - sed locked partition table

I am trying to find a better way to access my newly purchased SAS drives (deepdiscountserver 3tb IBM platters(used or refurb i think yes)), using a 2x4 LSI PCIe3 card. I think the card is only half ...
user avatar
0 votes
1 answer
136 views

How to check if LSI20320IE is working without LTO TAPE in Ubuntu 20.04 LTS

I have done a lspci -vv to check if my Driver for the LSI20320IE SCSI Controller ( Data-Sheet ) is correct installed. (The LSI-drivers are from here MPTLINUX_RHEL4_SLES9_PH14-3.13.04.00-2.zip and I ...
user avatar
0 votes
0 answers
22 views

Mount scsi media changer as standard disk

I want to know if it is possible to mount a LTO tape changer/drive as a standard disk, so that when a file that exists on any of the tapes is requested, the media changer will load the appropriate ...
user avatar
1 vote
0 answers
15 views

Unable to get scsi device path (st) device path for IBM LTO7 drives

when we execute the lsscsi -g |grep -i ult command we get list of all LTO7 drives of IBM company. here we are able to see the st path for the drives. no scsi id's generated for lto7 drives. its ...
user avatar
0 votes
1 answer
47 views

Why the subsystem of a SATA device is scsi?

By doing udevadm info -a /dev/sda we can see something like: looking at parent device '/devices/pci0000:3d/0000:3d:02.0/0000:60:00.0/host6/port-6:0/end_device-6:0/target6:0:0/6:0:0:0': KERNELS==&...
user avatar
  • 391
1 vote
1 answer
328 views

How the h c t l numbers read from in lsscsi?

When doing lsscsi: $lsscsi [0:0:2:0] disk FUJITSU MAM3184MP 0105 /dev/sda [1:0:0:0] cd CREATIVE CD5233E 1.00 /dev/scd0 In my understanding: H : SCSI host id C : SCSI channel T : Target Number L : ...
user avatar
  • 391
7 votes
1 answer
590 views

Tape readable with scsitape but not dd or tar, why?

I just installed an Exabyte tape drive: $ lsscsi -g [11:0:0:0] process Marvell 91xx Config 1.01 - /dev/sg0 [12:0:1:0] cd/dvd TOSHIBA CD-ROM XM-3401TA 0283 /dev/sr0 /dev/sg1 [...
user avatar
1 vote
1 answer
153 views

add new disk in /etc/tgt/targets.conf and reload without affect other disks/initiator hosts

I have added a new disk to the server: [root@ns1 tgt]# lsblk |grep sdh sdh 8:112 0 600M 0 disk Also, I have created a new entry for /dev/sdh in /etc/tgt/targets.conf [root@ns1 tgt]# cat /...
user avatar
  • 369
1 vote
0 answers
84 views

Monitoring the activity of tape drive with SCSI generic driver (sg)

I would like to monitor statistics (transfer rate, byte/sec) for each LTO tape drive connected to Linux system. I understand that tapestat command can exactly do this, but this shows the activity of ...
user avatar
0 votes
1 answer
69 views

What does mean host in lsscsi command?

A notebook has only one SSD (without CDROM drive) if I take a look at /proc/scsi/scsi it outpus: Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: KINGSTON SUV500M Rev: 56RI Type: ...
user avatar
  • 3,969
1 vote
2 answers
256 views

dmesg shows 0 512-byte logical blocks

Last week I unfortunatly dropped by external HDD drive and it wouldn't spin up anymore. I got other backups, so I thoughed I opened it up so see whats wrong. The read/write head was stuck and damaged, ...
user avatar
  • 11
2 votes
2 answers
147 views

Parallel SCSI target mode - how to make Linux/BSD behave like a hard drive?

I use many old parallel SCSI(-1/-2) devices (many "Fast SCSI-2", 10MB/s, 8 bit wide), which I want to attach to a modern computer via a classic Adaptec PCI SCSI host adapter in "target ...
user avatar
  • 21
1 vote
0 answers
86 views

Linux + how to simulate JBOD disks that are out of service in shelf

We have Kafka machines installed with RHEL 7.2 servers on Dell HW and a shelf includes 15 disks. We want to understand what happens when we push out one of the Kafka disks, and see if Kafka is still ...
user avatar
  • 11.1k
1 vote
1 answer
182 views

QEMU virtio-scsi: Cannot see the number of queues after booting VM with virtio-scsi command

QEMU newbie here. I am trying to boot a VM using QEMU, for increased performance I am trying to use a virtio-scsi mounted drive. I am following the steps given here. However when I boot my VM and I ...
user avatar
2 votes
1 answer
483 views

Testing LTO drive with mt and dd

Here are my commands mt -f /dev/st0 rewind dd if=/dev/st0 of=- As I understand it the first command rewinds my tape in /dev/st0, and the second command writes contents of /dev/st0 to -. My questions ...
user avatar
2 votes
1 answer
460 views

How do you determine the remaning capacity of a magnetic tape with mt or tar? How much space is in a block?

I am currently trying to back up data onto an LTO-4 tape using mt-st and gnu tar 1.32, but I want to make sure I stop trying to copy things before the tape runs out! LTO-4 nominally has a capacity of ...
user avatar
2 votes
4 answers
1k views

SATA disk drive behind Adaptec RAID 5405 can't be detected as block device

Due to shortage of free built-in SATA 3.0 plugs (6 totally) on my motherboard (Gigabyte 970A-DS3 rev.3) I've got an Adaptec RAID 5405 (3G SAS/SATA RAID) to move all "slow" SATA 1.0/2.0 ...
user avatar
0 votes
1 answer
105 views

Can't see /proc/scsi/sg folder in the Yocto file system

I'm using a Yocto image on an iMX6 SoC ev-board and I would like to write a C code to access the USB storage device via sg driver. Since I need to access the logical blocks of the storage directly ...
user avatar
  • 35
1 vote
0 answers
134 views

SCSI Host number persitence

I have two identical VM servers in VMware. I want to somehow distinguish assigned disk to these VMs (disks for LVM, for DB data, ...). But for some reason H:C:T:L addresses on these hosts differ. [...
user avatar
  • 131
0 votes
0 answers
95 views

Cannot suspend because cdrom_id and udevd are in uninterruptible sleep

I upgraded the Linux kernel on my Gentoo Linux system from 4.9.76 to 5.4.38 about two weeks ago. Since then, my dvd drive will stop spinning up when I insert a dvd and my laptop can no longer suspend ...
user avatar
1 vote
0 answers
1k views

FAILED Result: hostbyte=DID_SOFT_ERROR driverbyte=DRIVER_OK

What does it mean DID_SOFT_ERROR? According to kernel source, it defined: #define DID_SOFT_ERROR 0x0b /* The low level driver just wish a retry */ https://github.com/torvalds/linux/blob/...
user avatar
  • 595
1 vote
0 answers
363 views

virsh attach-disk only work with name vd* instead of sd*

I have an qcow2 image and want to attach another disk to it. # create new qcow2 disk qemu-img create -f qcow2 vm-disk2 500G Then I attach it as sdb: virsh attach-disk myvm /var/lib/libvirt/images/...
user avatar
  • 1,655
0 votes
1 answer
36 views

scsi_host interconnects

Can you please explain storage interconnects with respect to Linux. What are exactly scsi_host0, host1, host2, etc. I recently checked on a VM that had around 39 hosts present in /sys/class/scsi_hosts/...
user avatar
  • 9
3 votes
0 answers
68 views

How does a block device driver handle IO errors

When a block device gets a request to read a range of sectors, and one of those sectors has a read failure, how does the driver signal to the kernel that a partial read is available, and that the ...
user avatar
3 votes
1 answer
1k 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?
user avatar
  • 595
1 vote
0 answers
72 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 ...
user avatar
3 votes
3 answers
942 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 ...
user avatar
  • 489
1 vote
0 answers
139 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/...
user avatar
0 votes
1 answer
198 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 ...
user avatar
  • 389
3 votes
0 answers
1k 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, ...
user avatar
1 vote
1 answer
352 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-...
user avatar
  • 389
2 votes
0 answers
117 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 ...
user avatar
0 votes
1 answer
357 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 ...
user avatar
1 vote
1 answer
110 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 ...
user avatar
  • 221
3 votes
0 answers
725 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 ...
user avatar
0 votes
0 answers
246 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 ...
user avatar
2 votes
2 answers
2k 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. (...
user avatar
  • 44.5k
0 votes
1 answer
4k 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 ...
user avatar
  • 389
0 votes
1 answer
107 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 ...
user avatar
  • 111
1 vote
0 answers
41 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 ...
user avatar
  • 11
8 votes
1 answer
13k 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 ...
user avatar
  • 281
0 votes
1 answer
736 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 ...
user avatar
  • 44.5k
0 votes
0 answers
46 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 ...
user avatar
  • 1,616