DRBD with OpenVZ - versions and configurations [message #16421] |
Thu, 06 September 2007 07:15 |
fgomes
Messages: 29 Registered: August 2006
|
Junior Member |
|
|
I'm trying to install a DRBD cluster with openVZ by the howto in the openVZ wiki. I found that on the current openVZ kernel for the CentOS 5 the OpenVZ module is 8.0.4, and also the DRBD tools are of the same version on the CentOS repository. My questions are:
If the kernel module and the tools are of the same version, is it still necessary to build the tools from source?
The kernel module and the tools are from a different version of the proposed in the wiki - from yours experience, should we use the newer 8.0.4 version or keep the 0.7 version? If we change to the newer version, the configuration files on the wiki don't work, do you have any tip for DRBD 8.0.4 configuration files with OpenVZ?
Thanks!
Fernando
|
|
|
|
|
Re: DRBD with OpenVZ - how can I shutdown the cluster ina safe way? [message #23077 is a reply to message #23068] |
Mon, 12 November 2007 07:42 |
wfischer
Messages: 38 Registered: November 2005 Location: Austria/Germany
|
Member |
|
|
You should not get a split brain scenario at all when you shut down the cluster nodes.
During shutdown, heartbeat and drbd should be stopped cleanly through the initscripts. On halt, heartbeat should be stopped, e.g. via /etc/rc0.d/K05heartbeat, and DRBD should be stopped, e.g. via /etc/rc0.d/K08drbd
When you have both nodes running, and you shut down the active node first, the second node will then start all the services. So it is faster to shut down the passive node first (then you won't have a switchover). Then you shut down the active node - so both machines are off.
When you boot the cluster again, you need to boot both nodes. If you would only start up one single node, DRBD will print a message on the console that it waits for the other node to come up.
best regards,
Werner
Werner Fischer, Developer of a Virtuozzo-out-of-the-box-cluster solution at Thomas-Krenn.AG
|
|
|
Re: DRBD with OpenVZ - versions and configurations [message #38223 is a reply to message #16421] |
Mon, 30 November 2009 11:15 |
webofunni
Messages: 10 Registered: March 2009
|
Junior Member |
|
|
Hi,
I am setting up a OpenVZ cluster in such a fashion that each VPS is considered as service.
1. The heartbeat is installed on the 2 node.
2. 3 VPS is running in the main node and fail over VPSs in the second node.
3. The heartbeat will switch the VPS which fails in the main node to the secondary node. All other VPS will run in the main node.
EG : If one VPS fails in the main node then HA will switch the VPS in the secondary node, but the other VPSs will continue to run in the main node.
In this case I selected the DRBD in dual primary mode.
My doubt here is how I will add the VPSs as service in the heartbeat. Do I need to write my own scripts for managing each VPSs. What is the best method to do this setup ?
Regards,
Unni
|
|
|
Re: DRBD with OpenVZ - versions and configurations [message #39140 is a reply to message #38223] |
Thu, 18 March 2010 12:24 |
jjjenny
Messages: 1 Registered: March 2010
|
Junior Member |
|
|
After some research i found out that it might be the capability NET_ADMIN:on which causes this effect.
Can anyone agree with this or is it impossible that the NET_ADMIN can cause this effect?
Anyway if I use NET_ADMIN:on, which must be set for OpenVPN to work properly, can Containers interfere in an "Attacking way" due to this setting? I mean can anyone break in someones other container due to that option turned on? Or is the worst thing that can happen that a neighbors container can sniff the network traffic?
thx,
ceelian
Report message to a moderator
jjjeney
|
|
|