Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
sanboot:debian_and_ubuntu [2007/12/12 03:02]
bengen added some details about troubleshooting
sanboot:debian_and_ubuntu [2007/12/12 06:09]
bengen local-top/aoetools: replace sleep with call to udevsettle
Line 160: Line 160:
    * Has the ''​aoe''​ kernel module ben loaded?    * Has the ''​aoe''​ kernel module ben loaded?
    * Does ''/​dev/​aoe/''​ exist, does it contain the necessary entries?    * Does ''/​dev/​aoe/''​ exist, does it contain the necessary entries?
 +
  
 ==== Scripts ==== ==== Scripts ====
Line 210: Line 211:
 case $ROOT in case $ROOT in
 /​dev/​etherd/​e*) /​dev/​etherd/​e*)
- # INTERFACES=`awk -F: '/​eth[0-9]*:/​ { print $1 }' < /​proc/​net/​dev` 
  INTERFACES=`sed -ne '/​eth.*:/​{s/:​.*$//;​p;​}'​ < /​proc/​net/​dev`  INTERFACES=`sed -ne '/​eth.*:/​{s/:​.*$//;​p;​}'​ < /​proc/​net/​dev`
  for i in $INTERFACES;​ do  for i in $INTERFACES;​ do
Line 216: Line 216:
  ifconfig $i up  ifconfig $i up
  done  done
- sleep 5+ # Make sure udev has processed all events from adding the NIC 
 + # modules before loading aoe 
 + [ -x /​sbin/​settle ] && /​sbin/​udevsettle --timeout=30
  modprobe aoe  modprobe aoe
 + # Wait until aoe device files have been generated.
 + [ -x /​sbin/​settle ] && /​sbin/​udevsettle --timeout=30
  aoe-discover  aoe-discover
  ;;  ;;

QR Code
QR Code sanboot:debian_and_ubuntu (generated for current page)