#1  
Old 22nd October 2012, 20:02
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default Making a mirror server

Welcome I have made one machine runnig with The Perfect Setup with Ubuntu 12.04 and ISPConfig3 which supports my main portal. As my portal has recently developed (over 600 users online in peak time) my one machine (Quad 9550, 4GB RAM) is not working properly in peak times. I have one spare machine (with same parameters) and I would like to mirror primary machine in order to make better permormance for my portal. And now how am I supposed to do it? I must install spare copy of Perfect setup on new machine and what then? Is there any manual for this?
Reply With Quote
Sponsored Links
  #2  
Old 23rd October 2012, 08:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Did you take a look at ispconfig.org were all installation manuals are listed? There is a section for muliserver tutorials and there you find the cluster guide

http://www.howtoforge.com/installing...th-ispconfig-3
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd October 2012, 10:21
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thank you Till! As always useful replay from you!

But I have one more question: in this tut there's said that two servers must be configured with the basic setup (only 1-8steps) - and there is a problem as my primary machine is running for few months and is fully configured - only the secondary machine will be setuped with the basci setup. Will it cause any problems during and after the installation?
Reply With Quote
  #4  
Old 28th October 2012, 01:12
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

Till can U give me some feedback one more time? Im doing my cluster with tutorial (http://www.howtoforge.com/installing...th-ispconfig-3) and i am on the step when i am supposed to add in /etc/mysql/my.cnf
Code:
 [mysqld]
server-id = 1
replicate-same-server-id = 0
auto-increment-increment = 2
auto-increment-offset = 1
 
master-host = 192.168.0.106
master-user = slaveuser
master-password = slave_user_password
master-connect-retry = 60   
 
expire_logs_days        = 10
max_binlog_size         = 500M
and after adding it and then after running commands
Code:
 scp -pr /var/lib/mysql/* root@server2.example.tld:/var/lib/mysql/
 scp -pr /etc/mysql/debian.cnf root@server2.example.tld:/etc/mysql/debian.cnf
I cannot start my mysql server.
So summarising: after stopping mysql service and editing /etc/mysql/my.cnf there is no way to restart MySQL again.

Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
Reply With Quote
  #5  
Old 28th October 2012, 18:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

The mysql server on the master or the slave and which error messages do you get in the syslog?

A mirror setup were one server is in production is possible, but its not easy and may cause problems as the configuration exists already on one server and e.g. the system users and groups and also the records for the mirror database are missing on the second server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 28th October 2012 at 18:32.
Reply With Quote
  #6  
Old 28th October 2012, 19:56
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

The mysql server on both master and slave server act as I described it above (do not start/restart after adding those commands from tut to [mysqld] section).

Output of syslog:
Code:
Oct 28 19:52:41 hasty kernel: init: mysql main process (4303) terminated with status 7
Oct 28 19:52:41 hasty kernel: init: mysql main process ended, respawning
Oct 28 19:52:41 hasty kernel: init: mysql post-start process (4304) terminated with status 1
Oct 28 19:52:43 hasty kernel: init: mysql main process (4353) terminated with status 7
Oct 28 19:52:43 hasty kernel: init: mysql main process ended, respawning
Oct 28 19:52:43 hasty kernel: init: mysql post-start process (4354) terminated with status 1
Oct 28 19:52:45 hasty kernel: init: mysql main process (4403) terminated with status 7
Oct 28 19:52:45 hasty kernel: init: mysql respawning too fast, stopped
Oct 28 19:53:01 hasty CRON[4647]: (root) CMD (/usr/local/rtm/bin/rtm 46 > /dev/null 2> /dev/null)
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
F11 courier-imap fails. Nachogrande General 6 1st November 2010 17:55
Issue compiling kernel 2.6.19.1 in Ubuntu 6.10 sqrtof3 Kernel Questions 14 9th April 2010 19:43
Install failure -- Apache 1.3 missing? Allen15 Installation/Configuration 11 24th February 2009 09:53
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 10:37
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46


All times are GMT +2. The time now is 05:21.


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