Changeset 2243


Ignore:
Timestamp:
Jun 30, 2009, 4:10:54 PM (10 years ago)
Author:
bruno
Message:
  • Fix analyze-my-lvm to only handle active logical volumes (avoids to exit prematurely without doing the whole analysis in case some volumes are inactive)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/analyze-my-lvm

    r2170 r2243  
    198198ListAllLogicalVolumes() {
    199199    if [ $lvmversion = 2 ]; then
    200         $LVMCMD lvscan 2> /dev/null | grep "'" | cut -d"'" -f2
    201     else
    202         lvscan 2> /dev/null | grep '"' | cut -d'"' -f2
     200        $LVMCMD lvscan 2> /dev/null | grep "'" | grep -i "ACTIVE" | cut -d"'" -f2
     201    else
     202        lvscan 2> /dev/null | grep '"' | grep -i "ACTIVE" | cut -d'"' -f2
    203203    fi
    204204}
Note: See TracChangeset for help on using the changeset viewer.