[linux-lvm] 0.9 tools compatible with 0.8 kernel? (and vice versa)

Claudio Matsuoka claudio at conectiva.com
Sat Dec 23 18:46:52 UTC 2000

On Sat, 23 Dec 2000, Paul Jakma wrote:

> on-disk LVM isn't touched though, right? so it's just a tools issue,
> right? ie, booting lvm 0.9 isn't going to leave me with on-disk
> structures that 0.8 would barf on?

It's tools + kernel, but the files in /etc/lvmtab.d are different
(so make sure you're doing a vgscan after the root filesystem is
mounted read-write).

> > rpm http://distro.conectiva.com.br/experimental/
> excellent. thanks!

LVM initialization is tricky -- just calling lvmiopversion to load
lvm-mod with IOP 10 (lvm 0.9) didn't work in all machines I tried :\
An explicit insmod may be necessary. Something is being delayed in
the module initialization, it would be nice to fix this as well in
future versions.

Also to avoid a "failed" status (in RH-style initscripts) when you have
the tools installed but no VGs configured, you may need to do something

# Set up LVM
# Warning: this requires lvm-base >= 1.0-4cl

activate_lvm() {
    lvm_msg="Activating logical volumes (LVM IOP $1): "
    (/sbin/vgscan; /sbin/vgchange -a y) >/dev/null 2>&1
    if [ $? -eq 0 ]; then
        action "$lvm_msg" true
        action "$lvm_msg" false

if [ -x /sbin/lvmiopversion ]; then
    insmod -q lvm-mod >/dev/null
    if [ $iopver -gt 0 -a $iopver -lt 10 ]; then
        grep -q VG /proc/lvm && activate_lvm $iopver
        grep -q VG /proc/lvm/global && activate_lvm $iopver

just after the root fs is mounted read-write. I still prefer debian-style
initialization, but if you're using RH/Mandrake/Conectiva you'll probably
have to put that in rc.sysinit.


More information about the linux-lvm mailing list