
4th April 2009, 22:43
|
|
Senior Member
|
|
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
|
|
Using ISPConfig on mirrored primary and secondary servers
I hope Till or Falko sees this because they've covered articles about it before.
I've been experimenting with ways to do two Linux servers using ISPConfig, and Webmin. I used past discussions get the idea how to set it up so I could use my second server as a backup to the first, as well as a slave nameserver. I then used rsync and mysql database replication to keep the backup server up to date.
This first problem I found was when you add a new site to the primary server using ISPConfig, it mirrors the database to the second server so now ISPConfig has the entry there as well. The problem is the site doesn't actually get made on the second server, just the entry in the DB so it looks to ISPConfig that it's there. I then thought to kill the database replication for ISPConfig to the second server, and do the entry manually. That would work except, do I make it a master, or slave file? If I make it a slave, will it still work if I have to switch over and use the secondary if the primary server went down?
I know this would all be moot it I would get brave, and redo everything to use the High-Availability Load Balancer setup.
|

5th April 2009, 15:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
Originally Posted by wxman
This first problem I found was when you add a new site to the primary server using ISPConfig, it mirrors the database to the second server so now ISPConfig has the entry there as well. The problem is the site doesn't actually get made on the second server, just the entry in the DB so it looks to ISPConfig that it's there.
|
Yes, that happens because the /home/admispconfig/ispconfig/.run file is missing - it gets created whenever you change anything in ISPConfig, so that the backend knows that it has to write some configuration files. If you mirror that file over to the second server as well, everything should be fine.
|

5th April 2009, 15:19
|
|
Senior Member
|
|
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
|
|
Thanks Falco I'll give it a try today.
I went looking for that file on my primary server, but it wasn't there. Does it get removed, if so, how long is it there?
Last edited by wxman; 5th April 2009 at 15:37.
|

5th April 2009, 19:57
|
|
Senior Member
|
|
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
|
|
Mirrored primary and secondare:
How did you do to mirror /etc/passwd and shadow to the secondary server ?
rgds
Marcus
|

6th April 2009, 13:55
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
Originally Posted by wxman
I went looking for that file on my primary server, but it wasn't there. Does it get removed, if so, how long is it there?
|
It is created once you change something in the web interface; the ispconfig_wconf process checks the existence of the file every 10 seconds, and if it is there, it performs the necessary tasks and then deletes that file.
|

8th April 2009, 04:03
|
|
Senior Member
|
|
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
|
|
Quote:
Originally Posted by falko
It is created once you change something in the web interface; the ispconfig_wconf process checks the existence of the file every 10 seconds, and if it is there, it performs the necessary tasks and then deletes that file.
|
How do you copy that without making a cron check for it every 10 seconds?
Quote:
Originally Posted by trexen
Mirrored primary and secondare:
How did you do to mirror /etc/passwd and shadow to the secondary server ?
|
Good question. That's not being done well either. I wonder what else I'm missing.
|

8th April 2009, 13:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Quote:
Originally Posted by wxman
How do you copy that without making a cron check for it every 10 seconds?
|
Good question. Maybe you have to write a script that takes care of this.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 15:54.
|
Recent comments
1 day 6 hours ago
1 day 15 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 16 min ago
2 days 1 hour ago
2 days 17 hours ago
2 days 18 hours ago