[CentOS] Run one-time startup script

Arun Khan knura9 at gmail.com
Sun Sep 22 06:11:10 UTC 2013


On Fri, Sep 20, 2013 at 9:11 PM, John R Pierce <pierce at hogranch.com> wrote:

> On 9/20/2013 5:31 AM, Kai Schaetzl wrote:
> > I have to change IP numbers across a number of virtual and physical
> > machines because of network center move. This has to be done before
> > network startup, of course. I'm thinking about the best method to do
> this.
> > Where should I include/init this script? Or would it rather make more
> > sense to do this on the last shutdown?
>
> reconfigure the servers to use dhcp and configure the hosts via
> reservations on the dhcp servers.  new location on a new subnet would
> have require reservations, reboot and voila!
>
> DNS should be taking care of any application stuff (when the servers are
> moved, their entries are updated on the DNS servers)


+1 to DNS + DHCP.

1. Configure your DNS A entries to the new IP scheme.
2. Configure your DHCP to give out fixed IP based on the MAC addresses of
your servers and their respective IP number in your new DNS scheme.
3. Configure the systems to do DHCP and they should boot up with the new IP
numbers.
3. Services like Postfix, NFS  etc. should be using DNS names rather than
IP numbers IMO, so the changes should be minimal if any.

-- Arun Khan
Sent from my non-iphone/non-android device



More information about the CentOS mailing list