Changeset 2925 in MondoRescue


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
Location:
branches/3.0/mindi
Files:
2 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
  • branches/3.0/mindi/rootfs/etc/init.d/rcS

    r2918 r2925  
    657657    # In some cases, the OBDR tape remains in CD-ROM mode. This branch solves that issue (#498)
    658658    if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg 2>/dev/null`" ] && [ -x /usr/bin/hpsa_obdr_mode ]; then
    659             for lun in `/usr/bin/hpsa_obdr_mode -m query /dev/cciss/* 2>&1 | grep "is an OBDR device" | cut -d' ' -f4`; do
     659        for lun in `/usr/bin/hpsa_obdr_mode -m query /dev/cciss/* 2>&1 | grep "is an OBDR device" | cut -d' ' -f4`; do
    660660            /usr/bin/hpsa_obdr_mode -m query -l $lun /dev/cciss/* 2>&1 | grep -q "is in CD-ROM mode"
    661661            if [ $? -eq 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.