[Bug 1541510] Re: parted crashes on lvm, on a dasd drive

Viktor Mihajlovski mihajlov at linux.vnet.ibm.com
Thu Feb 4 15:22:52 UTC 2016


The parted code is iterating all the label types and consequently is
probing for DASD. The weird thing is that on one hand the DASD ioctl is
passed down to the physical volume (and  I mean weird: what would have
happened if the logical volume was realised by extents on both DASD and
SCSI disks?) and on the other hand silently igores the
HDIO_GETGEO.(which I can understand). Currently trying out a patch
similar to the one posted by Colin.

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

Title:
  parted crashes on lvm, on a dasd drive

Status in parted package in Ubuntu:
  Confirmed
Status in s390-tools package in Ubuntu:
  Confirmed

Bug description:
  xnox at devac03:~$ lsdasd
  Bus-ID     Status      Name      Device  Type  BlkSz  Size      Blocks
  ==============================================================================
  0.0.0200   active      dasda     94:0    ECKD  4096   7042MB    1802880
  0.0.0201   active      dasdb     94:4    ECKD  4096   42258MB   10818180
  0.0.0202   active      dasdc     94:8    ECKD  4096   42258MB   10818180

  # pvcreate /dev/dasdc1
    allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support.
    Falling back to native LVM signature detection.
    Physical volume "/dev/dasdc1" successfully created

  # vgcreate new /dev/dasdc1
    Volume group "new" successfully created

  # lvcreate -L 2000M new
    allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support.
    Falling back to native LVM signature detection.
    Logical volume "lvol0" created.

  # gdb parted
  (gdb) run /dev/mapper/new-lvol0
  Starting program: /sbin/parted /dev/mapper/new-lvol0
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".
  GNU Parted 3.2
  Using /dev/mapper/new-lvol0
  Welcome to GNU Parted! Type 'help' to view a list of commands.
  (parted) print                                                            

  Program received signal SIGFPE, Arithmetic exception.
  vtoc_set_freespace (f4=<optimized out>, f5=0x2aa0003c0e0, f7=<optimized out>, ch=<optimized out>, 
      verbose=0, start=2, stop=4294967295, cyl=60101, trk=0) at ../../../libparted/labels/vtoc.c:1321
  1321	../../../libparted/labels/vtoc.c: No such file or directory.
  (gdb) bt
  #0  vtoc_set_freespace (f4=<optimized out>, f5=0x2aa0003c0e0, f7=<optimized out>, 
      ch=<optimized out>, verbose=0, start=2, stop=4294967295, cyl=60101, trk=0)
      at ../../../libparted/labels/vtoc.c:1321
  #1  0x000003fffdea1b20 in fdasd_check_volume (anc=0x3ffffffeee0, fd=<optimized out>)
      at ../../../libparted/labels/fdasd.c:886
  #2  0x000003fffde9f6c2 in dasd_probe (dev=0x2aa00030fb0) at ../../../libparted/labels/dasd.c:226
  #3  0x000003fffde8fb5e in ped_disk_probe (dev=0x2aa00030fb0) at ../../libparted/disk.c:157
  #4  0x000003fffde9240c in ped_disk_new (dev=0x2aa00030fb0) at ../../libparted/disk.c:190
  #5  0x000002aa00008c28 in do_print (dev=0x3fffffff428, diskp=0x3fffffff430)
      at ../../parted/parted.c:1067
  #6  0x000002aa0000e810 in interactive_mode (dev=0x3fffffff428, disk=0x3fffffff430, 
      cmd_list=<optimized out>) at ../../parted/ui.c:1593
  #7  0x000002aa00007020 in main (argc=0, argv=0x3fffffff688) at ../../parted/parted.c:2297

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



More information about the foundations-bugs mailing list