Changeset 2925 in MondoRescue for branches/3.0/mindi/analyze-my-lvm


Ignore:
Timestamp:
Dec 22, 2011, 11:59:41 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug in analyze-my-lvm where LVs were created in random order (the one of lvscan) instead of using the dm-xxx order, which creates issues at restore time between the mapping created then and the one we had at backup time which could be inconssistent
File:
1 edited

Legend:

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

    r2852 r2925  
    291291}
    292292
     293ListAllLogicalVolumesSortedBydm() {
     294        for d in `ListAllLogicalVolumes` ; do
     295            dm=`mindi --readalllink $d | tail -1`
     296            echo "$dm|$d" >> $MINDI_TMP/sorteddm
     297        done
     298        sort -t'|' $MINDI_TMP/sorteddm | cut -d'|' -f1
     299}
    293300
    294301ListAllLogicalVolumes() {
     
    414421echo ""
    415422echo "Finally, create the LV's (logical volumes)."
    416 all_logical_volumes=`ListAllLogicalVolumes`
     423all_logical_volumes=`ListAllLogicalVolumesSortedBydm`
    417424for current_LV in $all_logical_volumes ; do
    418425    ProcessLogicalVolume $current_LV
Note: See TracChangeset for help on using the changeset viewer.