Ubuntu Servers :: Create Script To Keep Machine Cluster Synced Properly Until Failover

Apr 26, 2010

I've been reading up on clustering a bit and want to create simple 2 machine cluster of which the 2nd one will turn on and take over traffic at the previous machine's IP (I'm aware there will be a couple minutes of downtime while the failover server boots). I've looked into doing a simple DNS round robin, but I think both machines would need to be online all the time for this to function correctly. I've also looked into linux-HA and GlusterFS but both seem a little intense for the simple failover I'm trying to achieve. One catch if approaching with DNS round robin... the server that I want to setup with a failover also operates as a DNS server. Anyone know the simplest way to complete this? One idea I had (that seemed like a bit of manual work): Create script that runs every 60 secs through CRON on firewall (running pfsense) and have it check if master-server is up. If it's not, it will send a WOL signal to the slave, which has a mirrored image of the first. the problem I have with that is I will also need to create a script to keep both synced properly which seems almost impossible if one is shut down until failover (my thought was periodic rsyncs.) Perhaps creating a FS to direct all files to for the master/slave would be the only way around that.

View 1 Replies


ADVERTISEMENT

General :: Best Way To Handle Cluster Failover

Sep 30, 2010

We have setup a High Available Cluster on two RHEL 5.4 machines with Redhat Cluster Suite (RHCS) having following configuration.

1. Both machines have Mysql server, Apache web server and Zabbix server.
2. Mysql database and web pages reside in SAN.
3. Active machine holds virtual IP and mounted shared disk.
4. We have also included a script in RHCS which takes care of starting Mysql, Apache and zabbix server on the machine which turns active when cluster switches over.

The above configuration holds good if Active machine goes down as a result of hardware failure or Reboot. What if, If any one service say Apache/Mysql/zabbix running on active hangs or become unresponsive.How can we handle this scenario ? Please advice.

View 3 Replies View Related

Server :: Build A 2 Node Failover Nfs Cluster?

Feb 9, 2011

I am using Centos. I have read places that you can use Drbd + heartbeat + nfs to make a simple failover NFS server.I can't find any document that works though. I've tried 20 or so, including some Debian ones.So, does anyone have any other ideas of how to do this?Point me in the right direction please.I want 2 nodes. One to be actively serving an NFS share The other to be ready for failover. If the first one goes out, the second takes over.Meaning, the filesystem is in sync, the IP must change, and NFS must come up

View 7 Replies View Related

Server :: Simulating A Failover Cluster On Fedora?

Jun 8, 2010

We are having a production setup where we are having one SAN storage and two RHEL machines. Now we have created a SAN LUN, say for example trylun. Now we have mounted the same SAN partition on both the machines of RHEL on the same mountpoint path say for example /trylun. After that we have installed RHEL Cluster suite to create a failover cluster.

Now we will be having one Ingres Database service for which data will be stored in SAN storage LUN mounted on both the machine say for example /trylun. When service on one machine will be down then RHEL Cluster Suite failover cluster will takeover and then it will start the same service on another node and handle the failover. Wether Ingres will run from node 1 or node 2 will not make any difference as both are using shared SAN storage i.e /trylun in our example. So same data storage will be used by both the ingres service on both the servers.

Now I have to simulate the same in my office test environment. But the problem is, in office test environment I will not have SAN server as it is additional cost. And I will have fedora operating system.

So I wanted to know is how can we create a shared file system like SAN in fedora (Is NFS a solution). And after creating the shared file system how can we create a failover cluster in fedora if we do not have Red Hat Cluster Suite.

View 1 Replies View Related

Fedora :: Create Initial Cluster, The Guest Machine Locks Up?

Feb 28, 2011

Has anyone successfully configured Windows Server 2008 NLB (Network Load Balancing) within VirtualBox?After I create my initial cluster, the guest machine locks up.

View 1 Replies View Related

Software :: Create A Cluster With Two Servers And One Storage?

Jul 14, 2011

I trying to create a Cluster Linux with two servers and one storage, I have mounted some filesystems in both servers, but, when I create a file on server (1), I don't see the file on server (2).

Is that a problem with the linux or storage configuration ?.

View 1 Replies View Related

CentOS 5 Networking :: Setup The Cluster To Automatically Failover The Service To Another Node Case One Node Fails?

Mar 1, 2011

I am familiar with windows 2008 cluster servers, and I just started testing with centos cluster. I am creating a simple 2-node cluster, for a simple ping test.

Node 1: 10.0.0.1
Node 2: 10.0.0.1
Virtual ip: 10.0.0.10

So far, I can ping a virtual ip, and manually relocate it between the nodes, but I didn't figure out, how to do this automatically. So this is my question: How can I setup the cluster, to it automatically failover the a service to another node case one node fails?

View 1 Replies View Related

Server :: Node Failover And Another Node Take Over Resources On HA Cluster?

Oct 27, 2010

I don't have much experience in clustering. And I'm deploying a cluster system on CentOS.But I don't know how long a node failover and another node take over those resouces to continue running service is good, fast or slow? 1s, 10s or

View 2 Replies View Related

Ubuntu Servers :: Setup An Apache Web Cluster Using Red Hat Cluster Suite

Sep 1, 2011

I am working in a project that needs to set up an Apache Web Cluster. The cluster needs to be High-availability (HA) cluster and Load-balancing cluster. Someone mentioned the use of Red Hat Cluster Suite, but, honestly, I can't figure out how it works, I haven't been able to configure it correctly. The project currently have two nodes, but we need to support at least three nodes in the cluster.

View 5 Replies View Related

Fedora Servers :: How To Setup GFS2 Without Cluster Suite / How To Configure Cluster.conf

Nov 6, 2010

I am trying to build GFS2 cluster with 2 or 3 Fedora 14 nodes, but I've encountered some problems from the start. First luci does not work at all in Fedora 14. There is no luci_admin and even if I manage to start luci service, I get a blank white screen when I try to open it from the browser. I've googled a bit and found that I'd might be able to setup GFS if I manage to build cluster.conf manually and start the cluster suite, but I cannot find documentation on how to create cluster.conf anywhere. If anyone knows how to setup GFS2 without a cluster suite or how to configure cluster.conf.

View 9 Replies View Related

General :: NFS Failover - Setting Up Two Server With Shared Storage With Automatic Failover If One Fails

Feb 14, 2010

What is the current state of NFS failover (i.e. setting up two server with shared storage, with automatic failover if one fails?) I've seen a cookbook, but no details that would let me assess how well it works. There are lots of complex issues with data consistency, but the detailed information on that is years old. Our needs are fairly simple: 2 servers, a shared array, and I'm reasonably sure that we don't use locking. However we'd like failover to work reliably without loss of data.

View 3 Replies View Related

Fedora Servers :: Can't Create Virtual Machine

Jan 6, 2009

I used qemu sucesfully on F9 but I can't find it on F10. I can't create a virtual machine. I tried installing qemu from rpms that I found on their site without any luck. How can I create a virtual machine on F10?

View 2 Replies View Related

CentOS 5 Server :: Setting Up SMB And AFP Failover Between Two Servers

Feb 15, 2011

My question is about setting up SMB and AFP failover between two servers. The plan is to have two servers both running CentOS with one acting as a primary node and one as secondary failover node. I have never set anything like this up before. In the past I have always worked with SAN's primary XSAN/StorNext. Both of which handle failover pretty much automatically. Unfortunately there isn't the budget on this job to install a SAN. Also this is only for temporary use for a week in a production office.

My thoughts where to run the two servers and use rsync on a cron tab to keep the data synchronised between the two. In an ideal world clients would log on to the primary and if that fails, seamlessly moved over to the secondary. I'm guessing however this is not possible outside of a SAN environment. So keeping the two servers synced and the clients manually moving over to the secondary manually is, I'm guessing, my only real option.

View 1 Replies View Related

Fedora Servers :: Build A F12 Cluster To Run DHCP On Top Of Two Servers Using Pacemaker And Drbd?

Apr 28, 2010

I'm trying to build a Fedora 12 cluster to run DHCP on top of two servers using pacemaker and drbd. The pacemaker runs great but i'm having the hardest time getting DRBD installed.

My kernel version is 2.6.32.11-99.fc12.i686.PAE First i tried to [root@dhcp-primary drbd]#yum install drbd this doesn't give me everything because apparently the kernel module for DRBD must be built from source. so i unpacked drbd-8.3.6.tar.gz and tried :

[Code]...

I'm not very experienced in compiling from source i'd love to make an rpm for this but after scouring the web and trying different install methods, I am still at a loss.

View 2 Replies View Related

General :: Create User On Rocks Cluster?

Jun 2, 2011

I can create users, but not create the directory of that user... Like /home/user
When I try to start session, I cant because the directory it doesnt exist...

View 1 Replies View Related

Server :: Beowulf Cluster With Xen On IBM Bladecenter For Private Virtual Machine Farm

Feb 16, 2009

I'm probably dreaming, but I have a hobby project in mind that I would like feed I have an opportunity to purchase a 3 year old fully populated (14 x 3Ghz dual Xeon nodes) IBM bladecenter relatively inexpensively.I thought it would be fun to set it up as a beowulf cluster with open source xen and test the market to see what people would pay for Private virtual machines.

My thoughts are to use 64 bit Centos 5 as a base to get the beowulf cluster up and then load xen.I haven't really looked at the market but I figure I should be able to run 50 private virtual machines charging say $50 per month. I figure I can use rsync to backup the virtual machines to a different location. I plan to connect to linux based Network Storage running 3 x sata 1TB drives, probably via iSCSI. Along with the drive capacity currently on the blades I should get 2-3Tb online capacity over a Gbit network. (Cisco 14 + 4 network switch module)

I realise I have a bit of setup work to do and before I go investing a lot of time and a little money I'd appreciate some pragmatic advice as to why this may be a stupid venture.

View 2 Replies View Related

Server :: Mysql In Redhat Two Machine Cluster Not Opening 3306 Port?

Jul 18, 2011

Im having a frustrating issue with my two machine cluster I setup using Conga. Everything was working great except now when lucci starts mysql the port (3306) is never opened to outside machines. I can do a "ps -ef | grep mysql" and see it running as well as login to mysql on the node it is running on - but an nmap of the machine does not show the 3306 port and I cannot login to mysql remotely and yes I turned off all iptables(iptables,ip6tables) and SElinux is disabled.What am I missing here? If I start mysql on my own (and it is using the same my.cnf as lucci is) it does show the port open and works perfect,t for some reason when lucci starts it, no dice

View 1 Replies View Related

Server :: Create A Cluster Using Conga And Creating A Fencing?

Apr 7, 2011

I am trying to create a cluster using conga and i am stuck at creating a fencing. I have no idea as what fencing device i have on my server or what fencing method to choose in creating the cluster. Can someone help me in this issue. I am trying to create cluster with 3 nodes (dell r910 machines with dell md3200 storage array )running redhat linux.

View 4 Replies View Related

Server :: Unable To Create 2nd Node In Redhat 5 Cluster?

Sep 17, 2009

I am trying to create a 2nd node from last couple of days but no luck.do this.I have gone through these article again and again:Here is my setup

node1 ( ricci + luci) : which is working fine
node2 (ricci only) : this is giving me problem
node1

[code]...

View 1 Replies View Related

General :: Create A 2 Node Cluster On Centos5.2 With A Dell MD3000 As A Storage?

Sep 8, 2010

I am (and still) trying to create a 2 Node cluster on Centos5.2 with a Dell MD3000 as a storage. However I am getting this when I try to probe for storages in luci: An error has occured while probing storage:

<?xml version="1.0" ?>
<dict name="result">
<var name="diff" type="num" value="24"/>
<var name="max_inactive" type="num" value="600"/>

[code]....

And I also get errors on /var/log/messages end_request: I/O error, dev sdf, sector 0 Buffer I/O error on device sdh, logical block 0

View 2 Replies View Related

Server :: RedHat - Unable To Create Cluster Luci Database Objects

Dec 22, 2010

I want to create redhat cluster on(vmware) OS Redhat Enterprise Server 5.5
Install Luci on node1
Install ricci on node2
Install ricci on node3

All the computer name records in all system host file. When I try to create new cluster( luci_install init) then showing error...
Status messages:
* Host stationx.example.com is already authenticated
* Host stationy.example.com is already authenticated
[dismiss]

The following errors occurred:
* Unable to create the cluster Luci database objects
***No any cluster.conf file created on any node
I have reinstall the node, but getting same error.

View 1 Replies View Related

Ubuntu Servers :: Oscar Cluster Installation?

Apr 3, 2010

i want to install oscar cluster on my ubuntu 8.04 , so i added its repository from http://svn.oscar.openclustergroup.or...ki/repoTesting .i added repo from Testing the development version section.when i use oscar-config --bootstrap i receive this error :

Initializing ODA: mysql
ERROR: Unknown ODA type ()
at /usr/bin/oda line 886[code]....

i must mention that i have mysql database .

View 1 Replies View Related

Ubuntu Servers :: Mysql Cluster Server 7.1 In 10.04 LTS?

May 21, 2010

With the new realease of Ubuntu 10.04 LTS, I was wondering if there was going to be a package for installing Mysql Cluster Server 7.1

If not does anyone know of a good walkthrough for compiling and installing it in Ubuntu 10.04 LTS?

View 8 Replies View Related

Ubuntu Servers :: Setup A Cluster Using Heartbeat?

Jun 29, 2010

I am currently trying to setup a cluster using heartbeat. Unfortunatly it does not do what I want to do. I am using heartbeat 2.1.4-11 on a readhat system. I am using the the cib for configuration. What I want to do is the following: I have two Nodes. I want to run a clone resource on both nodes. It's named I want to run as a clone. This works fine.Additionally I want to have two virtual IP adresses. One should be set on Node 1 the other on Node 2. This works fine as well. I want to set dependencies between the resources. And this is where I have problems. What I want to achive: In case named is not able to run on a node, the vIP should switch to the other node (which then will have both vIPs). In case both nodes are able to run named, there should be one vIP on each node. Sounds simple, but does not work.Accourding to the heartbeat docu this an be achieved by using

[Code]...

View 1 Replies View Related

Ubuntu Servers :: Cluster To Run VM With Load Balance?

Oct 6, 2010

I have two machines fairly decent which I wish to cluster and run a vm (preferred choice virtualbox) on it, if possible with load balance.

View 1 Replies View Related

Ubuntu Servers :: On IBM Cluster - HS20 And JS20 Blades

Mar 26, 2010

Has anyone ever installed an Ubuntu server version on an IBM cluster (HS20 and JS20 blades)?

View 2 Replies View Related

Server :: Install Red Hat New Cluster - Error: Cman Not Started: Cannot Start, Cluster Name Is Too Long

Mar 15, 2011

I'm having a very strange problem with red hat cluster. After testing it in the lab, I tried to install a new cluster and received the following error: cman not started: Cannot start, cluster name is too long or other CCS error /usr/sbin/cman_tool: aisexec daemon didn't start I've checked the internet for that error, but nothing. I decided to to take the example from cluster.conf man, which looks like that :

[Code]...

And still I get the same error. I can find my servers both from DNS (FQDN and short name) and they also appear in /etc/hosts.

View 3 Replies View Related

Ubuntu Servers :: How To Setup Based Cluster Configuration For Each Node

Jun 27, 2010

I need to setup an linux cluster ..so i prefer ubuntu because of support and i personally i use ubuntu.. and can any one explain in breif ..what all the things needed to setup an ubuntu based cluster my configuration for each node will be (totally 6 nodes) core2 duo with 4 gb ram i need 4 nodes and 2 for load balancing..

View 1 Replies View Related

Fedora Servers :: Setting Up A Cluster For Scientific Computing?

Mar 2, 2010

I want to set up a cluster for scientific computing (mainly statistical stuff with R). I have a few conceptual questions. First, is there a difference between a Beowulf cluster and a cluster that has single-system image ("SSI," e.g. using openSSI or LinuxPMI)? If so, what's the difference? Second, if there is a difference between Beowulf and SSI, which one is better for scientific computing? Third, does using Eucalyptus make sense for scientific computing or is this more suitable for IO-oriented operations such as web service or databases

View 2 Replies View Related

Red Hat / Fedora :: Use Storage On Multiple Servers As A Single Cluster?

Apr 20, 2011

Can ANYONE point me in the right direction on how to use storage on multiple servers as a single cluster?I thought storage cluster was for that but, after much googling, and even more help from here, I don't think that achieves my goal. My goal is to have multiple servers share a file system, to act as somewhat of a network raid, so if node-A goes down the files are available on other nodes, and hopefully so when the capacity of the nodes are reached I can add nodes to expand the "cluster".

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved