The issue seems to be that the current default for max_sectors_kb is too
high for our setup:

$ cat /sys/block/sde/queue/max_sectors_kb
32767

Cutting this in half resolved our issue:

$ sudo sh -c 'echo 16384 > /sys/block/sde/queue/max_sectors_kb'

We made this permanent by adding a udev rule:

$ cat /etc/udev/rules.d/61-block-max-sectors.rules
ACTION=="add|change", KERNEL=="sd[a-z]", SUBSYSTEM=="block", 
DRIVERS=="qla2xxx", RUN+="/bin/sh -c '/bin/echo 16384 > 
/sys/block/%k/queue/max_sectors_kb'"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1585668

Title:
  Random file corruption when writing large files to hba mounted volume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1585668/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to