Changeset 2571 in MondoRescue


Ignore:
Timestamp:
Feb 3, 2010, 4:20:35 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug in the vgcreate command generation where too many PVs were mentioned, due to the extension of the list. We now use a $current_PVs variable which is limited to what i needed
File:
1 edited

Legend:

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

    r2567 r2571  
    134134    if [ $lvmversion = 2 ]; then
    135135        VG_params=`GenerateVgcreateParameters $current_VG`
    136         list_of_devices=`$LVMCMD pvs | grep " $current_VG " | awk '{print $1}'`
     136        current_PVs=`$LVMCMD pvs | grep " $current_VG " | awk '{print $1}'`
     137        list_of_devices=$current_PVs
    137138    else
    138139        info_file=/proc/lvm/VGs/$current_VG/group
     
    145146            list_of_devices="$list_of_devices $device"
    146147        done
     148        current_PVs=$list_of_devices
    147149    fi
    148150    l=""
     
    164166        done
    165167    fi
    166     echo "# $LVMCMD vgcreate $current_VG$VG_params $list_of_devices"
     168    echo "# $LVMCMD vgcreate $current_VG$VG_params $current_PVs"
    167169    echo "# $LVMCMD vgchange -a y $current_VG"
    168170}
Note: See TracChangeset for help on using the changeset viewer.