All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fury <furiosod@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Mirroring a Drive for load-balancing AND failover
Date: Wed, 27 Jul 2005 01:44:27 -0700	[thread overview]
Message-ID: <ca4f7e300507270144720cef7b@mail.gmail.com> (raw)

I've racked my brain on this one, so hopefully someone will be of some help.

I'm trying to set up two servers which share a drive and do not have a
Single Point of Failure.  They are on a local network with each other.
 The best solution would be to have /dev/sda1 on one server mirrored
with /dev/sda1 on the second server.

I've looked into a few solutions.  One was DRBD.  This would work
great if I was using the second server as a hot spare, but since both
server's can't have read-write access to the drbd device
simultaneously, this won't work.

A second solution was to use GFS/GNBD.  I can export each drive to the
other server, and do RAID 1 (on both servers) between the local
/dev/sda1 and the remote gnbd device.  I then format the raid device
with GFS so both servers can mount it.

Surprisingly, this last system works.  Both systems can mount the
drive and read-write to it.  However, if either server in this
configuration drops dead, the other server cannot deal with the dead
gnbd device, and the raid device and mount point are no longer usable.
 I'm sure there are numerous other problems with this setup, also.

So I'm looking for ideas.  With two servers, how can I mirror a drive
in real-time, and allow for failover?

Thanks,
Derek

             reply	other threads:[~2005-07-27  8:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27  8:44 Fury [this message]
2005-07-27 13:06 ` [linux-lvm] Mirroring a Drive for load-balancing AND failover Matthew Gillen
2005-07-27 14:24   ` AJ Lewis
2005-07-27 17:20     ` Matthew Gillen
2005-07-27 20:10       ` Fury
2005-07-28 15:12         ` Jonathan E Brassow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca4f7e300507270144720cef7b@mail.gmail.com \
    --to=furiosod@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.