Random file corruption when writing large files to hba mounted volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
High
|
Unassigned |
Bug Description
We have an Ubuntu 16.04 LTS server with a 3Par volume via QLogic HBA. When mounted, writing large files to it repeatedly produces the following errors:
[435753.554230] sd 5:0:0:1: [sde] tag#10 FAILED Result: hostbyte=DID_OK driverbyte=
[435753.554232] sd 5:0:0:1: [sde] tag#10 Sense Key : Illegal Request [current]
[435753.554233] sd 5:0:0:1: [sde] tag#10 Add. Sense: Invalid field in cdb
[435753.554235] sd 5:0:0:1: [sde] tag#10 CDB: Write same(16) 93 08 00 00 00 00 04 7f ff f7 00 7f ff ff 00 00
[435753.554236] blk_update_request: critical target error, dev sde, sector 75497463
We see similar errors with XFS and EXT4. ZFS seems to work fine though. Here's how to recreate:
// create a large file
$ sudo dd if=/dev/urandom of=/random_file.bin bs=1048576 count=800
// 3Par volume is /dev/sde
$ sudo mkfs.xfs /dev/sde
// mount to /test
$ sudo mount /dev/sde /test
// watch syslog
$ tail -f /var/log/syslog &
$ sudo cp /random_file.bin /test
WORKAROUND: sudo sh -c 'echo 16384 > /sys/block/
We made this permanent by adding a udev rule:
$ cat /etc/udev/
ACTION=
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
NonfreeKernelMo
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 24 12:30 seq
crw-rw---- 1 root audio 116, 33 May 24 12:30 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed May 25 10:18:33 2016
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-05-19 (5 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. PowerEdge R310
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.157
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/17/2011
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.8.2
dmi.board.name: 05XKKK
dmi.board.vendor: Dell Inc.
dmi.board.version: A05
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: PowerEdge R310
dmi.sys.vendor: Dell Inc.
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
tags: | added: kernel-da-key |
This change was made by a bot.