blk_update_request: I/O error, dev sdb, sector 976772992 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

Bug #1856434 reported by Clinton H
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) Ubuntu 19.10
2) unknown
3) no error
4) error in log app.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: htpc 9157 F.... pulseaudio
 /dev/snd/controlC1: htpc 9157 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-10-28 (48 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
IwConfig:
 lxcbr0 no wireless extensions.

 lo no wireless extensions.

 enp3s0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. GA-MA780G-UD3H
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-23-generic root=UUID=0fa008d8-2279-4e78-9043-161b7f514243 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.3.0-23.25-generic 5.3.7
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-23-generic N/A
 linux-backports-modules-5.3.0-23-generic N/A
 linux-firmware 1.183.2
RfKill:

Tags: wayland-session eoan
Uname: Linux 5.3.0-23-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 07/13/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6b
dmi.board.name: GA-MA780G-UD3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6b:bd07/13/2010:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA780G-UD3H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA780G-UD3H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-MA780G-UD3H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1856434

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Clinton H (49studebaker) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected eoan wayland-session
description: updated
Revision history for this message
Clinton H (49studebaker) wrote : CRDA.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : Lspci.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : Lsusb.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : ProcModules.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : PulseList.txt

apport information

Revision history for this message
Clinton H (49studebaker) wrote : UdevDb.txt

apport information

Clinton H (49studebaker)
Changed in linux (Ubuntu):
status: Incomplete → Opinion
status: Opinion → Confirmed
Revision history for this message
Clinton H (49studebaker) wrote :

/dev/sdb1 is my external usb HDD. In disks, I set it to standby after 10 minutes. What do those errors mean?

Revision history for this message
T. Scheller (tschell) wrote :

Good morning,

i have about 20 new hardware servers from Dell with HBA330 Controller and NL-SAS Disk for a storage server setup.
OS is Ubuntu 18.04.4 LTS with kernel Linux server01 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3

I am with this error message not able to format any of the 12 x 8TB Drives.

Error-Logs from syslog:

Mar 18 09:30:30 server01 kernel: [669635.089535] mpt3sas_cm0: log_info(0x3112043b): originator(PL), code(0x12), sub_code(0x043b)
Mar 18 09:30:30 server01 kernel: [669635.089563] sd 2:0:3:0: [sde] tag#2508 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_SENSE
Mar 18 09:30:30 server01 kernel: [669635.089570] sd 2:0:3:0: [sde] tag#2508 Sense Key : Illegal Request [current]
Mar 18 09:30:30 server01 kernel: [669635.089576] sd 2:0:3:0: [sde] tag#2508 Add. Sense: Logical block reference tag check failed
Mar 18 09:30:30 server01 kernel: [669635.089582] sd 2:0:3:0: [sde] tag#2508 CDB: Read(32)
Mar 18 09:30:30 server01 kernel: [669635.089587] sd 2:0:3:0: [sde] tag#2508 CDB[00]: 7f 00 00 00 00 00 00 18 00 09 20 00 00 00 00 03
Mar 18 09:30:30 server01 kernel: [669635.089592] sd 2:0:3:0: [sde] tag#2508 CDB[10]: a3 81 2a 00 a3 81 2a 00 00 00 00 00 00 00 00 08
Mar 18 09:30:30 server01 kernel: [669635.089604] blk_update_request: protection error, dev sde, sector 15628052992 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Mar 18 09:30:30 server01 kernel: [669635.091790] Buffer I/O error on dev sde, logical block 1953506624, async page read
Mar 18 09:30:30 server01 kernel: [669635.097186] mpt3sas_cm0: log_info(0x3112043b): originator(PL), code(0x12), sub_code(0x043b)
Mar 18 09:30:30 server01 kernel: [669635.097208] sd 2:0:4:0: [sdf] tag#604 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_SENSE
Mar 18 09:30:30 server01 kernel: [669635.097211] sd 2:0:4:0: [sdf] tag#604 Sense Key : Illegal Request [current]
Mar 18 09:30:30 server01 kernel: [669635.097214] sd 2:0:4:0: [sdf] tag#604 Add. Sense: Logical block reference tag check failed
Mar 18 09:30:30 server01 kernel: [669635.097216] sd 2:0:4:0: [sdf] tag#604 CDB: Read(32)
Mar 18 09:30:30 server01 kernel: [669635.097218] sd 2:0:4:0: [sdf] tag#604 CDB[00]: 7f 00 00 00 00 00 00 18 00 09 20 00 00 00 00 03
Mar 18 09:30:30 server01 kernel: [669635.097220] sd 2:0:4:0: [sdf] tag#604 CDB[10]: a3 81 2a 00 a3 81 2a 00 00 00 00 00 00 00 00 08
Mar 18 09:30:30 server01 kernel: [669635.097223] blk_update_request: protection error, dev sdf, sector 15628052992 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

Every task to format the drive or wipe the drives ends up with tons of messages like this in syslog.

Thx for any hint or solution to that problem.

Best,

Timo

Revision history for this message
Rafael Lopez (rafael.lopez) wrote :

Hello Timo,

Did you find a solution to this problem?

We are seeing the exact same scsi errors on our dell servers with H330 controller as well, on 18.04, 14T drives.

We have installed RHEL7 on other exact same spec servers, but the issue is not present so it might be particular to Ubuntu and/or later kernels.

Regards,
Rafael

Revision history for this message
Jonathan Lam (jlam55555) wrote :

Hi Timo and Rafael,

I'm not a sysadmin, but just a hobbyist who ordered a used SAS Hitachi hus723030als641. I'm experiencing the same thing (`blk_update_request: protection error` and `blk_update_request: i/o error` on Archlinux and Ubuntu). Also, in Windows 10, I am able to view the drive, but have trouble formatting it.

Does this have anything to do with the read protection on the SAS drive? I was searching around and found the `sg_format` command. Running `sg_format /dev/sdX` reports that the drive has read protection on. I'm not entirely sure what that means, but I'm currently trying to format the drives with `sg_format /dev/sdX --format` (which, if I understood the manpages correctly, I believe will unset the protection bit). Will let you know in a few hours when it completes. In the meantime, do you know anything about whether this SCSI protection level business is related to the error at hand? I don't understand it very well and I can't seem to find much useful information on it on the web, so any input would be appreciated.

Thanks,
Jonathan

Revision history for this message
Jonathan Lam (jlam55555) wrote :

Update: performing the format worked for me (removing the read protection removed the blk_update_request errors on Ubuntu). I'm not particularly concerned about encryption, so I'll probably leave it off, but maybe in your case you need some additional packages on Ubuntu to support the self-encryption.

Jonathan

Revision history for this message
Clinton H (49studebaker) wrote :

"I'm not particularly concerned about encryption, so I'll probably leave it off, but maybe in your case you need some additional packages on Ubuntu to support the self-encryption."

My drive is not encrypted.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Is any kind of power saving feature enabled?

Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

Similar issue is found in VM ubuntu-20.04-live-server in ESXi 7.0GA
   blk_update_request: I/O error, dev sda, sector 3270728 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0

Attach the dmesg info.
sda means the system disk.

Steps:
1) install guestOS with ubuntu-20.04-live-server-amd64.iso in ESXi 7.0GA
2) Follow the wizard to finish installation
3) I take no any operations on the VM. Sometimes the console output message:
   blk_update_request: I/O error, dev sda, sector 3270728 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0

   output from command "dmesg"
   [ 313.011817] blk_update_request: I/O error, dev sda, sector 3270672 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0
   [ 357.810551] sd 3:0:0:0: [sda] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
   [ 357.810557] sd 3:0:0:0: [sda] tag#19 Sense Key : Vendor Specific(9) [current]
   [ 357.810560] sd 3:0:0:0: [sda] tag#19 <<vendor>>ASC=0x80 <<vendor>>ASCQ=0x85
   [ 357.810562] sd 3:0:0:0: [sda] tag#19 CDB: Write same(16) 93 08 00 00 00 00 00 31 e8 48 00

Same error message when sda is NVMe disk, PVSCSI, SAS disk. So this issue should be not related to virtual disk type.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

vmware deve's comment for the issue "blk_update_request: I/O error, dev sda, sector 3270728 op 0x9 VM ubuntu-20.04-live-server in ESXi 7.0GA" :

I noticed that when it's happening, abnormal kernel log:
[ 0.000000] ? lockdown_lsm_init+0x21/0x25
[ 0.000000] Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
.....
[ 66.261508] Lockdown: fwupd: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
[ 233.169823] ata3: SATA link down (SStatus 0 SControl 300)
[ 238.577700] ata3: SATA link down (SStatus 0 SControl 300)
[ 243.953448] ata3: SATA link down (SStatus 0 SControl 300)
[ 243.953455] ata3.00: disabled
[ 243.953481] sr 2:0:0:0: rejecting I/O to offline device
[ 243.958034] ata3.00: detaching (SCSI 2:0:0:0)
[ 304.517077] sd 3:0:0:0: [sda] tag#55 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 304.517081] sd 3:0:0:0: [sda] tag#55 Sense Key : Vendor Specific(9) [current]
[ 304.517086] sd 3:0:0:0: [sda] tag#55 <<vendor>>ASC=0x80 <<vendor>>ASCQ=0x85
[ 304.517090] sd 3:0:0:0: [sda] tag#55 CDB: Write same(16) 93 08 00 00 00 00 00 31 e7 e8 00 00 00 18 00 00
[ 304.517100] blk_update_request: I/O error, dev sda, sector 3270632 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0
[ 314.319273] sd 3:0:0:0: [sda] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 314.319275] sd 3:0:0:0: [sda] tag#11 Sense Key : Vendor Specific(9) [current]
[ 314.319278] sd 3:0:0:0: [sda] tag#11 <<vendor>>ASC=0x80 <<vendor>>ASCQ=0x85
[ 314.319295] sd 3:0:0:0: [sda] tag#11 CDB: Write same(16) 93 08 00 00 00 00 00 31 e8 10 00 00 00 18 00 00
[ 314.319299] blk_update_request: I/O error, dev sda, sector 3270672 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0

And no error log in hostside.

Noticed you enabled secure boot in uefi and ubuntu are configured with lockdown

vmware@ubuntu:~$ cat /boot/config-5.4.0-26-generic | grep LOCK_DOWN
CONFIG_LOCK_DOWN_IN_SECURE_BOOT=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y

So the error should caused by uefi lockdown feature.

Please refer to https://mjg59.dreamwidth.org/50577.html for more details.

To workaroud this,
echo 1 > /proc/sys/kernel/sysrq
echo x > /proc/sysrq-trigger

or you can use sudo mokutil --disable-validation to disable it.

I tried "echo to /proc" way, the error msg disappered. You might try the second way. Anyway, it's an upstream bug.

Revision history for this message
Joel Svensson (joelsvensson) wrote :

Had the exact same problem on Dell hardware with HBA330.
Possible to solve with a "sg_format --format" on every single drive or by upgrading fw on the HBA controller.

https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=nknvc&oscode=wst14&productcode=poweredge-r740xd

-Fixes a firmware initialization problem that causes T10 Protection Information (PI) Logical Block and Guard Tag errors under Linux operating systems. This can result in an inability to read from T10 PI capable drives.

More info about T10 Protection Information (T10-PI)
https://www.seagate.com/files/staticfiles/docs/pdf/whitepaper/safeguarding-data-from-corruption-technology-paper-tp621us.pdf

Check status with
sg_readcap -l /dev/sda
"Protection: prot_en=1, p_type=1, p_i_exponent=0 [type 2 protection]"
or
smartctl --all /dev/sda
"Formatted with type 2 protection"

Revision history for this message
Rafael Lopez (rafael.lopez) wrote :

Thanks Joel, the firmware you posted worked for us.

I will note we have the HBA330 mini, which has it's own distinct upgrade file as opposed to the regular HBA330.

HBA330 mini:
https://www.dell.com/support/home/en-au/drivers/driversdetails?driverid=124x2

i'm still a bit puzzled why a firmware update fixed this, since our rhel7 servers did not experience the issue, only Ubuntu (hence i was expecting a kernel driver issue/regression).

Revision history for this message
vmware-gos-Yuhua (yhzou) wrote :

> vmware-gos-Yuhua (yhzou) wrote on 2020-06-01:#22

   It's because VMs on vmfs5 datastore doesn't support trim/unmap command.
it won't hit this issue with vmfs6

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.