linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] realtime snapshot or ?
@ 2006-04-30  7:27 Omer Faruk Sen
  2006-05-19 13:52 ` Greg Freemyer
  0 siblings, 1 reply; 2+ messages in thread
From: Omer Faruk Sen @ 2006-04-30  7:27 UTC (permalink / raw)
  To: linux-lvm


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] realtime snapshot or ?
  2006-04-30  7:27 [linux-lvm] realtime snapshot or ? Omer Faruk Sen
@ 2006-05-19 13:52 ` Greg Freemyer
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Freemyer @ 2006-05-19 13:52 UTC (permalink / raw)
  To: omer, LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

On 4/30/06, Omer Faruk Sen <omer@faruk.net> wrote:
>
> <snip>
>
> 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


You should check out drbd 0.8 and see if it still has the same restriction.
0.8 is in beta or pre-release.  It is supposed to allow "active/active"
environments.  I believe a clustered FS like GFS is intended to be used with
the new functionality, but it may be that the slave can do a read-only
mount.  If not, you could use GFS as your filesystem and achieve your goal.
The big trouble with that is locking.  I'm pretty sure GFS only does file
locking.  Not very helpful for a DB.

Greg
-- 
Greg Freemyer
The Norcross Group
Forensics for the 21st Century

[-- Attachment #2: Type: text/html, Size: 1242 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-19 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-30  7:27 [linux-lvm] realtime snapshot or ? Omer Faruk Sen
2006-05-19 13:52 ` Greg Freemyer

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).