HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   "Hot-swap" IP and hostname of ISPConfig-server (

julez 19th September 2006 15:46

"Hot-swap" IP and hostname of ISPConfig-server
Hi developers, hi forum,

we need to "hot-swap" a server after syncing all userdata from the old one. after that, we want to "switch" servers.


- old server has IP x.x.x.61 and hostname
- new ISPConfig-server has IP x.x.x.62 and hostname

How we want to do it [short version]:

- Set up all domains and user-accounts according to the old server. [That one is already scripted and working]
- Set shadow hashes from old server for all users. [already scripted and working]
- Shutdown sendmail on old server [backup-mx will catch eMails meanwhile]
- rsync mailboxes from old server to new ISPConfig-server. chown owners and permissions of synced mailboxes on new ISPConfig-server according to ISPConfig user-ids and groups.[already scripted, too]

As final steps we need to shutdown the old server and change the IP of the new ISPConfig-server to x.x.x.61 and its hostname to

Now ISPConfig-settings need to be "hacked" to write new settings to keep on working itself and change all zonefiles and vhosts... what else?!?

Is this possible?

What else do we need to do by hand?

What did i forget?

Thx in advance for every useful hint...


Ben 20th September 2006 10:30

Actually I'm not sure which options has to be set to regenerate the configfiles...

but I thinkg you forgot DNS's TTL??? Or do you have the ability to NAT / forward the traffic from .61 to .62?
I mean you can lower the TTL, but misconfigured Caches won't care about that...

till 20th September 2006 13:40

ISPConfig can write or update the settings for you.

Some of the database tables have a field status, especially interesting for you are the tables isp_isp_web and dns_isp_dns. The status field may have 3 values:

n = create a new item
u = update a item
d = delete a item

After you set the status value in the databse, execute the following command on the shell:

touch /home/admispconfig/ispconfig/.run

julez 25th September 2006 15:41

Hi till,

so there is no reason to worry about changing the hostname and ip-address of the server?

I'd pefer _not_ to do all the work twice for about 750 domains.

I think, everyone here can understand that. [grins]


falko 26th September 2006 18:47

These threads might also be interesting for you:

All times are GMT +2. The time now is 03:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.