In our day to day operations, LVM plays a major role as part of system admin work. Therefore, I wrote a one-liner script to find out the volume group of a filesystem

df -g |grep -v Filesystem |awk '{print $1}' |cut -c6- |while read LV; do lslv $LV ;done |grep "VOLUME GROUP" |awk '{print $6}' |while read VG; do lsvg $VG;done