Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th September 2006, 14:46
julez julez is offline
Junior Member
 
Join Date: Jan 2006
Location: Berlin, Germany
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default "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.

Settings:

- old server has IP x.x.x.61 and hostname mr1.xxxx.xxx
- new ISPConfig-server has IP x.x.x.62 and hostname mr2.xxxx.xxx

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 mr1.xxxxx.xxx.

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...

jz
Reply With Quote
Sponsored Links
  #2  
Old 20th September 2006, 09:30
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

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...
Reply With Quote
  #3  
Old 20th September 2006, 12:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,016
Thanks: 826
Thanked 5,379 Times in 4,226 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 25th September 2006, 14:41
julez julez is offline
Junior Member
 
Join Date: Jan 2006
Location: Berlin, Germany
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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]

jz
Reply With Quote
  #5  
Old 26th September 2006, 17:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

These threads might also be interesting for you: http://www.howtoforge.com/forums/sho...ving+ispconfig
http://www.howtoforge.com/forums/showthread.php?t=2760
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 Setup DNS and ISPCONFIG issues The General Installation/Configuration 7 15th May 2006 09:45
Change hostname in ISPConfig? crow Installation/Configuration 4 29th April 2006 23:32
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
ISPConfig - Install/Update deletes hostname from my domain from admin URL Prompt Developers' Forum 4 22nd November 2005 23:01
Server Hostname and IPSConfig Lil'Brudder Installation/Configuration 2 14th October 2005 12:46


All times are GMT +2. The time now is 16:38.


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