[linux-lvm] determining lv from mount point

Galen Seitz galens at seitzassoc.com
Tue Sep 23 16:21:02 UTC 2003

Montgomery, Kendal L <kendal.montgomery at qwest.com> wrote:

> DEVICE=$(df ${1} | grep -v ^Filesystem | awk '{ print $1 }')
> lvscan | grep ${DEVICE} > /dev/null 2>&1

Is using lvscan preferable to something like this
lvdisplay ${DEVICE} > /dev/null 2>&1

I'm currently using LVM, not LVM2 (sorry, I should have said that in the
first message).  Will this method work for LVM2 as well?


More information about the linux-lvm mailing list