[Bug 1012946] [NEW] dm-part-sync.patch breaks creating multiple partitions on a LVM volume

Ludovico Cavedon cavedon at debian.org
Thu Jun 14 02:57:31 UTC 2012


Public bug reported:

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04 LTS
Release:	12.04
Codename:	precise

# apt-cache policy parted
parted:
  Installed: 2.3-8ubuntu5
  Candidate: 2.3-8ubuntu5
  Version table:
 *** 2.3-8ubuntu5 0
        500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status


# lvcreate -n test -L 10M matrix
  Rounding up size to full physical extent 12.00 MiB
  Logical volume "test" created
# parted --script -- /dev/matrix/test mklabel msdos
# parted --script -- /dev/matrix/test mkpart primary ext4 1 2
# parted --script -- /dev/matrix/test mkpart primary ext4 3 4
device-mapper: create ioctl failed: Device or resource busy
Error: Failed to add partition 1 (No such device or address)
# ls /dev/mapper/matrix-test*
/dev/mapper/matrix-test
/dev/mapper/matrix-test1

If I remove rebuild parted without the dm-part-sync.patch  (actually,
also without dmraid.patch and udevadm-settle.patch, otherwise it would
not build), it works properly:


root at matrix:~# lvcreate -n test -L 10M matrix
  Rounding up size to full physical extent 12.00 MiB
  Logical volume "test" created
root at matrix:~# parted --script -- /dev/matrix/test mklabel msdos
root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2
Error: msdos disk labels do not support partition names.
root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4
Error: msdos disk labels do not support partition names.
Error: msdos disk labels do not support partition names.
root at matrix:~# ls /dev/mapper/matrix-test*
/dev/mapper/matrix-test
/dev/mapper/matrix-test1
/dev/mapper/matrix-test2
--- 
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
DistroRelease: Ubuntu 12.04
Package: parted 2.3-8ubuntu5
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm
 LANG=en_US
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Tags:  precise
Uname: Linux 3.2.0-24-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago)
UserGroups:

** Affects: parted (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-collected precise

** Tags added: apport-collected precise

** Description changed:

  # lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.04 LTS
  Release:	12.04
  Codename:	precise
  
  # apt-cache policy parted
  parted:
    Installed: 2.3-8ubuntu5
    Candidate: 2.3-8ubuntu5
    Version table:
   *** 2.3-8ubuntu5 0
          500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  
  
  # lvcreate -n test -L 10M matrix
    Rounding up size to full physical extent 12.00 MiB
    Logical volume "test" created
  # parted --script -- /dev/matrix/test mklabel msdos
  # parted --script -- /dev/matrix/test mkpart primary ext4 1 2
  # parted --script -- /dev/matrix/test mkpart primary ext4 3 4
  device-mapper: create ioctl failed: Device or resource busy
  Error: Failed to add partition 1 (No such device or address)
  # ls /dev/mapper/matrix-test*
  /dev/mapper/matrix-test
  /dev/mapper/matrix-test1
  
  If I remove rebuild parted without the dm-part-sync.patch  (actually,
  also without dmraid.patch and udevadm-settle.patch, otherwise it would
  not build), it works properly:
  
  
  root at matrix:~# lvcreate -n test -L 10M matrix
    Rounding up size to full physical extent 12.00 MiB
    Logical volume "test" created
  root at matrix:~# parted --script -- /dev/matrix/test mklabel msdos
  root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2
  Error: msdos disk labels do not support partition names.
  root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4
  Error: msdos disk labels do not support partition names.
  Error: msdos disk labels do not support partition names.
  root at matrix:~# ls /dev/mapper/matrix-test*
  /dev/mapper/matrix-test
  /dev/mapper/matrix-test1
  /dev/mapper/matrix-test2
+ --- 
+ ApportVersion: 2.0.1-0ubuntu8
+ Architecture: amd64
+ DistroRelease: Ubuntu 12.04
+ Package: parted 2.3-8ubuntu5
+ PackageArchitecture: amd64
+ ProcEnviron:
+  TERM=xterm
+  LANG=en_US
+  SHELL=/bin/bash
+ ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
+ Tags:  precise
+ Uname: Linux 3.2.0-24-generic x86_64
+ UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago)
+ UserGroups:

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

Title:
  dm-part-sync.patch breaks creating multiple partitions on a LVM volume

Status in “parted” package in Ubuntu:
  New

Bug description:
  # lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 12.04 LTS
  Release:	12.04
  Codename:	precise

  # apt-cache policy parted
  parted:
    Installed: 2.3-8ubuntu5
    Candidate: 2.3-8ubuntu5
    Version table:
   *** 2.3-8ubuntu5 0
          500 http://mirrors.service.softlayer.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

  
  # lvcreate -n test -L 10M matrix
    Rounding up size to full physical extent 12.00 MiB
    Logical volume "test" created
  # parted --script -- /dev/matrix/test mklabel msdos
  # parted --script -- /dev/matrix/test mkpart primary ext4 1 2
  # parted --script -- /dev/matrix/test mkpart primary ext4 3 4
  device-mapper: create ioctl failed: Device or resource busy
  Error: Failed to add partition 1 (No such device or address)
  # ls /dev/mapper/matrix-test*
  /dev/mapper/matrix-test
  /dev/mapper/matrix-test1

  If I remove rebuild parted without the dm-part-sync.patch  (actually,
  also without dmraid.patch and udevadm-settle.patch, otherwise it would
  not build), it works properly:

  
  root at matrix:~# lvcreate -n test -L 10M matrix
    Rounding up size to full physical extent 12.00 MiB
    Logical volume "test" created
  root at matrix:~# parted --script -- /dev/matrix/test mklabel msdos
  root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 1 2
  Error: msdos disk labels do not support partition names.
  root at matrix:~# parted --script -- /dev/matrix/test mkpart primary ext4 3 4
  Error: msdos disk labels do not support partition names.
  Error: msdos disk labels do not support partition names.
  root at matrix:~# ls /dev/mapper/matrix-test*
  /dev/mapper/matrix-test
  /dev/mapper/matrix-test1
  /dev/mapper/matrix-test2
  --- 
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  DistroRelease: Ubuntu 12.04
  Package: parted 2.3-8ubuntu5
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   LANG=en_US
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
  Tags:  precise
  Uname: Linux 3.2.0-24-generic x86_64
  UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago)
  UserGroups:

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




More information about the foundations-bugs mailing list