From 8bf44b15fab3205e25ae8d2564f5b9d6aa0b723d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 21 Mar 2008 21:17:57 +0000 Subject: [PATCH] -Have nbroot set to be picky about form of arp responses -Have nbroot do a ping, to force the discover server to have correct arp table, avoid race by having it done client side instead of server side git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@871 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/bin/dodestiny | 3 +++ xCAT-nbroot/overlay/etc/init.d/S10autodetect | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/xCAT-nbroot/overlay/bin/dodestiny b/xCAT-nbroot/overlay/bin/dodestiny index 8ffd6f5e1..89b039cd2 100755 --- a/xCAT-nbroot/overlay/bin/dodestiny +++ b/xCAT-nbroot/overlay/bin/dodestiny @@ -72,6 +72,7 @@ while :; do echo "$SERIAL" fi echo "" ) > /tmp/discout + ping -c 1 $XCATMASTER cat /tmp/discout | udpcat.awk $XCATMASTER $XCATPORT & #can't figure out how to make a hung gawk behave.. if usleep 8000000 #Give the preferred method 5 seconds to complete before resorting then @@ -81,8 +82,10 @@ while :; do for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do ifconfig $dnic down done + ping -c 1 $XCATMASTER cat /tmp/discout | udpcat.awk $XCATMASTER $XCATPORT & #can't figure out how to make a hung gawk behave.. for dhcps in `cat /tmp/dhcpserver`; do + ping -c 1 $dhcps cat /tmp/discout | udpcat.awk $dhcps $XCATPORT & done for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index a6e2545c8..17ce12969 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -12,6 +12,12 @@ echo "cat /etc/motd" >> /etc/profile modprobe ohci-hcd modprobe uhci-hcd modprobe ehci-hcd + + +for d in /proc/sys/net/ipv4/conf/*; do + echo 1 > $d/arp_filter + echo 1 > $d/arp_ignore +done for i in $(lspci -n | awk '{print $1 "%" $3}') do PCI=$(echo $i | awk -F% '{print $1}')