linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Omer Faruk Sen" <omer@faruk.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] realtime snapshot or ?
Date: Sun, 30 Apr 2006 10:27:33 +0300 (EEST)	[thread overview]
Message-ID: <1282.85.107.14.146.1146382053.squirrel@85.107.14.146> (raw)


Hi,

I am looking for a solution that I can use as a realtime snapshot or maybe
it should be called realtime raid or whatever.

What I want is like this:

Say I have a VG1 and VG2. I use VG2 as a backup VG2  and some machines
will mount it as read-only( I mean LV2 on VG2) My main server (which runs
mysql and all write operations will go to LV1) will run mysql and use 
/sql as its --data-dir. /sql uses /dev/VG1/LV1. But every write operations
on LV1 that resides on VG1 should go to VG2 thus to LV2 too.

I have found that nbd ord drbd does similar things. But nbd just exports a
block device (JUST ONE block device) so other machines can mount it. DRBD
is closer to what I want but I can't mount drbd on secondary (backup
machine) even as read-only



To depict what I want
                            rw
|SERVER1| ----> MYSQL DATA ---->    | REMOTE STORAGE | VG1/LV1
                           |
                           |--->    | REMOTE STORAGE | VG2/LV2 --|
                             rw                                  |
                                                                 |
                                                                 |
                                                             ro  |
                                   /backupsql/--- |SERVER2|   <--|






-- 
Omer Faruk Sen
http://www.faruk.net

             reply	other threads:[~2006-04-30  7:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-30  7:27 Omer Faruk Sen [this message]
2006-05-19 13:52 ` [linux-lvm] realtime snapshot or ? Greg Freemyer

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=1282.85.107.14.146.1146382053.squirrel@85.107.14.146 \
    --to=omer@faruk.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).