From: Micah Anderson Subject: Re: [linux-lvm] determing lvm support Message-ID: <20031220185413.GB10107@buffy.riseup.net> References: <1071881237.1464.14.camel@rich> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <1071881237.1464.14.camel@rich> Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Sat Dec 20 12:55:02 2003 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@sistina.com 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.