[linux-lvm] determing lvm support

Rich Turner rich at storix.com
Fri Dec 19 18:49:01 UTC 2003


is there any fool proof way of knowing whether or not a system has lvm
support?

right now i determine it this way:

lvm1:
look for "vgcreate" command and
look for "lvm" in /proc/devices or
look for "lvm-mod" in /lib/modules/[release]/kernel/drivers/md/*

lvm2:
look for "vgcreate" command and
look for "device-mapper" in /proc/devices or
look for "dm-mod" in /lib/modules/[release]/kernel/drivers/md/*

i think i am fairly certain with lvm1, but with lvm2 i am not sure if i
have device mapper support and a lvm command that is enough.

any ideas?

rich turner





More information about the linux-lvm mailing list