[Bug 605436] Re: kpartx fails to map partitions (device-mapper: resume ioctl failed: Invalid argument)

Malte S. Stretz 605436 at bugs.launchpad.net
Wed Jul 14 15:15:20 BST 2010


** Attachment added: "Dependencies.txt"
   http://launchpadlibrarian.net/51927416/Dependencies.txt

** Bug watch added: Debian Bug tracker #586104
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586104

** Also affects: multipath-tools (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586104
   Importance: Unknown
       Status: Unknown

** Description changed:

  Binary package hint: multipath-tools
  
  Under certain conditions kpartx fails to map partitions.  You can try it
  with the image available here <http://m0n0.ch/wall/download.php?file
  =generic-pc-1.32.img>:
  
  ----8<----
  root at Otherland:~/Work/m0n0# mv generic-pc-1.32.img generic-pc-1.32.img.gz
- root at Otherland:~/Work/m0n0# gunzip generic-pc-1.32.img.gz 
+ root at Otherland:~/Work/m0n0# gunzip generic-pc-1.32.img.gz
  
  gzip: generic-pc-1.32.img.gz: decompression OK, trailing garbage ignored
- root at Otherland:~/Work/m0n0# sfdisk -l generic-pc-1.32.img 
+ root at Otherland:~/Work/m0n0# sfdisk -l generic-pc-1.32.img
  Disk generic-pc-1.32.img: cannot get geometry
  
  Disk generic-pc-1.32.img: 1 cylinders, 255 heads, 63 sectors/track
  Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
  
-    Device Boot Start     End   #cyls    #blocks   Id  System
+    Device Boot Start     End   #cyls    #blocks   Id  System
  generic-pc-1.32.img1          0       -       0          0    0  Empty
  generic-pc-1.32.img2          0       -       0          0    0  Empty
  generic-pc-1.32.img3          0       -       0          0    0  Empty
  generic-pc-1.32.img4   *      0       3-      4-     25000   a5  FreeBSD
-                 end: (c,h,s) expected (3,28,41) found (1023,254,63)
- generic-pc-1.32.img5          0+      1-      2-     10232  
- root at Otherland:~/Work/m0n0# kpartx -v -a generic-pc-1.32.img 
+                 end: (c,h,s) expected (3,28,41) found (1023,254,63)
+ generic-pc-1.32.img5          0+      1-      2-     10232
+ root at Otherland:~/Work/m0n0# kpartx -v -a generic-pc-1.32.img
  device-mapper: resume ioctl failed: Invalid argument
  add map loop0p4 (0:0): 0 50000 linear /dev/loop0 0
  ----8<----
+ 
+ dmesg says:
+ device-mapper: table: 252:9: loop0 too small for target: start=0, len=50000, dev_size=20480
  
  It seems like this is debian bug 586104 and fixed in newer versions of
  multipath-tools.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: kpartx 0.4.8-14ubuntu4
  ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-23-generic x86_64
  Architecture: amd64
  Date: Wed Jul 14 16:06:53 2010
  ProcEnviron:
-  LANGUAGE=
-  PATH=(custom, user)
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=
+  PATH=(custom, user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SourcePackage: multipath-tools

-- 
kpartx fails to map partitions (device-mapper: resume ioctl failed: Invalid argument)
https://bugs.launchpad.net/bugs/605436
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to multipath-tools in ubuntu.



More information about the Ubuntu-server-bugs mailing list