Bug#502635: lvcreate: Please provide better error message if dm_mod not loaded

Andrew Vaughan ajv-lists at netspace.net.au
Sat Oct 18 17:16:51 UTC 2008


Package: lvm2
Version: 2.02.39-2
Severity: wishlist

Hi

During installation of lvm2, dm_mod isn't loaded.  This means that lvcreate 
will fail.

# lvcreate --name foo --size 1G bar
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  /proc/misc: No entry for device-mapper found
  Is device-mapper driver missing from kernel?
  Failure to communicate with kernel device-mapper driver.
  Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver
  striped: Required device-mapper target(s) not detected in your kernel
  Run `lvcreate --help' for more information.

Please either fix the error message to explicitly mention that dm_mod isn't 
loaded, or alternatively ensure that dm_mod is either loaded during package 
installation (it is loaded during boot by /etc/init.d/lvm2), or by a wrapper 
script around the lvcreate (and any other lvm2 binaries that require it). 

I note that /etc/init.d/lvm2 does load dm_mod.  Is there a reason that lvm2 
isn't started during postinst?

Thanks for your work in Debian.

Andrew V.



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  libc6                        2.7-14      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.27-4 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-3       GNU readline and history libraries

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
ii  dmsetup                      2:1.02.27-4 The Linux Kernel Device Mapper use

-- no debconf information





More information about the pkg-lvm-maintainers mailing list