[Bug 1441930] Re: Fix handling of multipathed disks with 4k-sectors

Mauricio Faria de Oliveira mauricfo at linux.vnet.ibm.com
Thu Apr 9 15:57:52 UTC 2015


I incorrectly mentioned LVM was also affected by the issue.

It doesn't, as the dm mappings are the LVs mapped on top of VGs, which already take sectors as 512B AFAICT.
The issue arises w/ multipath because then the partitions are mapped directly on top of the underlying devices, which have 4k sectors.  Since the values being passed to libdevmapper should be in 512b sectors, if there's no multiplier of 4k/512 there, things go wrong. :)

** Description changed:

  The packages for libparted and kpartx don't have the patches for using
- device-mapper (multipath/LVM) on 4k-sector disks (generally: 'non
+ multipath (actually device-mapper) on 4k-sector disks (generally: 'non
  512-byte sector disks')
  
  This causes the number of sectors of each device-mapper partition to be 1/8th (512/4096) of that expected.
  These 3 errors were identified:
- 1) Partition sizes on multipath/LVM are 1/8th of the intended size 
+ 1) Partition sizes on multipath are 1/8th of the intended size
  2) The filesystem on the underlying device is not-accessible (only in the dm mapped device)
  3) grub-install fails w/ 'Unknown filesystem'
  
  The 2 patches attached contains upstream patches from parted and
  multipath-tools, and fix the issues (the installation finishes without
  errors and the system boots).

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1441930

Title:
  Fix handling of multipathed disks with 4k-sectors

Status in multipath-tools package in Ubuntu:
  New

Bug description:
  The packages for libparted and kpartx don't have the patches for using
  multipath (actually device-mapper) on 4k-sector disks (generally: 'non
  512-byte sector disks')

  This causes the number of sectors of each device-mapper partition to be 1/8th (512/4096) of that expected.
  These 3 errors were identified:
  1) Partition sizes on multipath are 1/8th of the intended size
  2) The filesystem on the underlying device is not-accessible (only in the dm mapped device)
  3) grub-install fails w/ 'Unknown filesystem'

  The 2 patches attached contains upstream patches from parted and
  multipath-tools, and fix the issues (the installation finishes without
  errors and the system boots).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1441930/+subscriptions



More information about the Ubuntu-sponsors mailing list