xcat-core/xCAT-server/share/xcat
sikorsky 571c1bae2d Allows diskless nodes to boot via other interfaces aside of primary boot interface, ie. provides ethernet failover.
1) In initrd, bring up aside from main interface (genimage -i option) also other interfaces (-r option).
2) /etc/resolv.conf creation needed to be rewritten, othewise it gets confused by several dhcpcd records.
3) Fill database with MAC addresses for all interfaces. Since it't not possible to have several stanzas of the same name in dhcpd.conf, we need to define unique "alias" for every interface. For example, for host "host1" we will add '00:1A:64:5D:1B:84!host1e0|00:1A:64:5D:1B:86!host1e1' to macs table. Of course, this aliases have to be defined in DNS, otherwise makedhcp command will not use this aliases:
/etc/hosts:
10.217.249.232  host1   host1e0 host1e1
Since this are aliases (need not be nessesary), both interfaces get the same IP address during initrd, but this doesn't break anything.
  a) blades - changed getmacs function to gather all MAC addresses. Which interfaces we are interested in are defined in noderes.installnic or noderes.primarynic as "eth0|eth1".
  b) all other - TODO. We have only 8 non-blade nodes, so we fill database manually.
Backwards compatible:
      - if there is only one interface in noderes.installnic, getmacs function gathers only this one MAC address
      - if we run genimage without -r option, only one interface is brought up


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-10 15:04:32 +00:00
..
ca -Move xCAT-server and client to not have 2.0 in name for trunk 2008-06-03 14:56:33 +00:00
cons Change blade console method to avoid direct Table access, to alleviate SQL load and be throttled like other xCAT accesses 2008-08-16 14:44:41 +00:00
install added autoyast file for installing sles to a xen host 2008-06-27 15:25:42 +00:00
netboot Allows diskless nodes to boot via other interfaces aside of primary boot interface, ie. provides ethernet failover. 2008-09-10 15:04:32 +00:00
postscripts -Move xCAT-server and client to not have 2.0 in name for trunk 2008-06-03 14:56:33 +00:00
scripts -Move xCAT-server and client to not have 2.0 in name for trunk 2008-06-03 14:56:33 +00:00
tools add new routine, change permissions 2008-08-08 13:28:39 +00:00