[Kernel-packages] [Bug 1810215] Re: Smart data works on kernel 4.13 but not on 4.15

2019-08-05 Thread Nathan Stratton Treadway
@Mike/Robie:

Actually the "uas: Always apply US_FL_NO_ATA_1X quirk to Seagate
devices" patch to the kernel is (part of) the cause of the current
smartmontool failure rather than a fix for it.

The underlying problem is that most Seagate drive enclosures do not
properly handle SAT (= "ATA pass-through") when in UAS mode, and so the
kernel now (after that patch) disables SAT for all Seagate enclosures
when UAS is in use.

That change allows those enclosures to work okay in UAS mode for normal
data access (with the associated increase in performance) ... but since
Smartmontools and other utilities (e.g. "hdparm") require SAT to work,
the change breaks their functionality for those devices.

The current workaround is to use the kernel quirks to disable UAS for a
particular device, so that the kernel falls back to the old usb-storage
mode instead; this lets SAT work again (and thus Smartmontools, etc.
function properly), but only at the expense of losing UAS performance
for normal data access.

So in the long run it would be ideal for the kernel to have some way to
more dynamically deal with these sorts of buggy devices (i.e. switching
modes temporarily to allow SAT to work for special operations such as
Smartmontools but use UAT most of the time)... but I haven't run across
any discussion about such a patch anywhere, so it seems like people with
these devices will be stuck with having to choose between SAT or UAS for
the time being.

Anyway, there's now a Smartmontools Wiki page devoted to this specific
topic:  https://www.smartmontools.org/wiki/SAT-with-UAS-Linux .

** Summary changed:

- Smart data works on kernel 4.13 but not on 4.15
+ for Seagate USB drive enclosures, SAT (e.g. smartmontools)  works on kernel 
4.13 but not on 4.15

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1810215

Title:
  for Seagate USB drive enclosures, SAT (e.g. smartmontools)  works on
  kernel 4.13 but not on 4.15

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  smartctl -d sat -i /dev/sda work on 16.04 kernel 4.13 but on 4.15.

  Here is data from 16.04
  root@server:~# uname -a
  Linux server 4.13.0-45-generic #50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux
  root@server:~# lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 16.04.5 LTS
  Release:  16.04
  Codename: xenial
  root@server:~# smartctl -d sat -i /dev/sda
  smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.13.0-45-generic] (local build)
  Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

  === START OF INFORMATION SECTION ===
  Device Model: ST8000DM004-2CX188
  Serial Number:ZCT07YN6
  LU WWN Device Id: 5 000c50 0b1f2a4d2
  Firmware Version: 0001
  User Capacity:8,001,563,222,016 bytes [8.00 TB]
  Sector Sizes: 512 bytes logical, 4096 bytes physical
  Rotation Rate:5425 rpm
  Form Factor:  3.5 inches
  Device is:Not in smartctl database [for details use: -P showall]
  ATA Version is:   ACS-3 T13/2161-D revision 5
  SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
  Local Time is:Tue Jan  1 16:57:48 2019 EST
  SMART support is: Available - device has SMART capability.
  SMART support is: Enabled

  root@server:~#

  here is data from 18.04:root@mike-desktop:/tmp# uname -a
  Linux mike-desktop 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux
  root@mike-desktop:/tmp# lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 18.04.1 LTS
  Release:  18.04
  Codename: bionic
  root@mike-desktop:/tmp# smartctl -d sat -i /dev/sdd
  smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-36-generic] (local build)
  Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

  Read Device Identity failed: scsi error unsupported field in scsi
  command

  A mandatory SMART command failed: exiting. To continue, add one or
  more '-T permissive' options.

  dmesg on 18.04 showing drive is connected /dev/sdd:
  [6041017.984544] usb 3-2.4: new SuperSpeed USB device number 6 using xhci_hcd
  [6041018.009417] usb 3-2.4: New USB device found, idVendor=0bc2, 
idProduct=331a
  [6041018.009424] usb 3-2.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [6041018.009428] usb 3-2.4: Product: Expansion Desk
  [6041018.009432] usb 3-2.4: Manufacturer: Seagate
  [6041018.009435] usb 3-2.4: SerialNumber: NAAA7HWG
  [6041018.015808] scsi host5: uas
  [6041018.016527] scsi 5:0:0:0: Direct-Access Seagate  Expansion Desk   
0915 PQ: 0 ANSI: 6
  [6041018.017645] sd 5:0:0:0: Attached scsi generic sg3 type 0
  [6041030.357108] sd 5:0:0:0: [sdd] 15628053167 512-byte logical blocks: (8.00 
TB/7.28 TiB)
  [6041030.357112] sd 5:0:0:0: [sdd] 4096-byte physical blocks
  [6041030.357265] sd 

[Kernel-packages] [Bug 1810215] Re: Smart data works on kernel 4.13 but not on 4.15

2019-07-24 Thread Brad Figg
** Tags added: cscc

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1810215

Title:
  Smart data works on kernel 4.13 but not on 4.15

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  smartctl -d sat -i /dev/sda work on 16.04 kernel 4.13 but on 4.15.

  Here is data from 16.04
  root@server:~# uname -a
  Linux server 4.13.0-45-generic #50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux
  root@server:~# lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 16.04.5 LTS
  Release:  16.04
  Codename: xenial
  root@server:~# smartctl -d sat -i /dev/sda
  smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.13.0-45-generic] (local build)
  Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

  === START OF INFORMATION SECTION ===
  Device Model: ST8000DM004-2CX188
  Serial Number:ZCT07YN6
  LU WWN Device Id: 5 000c50 0b1f2a4d2
  Firmware Version: 0001
  User Capacity:8,001,563,222,016 bytes [8.00 TB]
  Sector Sizes: 512 bytes logical, 4096 bytes physical
  Rotation Rate:5425 rpm
  Form Factor:  3.5 inches
  Device is:Not in smartctl database [for details use: -P showall]
  ATA Version is:   ACS-3 T13/2161-D revision 5
  SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
  Local Time is:Tue Jan  1 16:57:48 2019 EST
  SMART support is: Available - device has SMART capability.
  SMART support is: Enabled

  root@server:~#

  here is data from 18.04:root@mike-desktop:/tmp# uname -a
  Linux mike-desktop 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux
  root@mike-desktop:/tmp# lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 18.04.1 LTS
  Release:  18.04
  Codename: bionic
  root@mike-desktop:/tmp# smartctl -d sat -i /dev/sdd
  smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-36-generic] (local build)
  Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

  Read Device Identity failed: scsi error unsupported field in scsi
  command

  A mandatory SMART command failed: exiting. To continue, add one or
  more '-T permissive' options.

  dmesg on 18.04 showing drive is connected /dev/sdd:
  [6041017.984544] usb 3-2.4: new SuperSpeed USB device number 6 using xhci_hcd
  [6041018.009417] usb 3-2.4: New USB device found, idVendor=0bc2, 
idProduct=331a
  [6041018.009424] usb 3-2.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [6041018.009428] usb 3-2.4: Product: Expansion Desk
  [6041018.009432] usb 3-2.4: Manufacturer: Seagate
  [6041018.009435] usb 3-2.4: SerialNumber: NAAA7HWG
  [6041018.015808] scsi host5: uas
  [6041018.016527] scsi 5:0:0:0: Direct-Access Seagate  Expansion Desk   
0915 PQ: 0 ANSI: 6
  [6041018.017645] sd 5:0:0:0: Attached scsi generic sg3 type 0
  [6041030.357108] sd 5:0:0:0: [sdd] 15628053167 512-byte logical blocks: (8.00 
TB/7.28 TiB)
  [6041030.357112] sd 5:0:0:0: [sdd] 4096-byte physical blocks
  [6041030.357265] sd 5:0:0:0: [sdd] Write Protect is off
  [6041030.357268] sd 5:0:0:0: [sdd] Mode Sense: 53 00 00 08
  [6041030.357562] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
  [6041030.493932]  sdd: sdd1 sdd9
  [6041030.495310] sd 5:0:0:0: [sdd] Attached SCSI disk

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: smartmontools 6.5+svn4324-1
  ProcVersionSignature: Ubuntu 4.15.0-36.39-generic 4.15.18
  Uname: Linux 4.15.0-36-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.9-0ubuntu7.5
  Architecture: amd64
  Date: Tue Jan  1 16:53:16 2019
  InstallationDate: Installed on 2018-02-23 (312 days ago)
  InstallationMedia: Ubuntu-GNOME 16.04.3 LTS "Xenial Xerus" - Release amd64 
(20170801)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: smartmontools
  UpgradeStatus: Upgraded to bionic on 2018-10-21 (72 days ago)

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp