DRBD+Heartbeat clustering question! [message #29979] |
Sun, 04 May 2008 08:45 |
zenny
Messages: 48 Registered: November 2006
|
Member |
|
|
I have gone through http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat and other relevant links there thoroughly.
1) The setup mentioned there seems to trigger to serve the secondary HN node in case either primary HN Node or any containers inside primary stops working, if I understand right.
But in OVZ case, what I have seen is mostly the containers stops working due to resource problem. In that case, the explained setup in the wiki may not help.
Let us assume that we have a primary HN 1 and a secondary HN 2 as pictured as in attachment (ovz-clustering.txt) with equal resources (CPU power and memory). Let us say one of the containers in primary HN 1 (say Container 1db) failed, then the primary HN 1 stops working and the secondary starts. But since the secondary also has the same resources, it will also stop as soon as it will be failed over from primary to secondary. Then the entire failover clustering setup collapses.
What I want to achieve is, in case Container 1a fails then Container 2a alone will be activated in secondary server whereas other containers in HN 1 and physical HN 1 remains running in the primary server. Thus, the resource allocation will not be consumed at once so that both of the server will not collapse at the same time.
Similarly, any instace of Container 1db failure will be load balanced by Container 2db without affecting any other containers in the primary HN 1 as well as HN1 itself.
Once the physical HN1 collapses then the entire secondary HN 2 will start serving.
Is this possible from the setup mentioned in the wiki or there are specific tweaks that is needed to accomplish this setup?
2) And what is the use of two ethernet cards in the setup? Is that merely for crossover cables to transfer data realtime between the primary and secondary hardware nodes? Can't it be achieve with a single card?
Thanking you in advance for your attention. Kindly make advise if I misunderstood the entire DRBD-Heartbeat concept. I wholeheartedly welcome any comments.
|
|
|
|
|
|
Re: DRBD+Heartbeat clustering question! [message #29991 is a reply to message #29986] |
Sun, 04 May 2008 19:47 |
zenny
Messages: 48 Registered: November 2006
|
Member |
|
|
Dim: Thanks. But does the default GFS package that comes with CentOS5.1 conflicts with OpenVZ? Or there are special packages compatible with OpenVZ?
GFS is new to me. Do I need to install it only on hardware node or in the containers, too?
And what about the GFS licensing? Can GFS be used to production servers like CentOS? Any idea about free alternatives to GFS?
[Updated on: Sun, 04 May 2008 20:21] Report message to a moderator
|
|
|
|
Re: DRBD+Heartbeat clustering question! [message #30053 is a reply to message #29992] |
Wed, 07 May 2008 10:04 |
zenny
Messages: 48 Registered: November 2006
|
Member |
|
|
Dim:
Thanks for your reply and time. It was indeed enlightening.
After going through some posts in this forum, GFS does not seemm to be an ideal solution in terms of speed.
1) However, as you advised to have per-Container drdb device instead of GFS, do I need to follow the instructions without formating the /vz volume and then make it a DRBD + ext3 volume later as explained in http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat ? I meant to install cluster manager in HN node?
2) And then again do I have to install the cluster manager in the containers also to achieve what I thought in the first post? Please elaborate.
3) I am yet to figure out two ethernet cards in each node in the above wikipage setup? Is that for the crossover cables to backup data or is it as a failover ethernet card? Just simply wondering!
Thanks!
|
|
|
Re: DRBD+Heartbeat clustering question! [message #30055 is a reply to message #30053] |
Wed, 07 May 2008 10:32 |
dim
Messages: 344 Registered: August 2005
|
Senior Member |
|
|
zenny wrote on Wed, 07 May 2008 06:04 | Dim:
1) However, as you advised to have per-Container drdb device instead of GFS, do I need to follow the instructions without formating the /vz volume and then make it a DRBD + ext3 volume later as explained in http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat ? I meant to install cluster manager in HN node?
|
I didn't advise, I just presented available choices. DRBD is not ideal solution as well, you know. Yes, you need to follow instructions and install cluster manager in HN. But its configuration should differ - each Container should be a resource, not vz service itself.
Quote: |
2) And then again do I have to install the cluster manager in the containers also to achieve what I thought in the first post? Please elaborate.
|
No, this doesn't help. The problem that in case of failure you need to mount Container's private on failover node in order to start Container, while cluster manager inside it can't do this.
Quote: |
3) I am yet to figure out two ethernet cards in each node in the above wikipage setup? Is that for the crossover cables to backup data or is it as a failover ethernet card? Just simply wondering!
|
I think it is for performance mostly. DRBD is network replication and its health depends on transfer rate greatly.
|
|
|
|
|