[Bug 1473934] Comment bridged from LTC Bugzilla

bugproxy bugproxy at us.ibm.com
Wed Jul 22 09:10:41 UTC 2015


------- Comment From ckumar27 at in.ibm.com 2015-07-22 09:02 EDT-------
---- Externalizing comment#17 ------
(In reply to comment #16)
<snip>
> Alternate solution would be to use util-linux for disk partition
> manipulation as advised by Mauricio in the IBM bug #121565

util-linux doesn't appear to include fdisk on 14.04.3; it only has
cfdisk and sfdisk. We checked on a Ubuntu 15.10 guest and it has a
separate fdisk binary in util-linux, so this looks like a bug in 14.04.3
with util-linux missing the fdisk binary.

***** From Ubuntu 14.04.3: *****

root at maplelp1:~# dpkg -L util-linux | grep fdisk
/sbin/sfdisk
/sbin/cfdisk
/usr/share/man/man8/cfdisk.8.gz
/usr/share/man/man8/sfdisk.8.gz
/usr/share/doc/util-linux/README.fdisk.gz
/usr/share/doc/util-linux/README.cfdisk
/usr/share/doc/util-linux/examples/sfdisk.examples.gz
root at maplelp1:~# ls -l /sbin/*fdisk*
-rwxr-xr-x 1 root root 65904 Feb 12 12:54 /sbin/cfdisk
lrwxrwxrwx 1 root root    10 Jul 14 07:52 /sbin/fdisk -> pmac-fdisk
-rwxr-xr-x 1 root root 43432 Feb 17  2014 /sbin/mac-fdisk
-rwxr-xr-x 1 root root 44760 Feb 17  2014 /sbin/pmac-fdisk
-rwxr-xr-x 1 root root 69408 Feb 12 12:54 /sbin/sfdisk

root at maplelp1:~# dpkg -l | grep "fdisk\|util-linux"
ii  mac-fdisk                           0.1-16ubuntu2                    ppc64el      Apple disk partition manipulation tool
ii  pmac-fdisk                          0.1-16ubuntu2                    ppc64el      fdisk partition manipulation tool for PowerPC
ii  util-linux                          2.20.1-5.1ubuntu20.4             ppc64el      Miscellaneous system utilities

***** From Ubuntu 15.10: ****

root at flyg3:~# dpkg -L util-linux | grep fdisk
/sbin/cfdisk
/sbin/sfdisk
/sbin/fdisk
/usr/share/man/man8/fdisk.8.gz
/usr/share/man/man8/sfdisk.8.gz
/usr/share/man/man8/cfdisk.8.gz
/usr/share/bash-completion/completions/cfdisk
/usr/share/bash-completion/completions/sfdisk
/usr/share/bash-completion/completions/fdisk

root at flyg3:~# ls -l /sbin/*fdisk*
-rwxr-xr-x 1 root root 133568 Jul  3 10:47 /sbin/cfdisk
-rwxr-xr-x 1 root root 135888 Jul  3 10:47 /sbin/fdisk
-rwxr-xr-x 1 root root  67984 Jul  3 10:41 /sbin/mac-fdisk
-rwxr-xr-x 1 root root  69336 Jul  3 10:41 /sbin/pmac-fdisk
-rwxr-xr-x 1 root root 133248 Jul  3 10:47 /sbin/sfdisk

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

Title:
  ISST-LTE: pmac-fdisk doesn't work with mpath devices

Status in mac-fdisk package in Ubuntu:
  Triaged
Status in mac-fdisk source package in Trusty:
  Triaged

Bug description:
  ---Problem Description---
  1. fdisk -l doesn't work with mpath device:

  % sudo fdisk -l /dev/mapper/mpath0
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)

  Disk /dev/sda: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  /dev/sda1            1        1   135324277143551+  ee  Unknown
  Partition 1 does not end on cylinder boundary:
       phys=(1023, 254, 63) should be (1023, 127, 32)
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)

  Disk /dev/sdb: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  /dev/sdb1            1        1       21    42992   83  Linux native
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sdc: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sdd: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sde: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sdf: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sdg: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  The number of cylinders for this disk is set to 4252.
  This is larger than 1024, and may cause problems with:
  1) software that runs at boot time (e.g., LILO)
  2) booting and partitioning software form other OSs
     (e.g., DOS FDISK, OS/2 FDISK)
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Disk /dev/sdh: 128 heads, 32 sectors, 4252 cylinders
  Units = cylinders of 4096 * 512 bytes

     Device Boot   Begin    Start      End   Blocks   Id  System
  %  

  2. when trying to partition a mpath device with fdisk, it asks user to
  sed sectors and cylindes:

  % sudo fdisk /dev/mapper/mpath4
  You must set heads sectors and cylinders.
  You can do this from the extra functions menu.
  Warning: invalid flag 6f00 of partition table 4 will be corrected by w(rite)

  Command (m for help): p

  Disk /dev/mapper/mpath4: 0 heads, 0 sectors, 0 cylinders
  Units = cylinders of 1 * 512 bytes

               Device Boot   Begin    Start      End   Blocks   Id
  System

  Command (m for help): n
  You must set heads sectors and cylinders.
  You can do this from the extra functions menu.

  Command (m for help):

  3.fdisk will show a wrong partition name:

  % ls /dev/mapper/mpath3-part1
  /dev/mapper/mpath3-part1
  % sudo fdisk /dev/mapper/mpath3
  You must set heads sectors and cylinders.
  You can do this from the extra functions menu.

  Command (m for help): p

  Disk /dev/mapper/mpath3: 0 heads, 0 sectors, 0 cylinders
  Units = cylinders of 1 * 512 bytes

               Device Boot   Begin    Start      End   Blocks   Id  System
  /dev/mapper/mpath31           63        2554287104277143551+  ee  Unknown

  Command (m for help):

  
   
  ---uname output---
  Linux dilllp1 3.19.0-22-generic #22~14.04.1-Ubuntu SMP Wed Jun 17 10:03:39 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = na 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   1. install ubuntu 14.04.3 on a system which has mpath devices
  2. using "fdisk" to check mpath device:
  * fdisk -l <mpath device>
  * fdisk <mpath device> (partition the device)

   
  Userspace tool common name: fdisk(symbol link to pmac-fdisk) 
   
  The userspace tool has the following bit modes: 64-bit 

  Userspace package: pmac-fdisk, version: 0.1-16ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mac-fdisk/+bug/1473934/+subscriptions



More information about the foundations-bugs mailing list