Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sanboot:debian_and_ubuntu [2007/12/12 03:02] bengen added some details about troubleshooting |
sanboot:debian_and_ubuntu [2007/12/12 06:11] (current) bengen typo |
||
|---|---|---|---|
| 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 212: | ||
| 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 217: | ||
| 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/udevsettle ] && /sbin/udevsettle --timeout=30 | ||
| modprobe aoe | modprobe aoe | ||
| + | # Wait until aoe device files have been generated. | ||
| + | [ -x /sbin/udevsettle ] && /sbin/udevsettle --timeout=30 | ||
| aoe-discover | aoe-discover | ||
| ;; | ;; | ||