[linux-lvm] determing lvm support

Micah Anderson micah at riseup.net
Sat Dec 20 12:55:02 UTC 2003


On Fri, 19 Dec 2003, Rich Turner wrote:

> 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 "lvm-mod" in /lib/modules/[release]/kernel/drivers/md/*

> lvm2:
> look for "dm-mod" in /lib/modules/[release]/kernel/drivers/md/*

The only problem with this step is that many kernels (any
production-level server of mine at least) do not use loadable modules,
but instead build LVM support striaght into the kernel. In these cases
your tests for the modules will fail. 





More information about the linux-lvm mailing list