Package: lvm2 Version: 2.00.24-1 Severity: normal
I'm trying to set up LVM for the first time. I have the dm-mod kernel module loaded. No udev or devfs here. The following commands all succeed: pvcreate /dev/hda1 vgcreate vg /dev/hda1 vgchange -ay vg Now I want to create a logical volume, but the command seems to fail: # lvcreate -L15G -narchive vg device-mapper ioctl cmd 9 failed: Invalid argument Couldn't load device 'vg-archive'. Failed to activate new LV. syslog says Feb 4 20:59:12 helium kernel: device-mapper: : dm-linear: Device lookup failed Feb 4 20:59:12 helium kernel: Feb 4 20:59:12 helium kernel: device-mapper: error adding target to table Based on the LVM HOWTO I expected lvcreate to create a block device file /dev/vg/archive, but it didn't. However, # ls -l /dev/mapper total 0 crw------- 1 root root 10, 63 Feb 3 16:31 control brw------- 1 root root 254, 0 Feb 4 20:59 vg-archive However all of lvdisplay, lvscan, vgdisplay, etc. act as though the volume has been created on /dev/vg/archive: e.g. # lvscan ACTIVE '/dev/vg/archive' [15.00 GB] inherit So should I simply ignore the error message from lvcreate, and use /dev/mapper/vg-archive instead of /dev/vg/archive? Or has there really been an error here? I'm very confused. Thanks, Andrew. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (200, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.7 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages lvm2 depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libdevmapper1.00 2:1.00.19-2 The Linux Kernel Device Mapper use ii lvm-common 1.5.17 The Logical Volume Manager for Lin -- debconf information: lvm2/snapshots: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]