Changeset 2567 in MondoRescue
- Timestamp:
- Feb 1, 2010, 6:10:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/analyze-my-lvm
r2566 r2567 54 54 # Exclude LVs member of that env var 55 55 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 56 list_of_devices="`mindi --readalllink $LV_full_string`" 57 l="" 58 for d in $list_of_devices; do 59 l="$l `GiveMapperOfdm $d`" 60 done 61 list_of_devices="`echo $l | sort -u`" 56 62 for ed in $MINDI_EXCLUDE_DEVS ; do 57 list_of_devices="`GiveMapperOfdm $LV_full_string`"58 63 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then 59 64 echo "Not including device $LV_full_string as it was excluded" … … 143 148 l="" 144 149 if [ -f /etc/multipath.conf ]; then 145 # If multipath check which type of devide care given, mpath prefered150 # If multipath check which type of devide are given, mpath prefered 146 151 for d in $list_of_devices; do 152 l="$l `mindi --readalllink $d`" 147 153 l="$l `GiveMapperOfdm $d`" 148 154 done 149 list_of_devices= $l155 list_of_devices="`echo $l | sort -u`" 150 156 fi 151 157 … … 172 178 173 179 rm -f $MINDI_TMP/pv.tmp2 180 l="" 174 181 for d in `cat $MINDI_TMP/pv.tmp`; do 175 182 # Skip devices excluded, coming from mondoarchive 176 183 skip=0 184 l="$l `mindi --readalllink $d`" 185 l="$l `GiveMapperOfdm $d`" 186 list_of_devices="`echo $l | sort -u`" 177 187 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 178 188 for ed in $MINDI_EXCLUDE_DEVS ; do 179 if [ "`echo " $ d" | grep " $ed"`" != "" ]; then189 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then 180 190 skip=1 181 191 continue … … 190 200 191 201 if [ -f /etc/multipath.conf ]; then 192 # If multipath check which type of devide care given, mpath prefered202 # If multipath check which type of devide are given, mpath prefered 193 203 if [ -f $MINDI_TMP/pv.tmp2 ]; then 204 l="" 194 205 for d in `cat $MINDI_TMP/pv.tmp2`; do 195 206 skip=0 207 l="$l `mindi --readalllink $d`" 208 l="$l `GiveMapperOfdm $d`" 209 list_of_devices="`echo $l | sort -u`" 196 210 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 197 211 for ed in $MINDI_EXCLUDE_DEVS ; do 198 if [ "`echo " $ d" | grep " $ed"`" != "" ]; then212 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then 199 213 skip=1 200 214 continue
Note:
See TracChangeset
for help on using the changeset viewer.