Link to home
Start Free TrialLog in
Avatar of Member_2_4942450
Member_2_4942450

asked on

Complete Server Mirroring

I am trying to mirror a Centos OS colo server I have. I just recently rented a temp box from my data center to start this project off a bit.

Here is the problem I am running into.
I am trying to use heartbeat and DRBD on both servers to do this unless someone here can provide me a better solution.

>>We will need a fresh partition on each servers so that we can create a DRBD between both the servers on that partition. As we cannot create a DRBD on a live partition as >>it will reinitialize it and will loose the data subsequently
>>Heartbeat can be set up without much prerequisite
>>We will need an external floating IP to be set up by the DC(working by the routers) so that we can assign them to the active server as per need
>>We will need to create internal floating IPs as well, which can be done by us(we will just need an internal IP assigned as well)

Apparently my DC can't provide me with a floating ip.


How can I setup the mirroring. Even if I had two servers in different locations how can I set this up

ASKER CERTIFIED SOLUTION
Avatar of stermeau
stermeau

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_4942450
Member_2_4942450

ASKER

What do you mean hot stand?

I am trying to set it up as an automatic failover.

This is what one fourm told me

"We will need the floating ip in order to setup heartbeat and drbd on both servers and an alternative to floating ip will be to setup NAT redirection in the iptables which is too complicated and may not work desirably. Also in the event of one server going down, NAT would start not working. In the sense, we need a floating ip to work this drdb and heartbeat."

If I can't get a automatic failover I could I guess use mirroring and if Server A were to fail manual switch to B
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well my DC said they could provide DRBD that wouldn't be a problem but the floating ip would be sense they are on two different networks.

I am looking for exact 1 to 1 mirroring both boxes have Centos os right now and both boxes have cpanel. So I would want a exact 1 to 1 mirroring going on.

But my devices (servers) are in two separate locations. One's at a DC and one is in house small business office with comcast internet and 5 statics.

Current Server A is Main
Server B is a temp sever

I want to mirror these devices as the first step. The in house server will come in play later down the road.


Usage of the server are for web/email and mysql

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK could I have DRBD setup in a mirrior

Server A - DC
Server B - inhouse

I would change change the NS server information in the event that something fail and traffic would be directed to new server????

Is this correct?


But the DRBD would contently keep these two devices in sync?

Also could I control the DRBD between the two maybe sync on a different type of schedule instead of instant sync to keep bandwidth down if I had to ????
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I want mysql replicated , website data, and email

Humm not sure what to do now. confused
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How do I know if I am using Maildir. I use cpanel?

How about replication of settings for spam program assp and cfs firewall?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok here is what I think I am going to do

Server A (main server old) called domain1.com
NS Server - ns1/ns2 domain1.com
8 Statics for about 8 websites

Server B (temp server) called domain2.com
NS Server - n1/n2 domain2.com
8 Statics for about 8 websites

What I think I am going to do first is copy all the information from Server A to Server B which I already have done.
Setup a DRBD between both servers.
I guess I will not be able to have failover but atleast I will have both servers syncing content websites/ email/ cpanel stuff / spam settings/ mysql/ etc

Sence Server A will have a different ns domain name as server B
When I get ready to pull Server A out I will switch the NS in my register to the name server of server B

Run off of server B till I get a chance to build my new server up. Once I have built my new serve up with Centos OS 5.5 64 bit and cpanel.
I will also place DRBD on the new server.

Could I then manually copy the data and settings from temp Server B over to the new server?
Or can I use DRBD to copy and mirror the stuff back over?

Once everything is copied to new server which I will assign the same domain name ns info of the server I just pulled offline.
I will have the new server fully operational and ready

Then I will go back into the register settings and change the ns server to point back to the new box.

Please advise and make suggestions on the above and let me know if this is an easy doable solution
DRBD needs available unallocated/unused space on the local harddrive.
Are currently server A and server B production?

I'd recommend you setup two servers as you think you would server A and serverB and test your procedure.

You could use VM to test this setup with VMWARE or VirtualBox.
Currently Server A is production but will not have the DRBD. Server B is not production yet but will add DRBD to the device and the new server down line
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok thanks guys..

IMHO what does this mean?

I will look more into AFS lots of commits about that I've only gone into detail on DRBD
Could I use a little of both maybe???
In My Humble Opinion.

You could use AFS and DRBD but simplification if available is encouraged.