[rock-user] Rock Linux 2.6 kernel and LVM2 HOWTO
"Alan J.Wylie" <ebpxyvahk-gCrXjPrFnW/[email protected]>
| Newsgroups | gmane.linux.distributions.rock.user |
|---|---|
| Message-ID | <[email protected]> |
1) compile kernel with option
Device Drivers --->
Multi-device support (RAID and LVM) --->
[*] Multiple devices driver support (RAID and LVM)
(CONFIG_MD=y)
2) remove LVM1
mine -r lvm
3) get sources for device-mapper and LVM2 from the links at
http://sources.redhat.com/dm/ and
http://sources.redhat.com/lvm2/
4) configure, compile and install device-mapper
configure LVM2, *DO NOT* enable readline support - the readline
library is on /usr, and this may not be available early in the
boot. Compile and install.
5) ensure the dm-mod module is insmod'd/modprobe'd early on. Also add
the --ignorelockingfailure switch to vgchange. Without this,
vgchange tries to access /var/lock/lvm, which 1) may not be
mounted, and 2) the root partition will still be read-only at this
point.
The error message is something like
"locking type 1 initialisation failed"
--- /var/tmp/xxx/etc/rc.d/init.d/system 2004-04-29 15:06:46.000000000 +0100
+++ system 2004-05-01 19:04:36.000000000 +0100
@@ -66,7 +66,8 @@
status
title "Activating Volume Groups..."
- /sbin/vgchange -ay || error=$?
+ modprobe dm-mod
+ /sbin/vgchange --ignorelockingfailure -ay || error=$?
fi
status
--
Alan J. Wylie http://www.wylie.me.uk/
"Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away."