AOE support (was: Re: FAI and debian live)
Jean Spirat wrote:
>>> ii live-initramfs 1.139.1-3 Debian
>>> Live initramfs hook
>
> in theory it is a debien lenny ... :(
> so if this is not the good one i have a problem !! i will check.
1.154.5-1 migrated today, however, before that, 1.154.3-1 was the
version in testing.
> i used a pastebin service on the web so the mail is easier to read :)
hm, for reference purpose, it's good to have the stuff in the
mailinglist, and not on a temporary pastebin where they dissapear in a
while, therefore.. pasting here (replaced the MACs with XXs for privacy
reasons):
>>> on the initrd i just added a init-premount/aoe script that:
initramfs-tools/hooks/aoetools:
#!/bin/sh
set -e
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
[ -x /sbin/aoe-discover ] && copy_exec /sbin/aoe-discover /sbin
[ -x /sbin/aoe-stat ] && copy_exec /sbin/aoe-stat /sbin
manual_add_modules aoe
and initramfs-tools/scripts/init-premount/aoetools
#!/bin/sh
set -e
PREREQ="udev"
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
ifconfig lo up
case $ROOT in
/dev/etherd/e*)
INTERFACES=`sed -ne '/eth.*:/{s/:.*$//;p;}' < /proc/net/dev`
for i in $INTERFACES; do
echo Bringing up interface $i for AoE
ifconfig $i up
done
# Make sure udev has processed all events from adding the NIC
# modules before loading aoe
[ -x /sbin/udevsettle ] && /sbin/udevsettle --timeout=30
modprobe aoe
# Wait until aoe device files have been generated.
[ -x /sbin/udevsettle ] && /sbin/udevsettle --timeout=30
aoe-discover;
sleep 10;
aoe-discover;
sleep 10;
aoe-discover;
sleep 30
;;
esac
>>> and also a udev rule to rename ethx so they are in good order
etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x105e (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth3"
# PCI device 0x14e4:0x165a (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
# PCI device 0x14e4:0x165a (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"
# PCI device 0x8086:0x105e (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth2"
>> looks like a check doesn't cover AOE specific device names/patches and
>> thus fails, and therefore very easy to fix. can i please see the
>> *complete* live.log from debug mode?
>>
> here it is:
>
> http://www.web-ig.com/code/wyytvy-130
seperate mail in a couple of minutes.
--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email: daniel.baumann@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/
Reply to: