[linux-lvm] LVM 1 volumes and 2.6.2 kernel
Eric Mathew Hopper
hopper at omnifarious.org
Tue Feb 17 02:19:37 UTC 2004
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
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:
echo "Loading jbd.ko module"
echo "Loading ext3.ko module"
echo "Loading dm-mod.ko module"
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo "Making device mapper node"
echo Creating block devices
echo Scanning logical volumes
echo Activating logical volumes
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
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 at omnifarious.org http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the linux-lvm