The commit is a legit stable fix and part of the Ubuntu 16.04 kernel since 
version 4.4.0-18 (your dmesg shows you a re running 4.4.0-34). So unfortunately 
not helping in your case. I extracted the relevant syslog data below. >From 
that info, the two disks are connected to a Marvell controller in RAID mode.
The change you found was ignoring the HPCP bit. But a drive would still marked 
as removable if the port had a ESP bit set and the controller had a SXS 
capability set. I don't think the port bits show up in the log but the 
controller does have SXS set. So there might be a chance that in your BIOS, 
there is an option related to the Marvell controller that says "ESP" somewhere. 
And if you disable that, the drives no longer are removable.

But generally I think dmraid (and fwiw the desktop environment mounting
everything removable) uses incorrect assumptions about what removable
means. All USB disks are removable but not all removable disks are
USB...

06:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd.
88SE9172 SATA III 6Gb/s RAID Controller [1b4b:9192] (rev 12) Subsystem:
Gigabyte Technology Co., Ltd Device [1458:b000]

[    0.693411] ahci 0000:06:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 
impl RAID mode
[    0.693413] ahci 0000:06:00.0: flags: 64bit ncq sntf led only pmp fbs pio 
slum part sxs 
[    0.693609] scsi host8: ahci
[    0.693679] scsi host9: ahci
[    0.693707] ata9: SATA max UDMA/133 abar m512@0xfb410000 port 0xfb410100 irq 
43
[    0.693710] ata10: SATA max UDMA/133 abar m512@0xfb410000 port 0xfb410180 
irq 43
[    1.184050] ata10: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.184069] ata9: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.184636] ata10.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[    1.184638] ata10.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), 
AA
[    1.184654] ata9.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[    1.184655] ata9.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    1.185166] ata10.00: configured for UDMA/133
[    1.185182] ata9.00: configured for UDMA/133
[    1.185306] scsi 8:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC27 
PQ: 0 ANSI: 5
[    1.185443] sd 8:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 
TB/1.82 TiB)
[    1.185445] sd 8:0:0:0: [sdb] 4096-byte physical blocks
[    1.185451] sd 8:0:0:0: Attached scsi generic sg2 type 0
[    1.185525] sd 8:0:0:0: [sdb] Write Protect is off
[    1.185527] sd 8:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    1.185553] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    1.185577] scsi 9:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC27 
PQ: 0 ANSI: 5
[    1.185711] sd 9:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 
TB/1.82 TiB)
[    1.185713] sd 9:0:0:0: [sdc] 4096-byte physical blocks
[    1.185725] sd 9:0:0:0: Attached scsi generic sg3 type 0
[    1.185782] sd 9:0:0:0: [sdc] Write Protect is off
[    1.185784] sd 9:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    1.185807] sd 9:0:0:0: [sdc] Write cache: enabled, read cache: enabled, 
doesn't support DPO or FUA
[    1.189274] sd 8:0:0:0: [sdb] Attached SCSI removable disk

-- 
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/1611277

Title:
  Kernel Shipped With Ubuntu 16.04.1 Cannot Recognize fakeRaid

Status in dmraid package in Ubuntu:
  Confirmed
Status in linux package in Ubuntu:
  Invalid
Status in dmraid source package in Xenial:
  New
Status in linux source package in Xenial:
  Invalid

Bug description:
  Kernel shipped with Ubuntu 16.04.1 cannot recognize fakeRaid created
  from Ubuntu 14.04. I've tried three ways but none of them work.

  1. Update 14.04.4 to 16.04.1
  2. Fresh install 16.04.1
  3. Update kernel to linux-images-4.4.0-34-generic only

  The result is that the mapper was seperated into /dev/sdb and /dev/sdc
  and cannot be rebuild with dmraid (said no raid disk) or mdadm (said
  no superblock).

  Something interesting is that when I reinstall Ubuntu 14.04.2 with my
  old CD, during the installation Ubuntu is able to recognize
  /dev/mapper/.... But when I do a fresh install in Ubuntu 16.04 with
  the CD, I get /dev/sdb and /dev/sdc

  The motherboard I'm using is Gigabyte X79-UP4

  The fakeRaid with Marvell chipset on my motherboard shows the following 
information with fdisk in Ubuntu 16.04.1.
  /dev/sda is where the system is installed. It is a normal hard drive.
  /dev/sdb and /dev/sdc are using raid 1.

  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
  255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x000b7321

     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1   *        2048      499711      248832   83  Linux
  /dev/sda2          501758  1953523711   976510977    5  Extended
  Partition 2 does not start on physical sector boundary.
  /dev/sda5          501760  1953523711   976510976   8e  Linux LVM

  Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
  255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x00000000

  Disk /dev/sdb doesn't contain a valid partition table

  Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
  255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x00000000

  Disk /dev/sdc doesn't contain a valid partition table

  Disk /dev/mapper/ubuntu--vg-root: 982.8 GB, 982805118976 bytes
  255 heads, 63 sectors/track, 119485 cylinders, total 1919541248 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x00000000

  Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition
  table

  Disk /dev/mapper/ubuntu--vg-swap_1: 17.1 GB, 17091788800 bytes
  255 heads, 63 sectors/track, 2077 cylinders, total 33382400 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x00000000

  Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition
  table


  The fakeRaid with Marvell chipset on my motherboard shows the
  following information with fdisk in Ubuntu 14.04.4.

  Disk /dev/mapper/ddf1_00000000000000004b1b92914b1b92914b0400004b040001: 
2000.3 GB, 2000315047936 bytes
  255 heads, 63 sectors/track, 243191 cylinders, total 3906865328 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x3b9fee89

                                                           Device Boot      
Start         End      Blocks   Id  System
  /dev/mapper/ddf1_00000000000000004b1b92914b1b92914b0400004b040001p1           
 2048  3906865151  1953431552   83  Linux

  Disk /dev/mapper/ddf1_00000000000000004b1b92914b1b92914b0400004b040001p1: 
2000.3 GB, 2000313909248 bytes
  255 heads, 63 sectors/track, 243190 cylinders, total 3906863104 sectors
  Units = sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disk identifier: 0x00000000

  Disk /dev/mapper/ddf1_00000000000000004b1b92914b1b92914b0400004b040001p1 
doesn't contain a valid partition table
  ---
  ApportVersion: 2.14.1-0ubuntu3.21
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  bblab      6762 F.... pulseaudio
   /dev/snd/controlC0:  bblab      6762 F.... pulseaudio
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=433bcdda-b73d-47e7-abb8-8fab93db4123
  InstallationDate: Installed on 2016-07-26 (14 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 
(20150218.1)
  MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
  Package: linux (not installed)
  ProcFB: 0 nouveaufb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-34-generic 
root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 4.4.0-34.53~14.04.1-generic 4.4.15
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-34-generic N/A
   linux-backports-modules-4.4.0-34-generic  N/A
   linux-firmware                            1.127.22
  RfKill:

  Tags:  trusty
  Uname: Linux 4.4.0-34-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 12/16/2013
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: F5
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: X79-UP4
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: To be filled by O.E.M.
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrF5:bd12/16/2013:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnX79-UP4:rvrTobefilledbyO.E.M.:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.name: To be filled by O.E.M.
  dmi.product.version: To be filled by O.E.M.
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/1611277/+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

Reply via email to