From: Marc G. <gr...@at...> - 2007-11-07 17:19:35
|
On Tuesday 06 November 2007 13:48:56 go...@bo... wrote: > On Tue, 6 Nov 2007, Mark Hlawatschek wrote: > >> I'm having a problem with the way the ifcfg-eth* files are being handled > >> for the initrd. My ifcfg-eth1 file doesn't get transferred across > >> verbatim. This is a problem because I have to explicitly specify the > >> HWADDR in my ifcfg files (therwise they come up on wrong subnets). > > > > The initrd creates new ifcfg-ethX files for the defined ethernet > > interface for its internal use. I.e. for all <eth /> entries for the node > > in the cluster.conf. These file are only valid inside the initrd. > > Sure, but the iSCSI interface has to be the same in root and initrd, > otherwise it won't work. > > >> It looks as if mkinitrd removes some lines from the file, and this > >> causes eth1 to be physical eth0, which puts it on the wrong subnet, and > >> that means it can't see the iSCSI shares. :-( > >> > >> I checked the /etc/sysconfig/network-scripts/ifcfg-eth1 in the initrd, > >> and it is indeed lacking the HWADDR line (and a few others). > >> > >> Am I missing something here? Does mkinitrd mangle the ifcfg-eth* files? > > > > The mkinitd does not modify the ifcfg-ethX files. > > If you want to define the HWADDR parameter in the ifcfg-ethX files, you > > have to make them hostdependent. > > I did, but network-lib.sh checks if it's in the initrd, and if so saves > a backup and creates a new one from the parameters that come from > elsewhere (I'm assuimg from cluster.conf). > > The new one doesn't have the HWADDR parameter in it, because it isn't one > of the things passed to network-lib.sh. So, any interface that are bound > by MAC address rather than the default ordering won't work properly in the > initrd. I have interface name, ip and mac specified in cluster.conf, but > it never gets included in the built ifcfg file. :-( That's a known "Bug" I dare say ;-) . But it should not be a big thing to change, should it?! Try the rpm attached. What do you think? Marc. > > Gordan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Open-sharedroot-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open-sharedroot-devel -- Gruss / Regards, Marc Grimme Phone: +49-89 452 3538-14 http://www.atix.de/ http://www.open-sharedroot.org/ ** ATIX Informationstechnologie und Consulting AG Einsteinstr. 10 85716 Unterschleissheim Deutschland/Germany Phone: +49-89 452 3538-0 Fax: +49-89 990 1766-0 Registergericht: Amtsgericht Muenchen Registernummer: HRB 168930 USt.-Id.: DE209485962 Vorstand: Marc Grimme, Mark Hlawatschek, Thomas Merz (Vors.) Vorsitzender des Aufsichtsrats: Dr. Martin Buss |