Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am working to setup a high availability cPanel server. I have two servers on same data center. The cPanel server has got 150 websites and 15 ip addresses where 1 is main shared ip and 14 other dedicated IP's. Can DRBD and Heartbeat be used to make s system where the data is properly synced and when one server goes down, the websites should start loading from the other server. Also all the IP's should be moved to the other server when one fails. Is this possible?

If possible will the system crashes with cpanel normal update?

share|improve this question

1 Answer 1

A few notes:

1) you want to run DRDB on the /home filesystem (for user data and also (/var/cpanel/userdata, /etc/v* for email routing) and will need to make duplicate copies of the rest of the cpanel account information. cPanel as a product does not do locking in all the places you need to have DRDB setup not cause issues.

2) You are going to want a unique IP address for each server. Then have all your websites on IPs routed to the same vlan, so they can be used on either server. This is something you need to work out with your data center.

3) Your database server / php session info needs to be running in a third server. This way you could even load balance between the two servers as needed during high load.

Hope that helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.