3 if [ ! -x /sbin/lvm ]; then
7 echo "Configuring LVM volumes"
9 if [ ! -d /tmp/lvm2 ]; then
13 export LVM_SYSTEM_DIR=/tmp/lvm2
15 # Scan for volume groups
16 /sbin/lvm vgscan --mknodes --ignorelockingfailure &> /dev/null
18 # Change volume availability to yes
19 /sbin/lvm vgchange --ignorelockingfailure -a y > /dev/null
21 # Get a list of volumes and display it
22 LV_LIST=$( /sbin/lvm vgdisplay -C -o vg_name --noheadings 2> /dev/null )
23 echo " Activated Volume Groups: $LV_LIST"