Re: determining lv from mount point

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Montgomery, Kendal L <kendal.montgomery@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?

thanks,
galen
 

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux