On Sun, Feb 15, 2004 at 06:04:14PM +0000, Duncan Hill wrote: > Silly me decided a month or so back to migrate to 2.6, but I forgot that I had > a LVM1 installation on my portable drive. Said installation doesn't seem to > work now - even with dm-mod loaded, I get errors about /dev/mapper/control. > What parts am I missing? > > Fedora Core 1 > 2.6.2 kernel > lvm1 and lvm2 packages installed. I had the same problem, and the answer you got isn't the right one for Fedora Core 1. First, you want to update mkinitrd. I have mkinitrd-3.5.18-1. This will upgrade /sbin/nash to have another builtin command called 'mkdmnod'. Then you need to do a bunch of stuff to the /boot/initrd-<whatever> file. I will assume you already know how to do the whole dance necessary to mount it as a filesystem. First, copy /sbin/nash to initrd's bin directory and make a hard link to initrd's sbin directory. Then update the linuxrc file to have the command to make the device mapper node in it (mkdmnod). Here is what my linuxrc file looks like: #!/bin/nash echo "Loading jbd.ko module" insmod /lib/jbd.ko echo "Loading ext3.ko module" insmod /lib/ext3.ko echo "Loading dm-mod.ko module" insmod /lib/dm-mod.ko echo Mounting /proc filesystem mount -t proc /proc /proc echo "Making device mapper node" mkdmnod echo Creating block devices mkdevices /dev echo Scanning logical volumes vgscan echo Activating logical volumes vgchange -ay echo 0x0100 > /proc/sys/kernel/real-root-dev echo Mounting root filesystem mount -o defaults --ro -t ext3 /dev/MonstVG/monstroot /sysroot pivot_root /sysroot /sysroot/initrd umount /initrd/proc Then, do the unmount compress dance to make a new initrd file, and if you reboot using it, things should be much better. There are still some things that need doing to your rc scripts. My /dev/MonstVG directory now consists of a family of soft-links to devices in /dev/mappper, but their should be scripts and stuff lying around that handle that for you. It makes me significantly less inclined to use Debian when I discover people using it offering advice as if it's the only thing that exists. Have fun (if at all possible), -- "It does me no injury for my neighbor to say there are twenty gods or no God. It neither picks my pocket nor breaks my leg." --- Thomas Jefferson "Go to Heaven for the climate, Hell for the company." -- Mark Twain -- Eric Hopper (hopper@omnifarious.org http://www.omnifarious.org/~hopper) --
Attachment:
pgp00561.pgp
Description: PGP signature