Changeset 2703 in MondoRescue for branches/2.2.10/mindi/analyze-my-lvm


Ignore:
Timestamp:
Jan 27, 2011, 7:31:20 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4179@localhost: bruno | 2011-01-27 08:06:03 +0100

  • Replace usage of pvs with pvscan for speed reasons in analyze-my-lvm (still some speed optimizations to do in that script)
  • Workaround problems met on RHEL 5.2 and 5.4 around pvs command generating a list of \n separated pvs with back quotes in an unexpected way. Could be linked to a b ash bug in this context ?
  • Adds /etc/rpc and /etc/netconfig as minimal deps for mindi for latest NFS support (mdv 2010.2 at least)


Port 2.2.9 recent changes to 2.2.10
svk merge -r 4174:4178 local/mondorescue/branches/2.2.9 .

File:
1 edited

Legend:

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

    r2696 r2703  
    134134    if [ $lvmversion = 2 ]; then
    135135        VG_params=`GenerateVgcreateParameters $current_VG`
    136         current_PVs=`$LVMCMD pvs | grep " $current_VG " | awk '{print $1}'`
     136        current_PVs=`$LVMCMD pvscan | grep " $current_VG " | awk '{print $2}' | tr '\n' ' '`
    137137        list_of_devices=$current_PVs
    138138    else
     
    142142        list_of_devices=""
    143143        for i in $physical_volumes ; do
    144             fname=/proc/lvm/VGs/$current_VG/PVs/$i
    145             device=`GetValueFromField $fname "name:"`
    146             list_of_devices="$list_of_devices $device"
     144            fname=/proc/lvm/VGs/$current_VG/PVs/$i
     145            device=`GetValueFromField $fname "name:"`
     146            list_of_devices="$list_of_devices $device"
    147147        done
    148148        current_PVs=$list_of_devices
Note: See TracChangeset for help on using the changeset viewer.