From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FfgLj-0007pY-7A for garchives@archives.gentoo.org; Mon, 15 May 2006 16:55:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4FGnZJF014185; Mon, 15 May 2006 16:49:35 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4FGnW57014840; Mon, 15 May 2006 16:49:33 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 51FA164440; Mon, 15 May 2006 16:49:32 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17200-04; Mon, 15 May 2006 16:49:30 +0000 (UTC) Received: from dingo.dogpad.net (ppp-70-251-132-112.dsl.rcsntx.swbell.net [70.251.132.112]) by smtp.gentoo.org (Postfix) with ESMTP id 50E21642E7; Mon, 15 May 2006 16:49:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by dingo.dogpad.net (Postfix) with ESMTP id ABF754C0F3; Mon, 15 May 2006 11:49:29 -0500 (CDT) Message-ID: <4468B119.6040309@dogpad.net> Date: Mon, 15 May 2006 11:49:29 -0500 From: Joe Harvell User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060429) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-admin@gentoo.org Reply-to: gentoo-admin@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org, gentoo-installer@lists.gentoo.org, gentoo-admin@lists.gentoo.org, gentoo-embedded@lists.gentoo.org Subject: [gentoo-admin] LVM install fails to boot in 2006.0 with no-nptl/2.4 profile Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=0.053 required=5.5 tests=[AWL=1.978, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_LR=0.077, TW_LV=0.077, TW_RW=0.077, TW_UU=0.077, TW_VG=0.077, TW_WX=0.077, TW_XR=0.077] X-Spam-Score: 0.053 X-Spam-Level: X-Archives-Salt: a7ce7656-83d8-4346-95bc-09a7b0257abf X-Archives-Hash: 249576a3ee6bc06e6027577aef229b6e I am in the process of installing Gentoo on an x86 from the 2006.0 installer CD using the 2.4 kernel profile. I created an LVM2 volume group with logical volumes / filesystems for '/', '/usr', '/var', '/opt', and '/home'. I had no problems mounting those filesystems and then chrooting into that environment and performing the base install. I compiled the 2.4.32-r4 kernel from gentoo-sources with no problems, and created the initial ram disk by hand so that I could bring up the LVM2 volumes. The problem I am having is when I boot into the initrd. I run vgscan with no apparent problems, and it finds the volume group. When I run 'vgchange -ay , I notice three problems: 1. There are entries in /dev/mapper/-, but no symlinks in the form /dev// --> /dev/mapper//. I run 'lvm vgmknodes' and it remedies this. 2. I see five complaints from 'vgchange -ay ' (one for each LV) as follows: on stderr: device-mapper: table ioctl failed: Invalid argument on console (from dm-mod driver): device-mapper: one of name or uuid must be supplied, cmd (12) I ran vgchange under strace and here is the following snippet: open("/dev/mapper/control", O_RDWR|O_LARGEFILE) = 9 ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) mlockall(MCL_CURRENT|MCL_FUTURE) = 0 brk(0x8936000) = 0x8936000 brk(0x8b1e000) = 0x8b1e000 getpriority(PRIO_PROCESS, 0) = 20 setpriority(PRIO_PROCESS, 0, -18) = 0 ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) ioctl(9, DM_DEV_STATUS, 0x8109958) = -1 ENXIO (No such device or address) stat64("/dev/ide/host0/bus0/target0/lun0/part10", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 10), ...}) = 0 stat64("/dev/ide/host0/bus0/target0/lun0/part11", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 11), ...}) = 0 stat64("/dev/ide/host0/bus0/target0/lun0/part12", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 12), ...}) = 0 ioctl(9, DM_DEV_CREATE, 0x8109958) = 0 ioctl(9, DM_TABLE_STATUS, 0x8109958) = -1 EINVAL (Invalid argument) write(2, " ", 2) = 2 write(2, "device-mapper: table ioctl faile"..., 51) = 51 write(2, "\n", 1) = 1 3. When I try to mount the filesystem in that LV, it fails. I tried with different filesystem types and it's the same result. From within the 2.4 kernel based initrd, it fails. If I reboot into the 2.6 kernel based installer environment, no problem. This looks like an incompatibility between the lvm2 and/or device-mapper library code and the kernel device-mapper code. Here are the versions installed in the new installation and its initrd: lvm2-2.02.05 device-mapper-1.02.03 gentoo-sources-2.4.32-r4 livecd 2.4 # ls -l /etc/make.profile lrwxrwxrwx 1 root root 51 May 11 18:09 /etc/make.profile -> /usr/portage/profiles/default-linux/x86/no-nptl/2.4 -- gentoo-admin@gentoo.org mailing list