Public bug reported:

Given these logical volumes on a Drobo 5D mounting will result in a
hang:

root@atx1:/var/log# lvs vg-drobo
  LV         VG       Attr       LSize    Pool Origin Data%  Meta%  Move Log 
Cpy%Sync Convert
  encrypted  vg-drobo -wi-a----- 1000.00g                                       
             
  persistent vg-drobo -wi-a-----  600.00g                                       
             
  timber     vg-drobo -wi-ao----    1.50t                                       
             
  timber2    vg-drobo -wi-ao----    1.00t                                       
             

root@atx1:/var/log# mount /dev/vg-drobo/timber /mnt/drobo-timber/
# hangs

I expect the mount to succeed without hanging.

This bug is not present in 16.04 / 16.04.1 (latest is
linux-4.4.0-189-generic).

Release bisection revealed it showed up in u16.04.2:
linux-4.8.0-36-generic from LiveCD.

I found it when finally upgrading a 16.04 host which was using 4.4
kernel to 18.04 which uses 4.15 (LTS) / 5.4 (HWE) kernels.

After further commit bisection I found the commit which introduced this
behavior is: https://git.launchpad.net/~ubuntu-
kernel/ubuntu/+source/linux/+git/bionic/commit/?id=5b91dfe187bbe3a8116432016375f39fff91a237

----

$ git show 5b91dfe187bb
Mon Apr 18 13:09:10 2016 +0300 5b91dfe187bb usb: storage: scsiglue: limit USB3 
devices to 2048 sectors  [Felipe Balbi]
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
index 9da1fb3d0ff4..88920142e375 100644
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -133,6 +133,11 @@ static int slave_configure(struct scsi_device *sdev)
                 * let the queue segment size sort out the real limit.
                 */
                blk_queue_max_hw_sectors(sdev->request_queue, 0x7FFFFF);
+       } else if (us->pusb_dev->speed >= USB_SPEED_SUPER) {
+               /* USB3 devices will be limited to 2048 sectors. This gives us
+                * better throughput on most devices.
+                */
+               blk_queue_max_hw_sectors(sdev->request_queue, 2048);
        }
 
        /* Some USB host controllers can't do DMA; they have to use PIO.

----

I built kernels with this change commented out and confirmed I can
successfully mount the LV from the Drobo using 4.8 and 4.15 kernels.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-117-generic 4.15.0-117.118
ProcVersionSignature: Ubuntu 4.15.0-117.118-generic 4.15.18
Uname: Linux 4.15.0-117-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not 
found.
Date: Mon Sep 21 12:37:39 2020
HibernationDevice:
 #RESUME=UUID=64794be3-24a0-49f9-9239-371624a3d193
 RESUME=none
InstallationDate: Installed on 2020-09-20 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
IwConfig:
 enp0s31f6  no wireless extensions.
 
 lo        no wireless extensions.
MachineType: System manufacturer System Product Name
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-117-generic 
root=/dev/mapper/vg--ssd2tb-u18040 ro
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-117-generic N/A
 linux-backports-modules-4.15.0-117-generic  N/A
 linux-firmware                              1.173.19
RfKill:
 
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/15/2018
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3802
dmi.board.asset.tag: Default string
dmi.board.name: MAXIMUS VIII RANGER
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr3802:bd03/15/2018:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnMAXIMUSVIIIRANGER:rvrRev1.xx:cvnDefaultstring:ct3:cvrDefaultstring:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

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

Title:
  Mounting a logical volume on a Drobo 5D will hang

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to