|
From: Rudner, B. <br...@ba...> - 2008-05-28 12:01:46
|
Hi List, I'm using DL with heartbeat - ldirector and apache for a long time now. Now I'm doing some tests with upgrades from the "old" /etc to the "new" /etc - storage. One thing that I ran over on this is the following: Since I use Apache as an active/active-cluster on two boxes I need to assign a whole bunch of secondary IP-addresses (right now > 20 virtual-IP-Addresses) to the Loopback-Interface. (Ldirector routes these from one node to the other and therefore the IP-Adresses must be known there internally - Also the Apaches bind to these addresses.) Heartbeat then removes them from the Loopback and assings them to the physical interface and issues an arp-update to the connected routers on the active node. On the other hand it removes these IP-adresses from the physical NIC and assignes it back to the Loopback as the node goes standby. At the moment I have just added some "ip addr add" commands to /etc/init.d/localnet. The adresses must be known before apache and heartbeat starts (else heartbeat will not move them back to loopback when the node goes standby) Since this is a quick & dirty method I also have to keep an eye on that file on every DL-update (it is not choosen to be kept by default on updates) Now to my question: Is there already a smarter way (I may have overlooked) to assign secondary IP-addresses to the loopback interface early in the boot-process without the need to change the init-scripts? If there is not I might try to rework the localnet-script to reflect those needs to keep this update-save. Mit freundlichen Grüßen/Kind regards, Björn Rudner Administrator phone: +49 (89) 930 839-16 pers. fax.: 01805-456 987-200 16 mobile: +49 (151) 121 623 71 e-mail: br...@ba...<mailto:br...@ba...> ____________________________________________________________________________ baulogis GmbH Zamdorfer Str. 100 81677 München / Munich Deutschland / Germany www.baulogis.com Geschäftsführer / Managing Director: Thomas Bachmaier HRB 133832, Amtsgericht München Ust-ID: DE 212 020 193 Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den bezeichneten Adressaten (dev...@li...) bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Wiedergabe des Inhalts dieser E-Mail unzulässig ist. Bitte setzen Sie sich in diesem Fall mit dem Absender der E-Mail in Verbindung (br...@ba...). |