Skip to contentSkip to conversation

0.8 & GFS

Drbd-dev Joshua Mouch 2 participants 2 messages Oct 4, 2005 – Oct 5, 2005 DRBD driver

lore
Share & tools
lore
#0 lore raw

I'd like to test the newest version of 0.8 that is in SVN with GFS 6.1 with the following storage failover setup:

_________        _________
|   A   |        |   B   |
|       |        |       |
| DiskA |<-DRBD->| DiskB |
---------        ---------

1) DiskA+DiskB should act as a networked stripped raid, which will be accomplished by DRBD syncing the data between DiskA and DiskB.

2) Nodes A & B both provide an IMAP service (using Cyrus) with storage on DiskA+DiskB.

3) GFS will ensure that locking occurs on DiskA+DiskB such that NodeA and NodeB cannot write to the same spot on disk simultaneously.

However, I can't quite figure out how to accomplish part 3 so that I can begin testing. My first thought is export DiskA using GNBD and import it into Node B and do the same for DiskB to node A so that Node A & B can "see" both disks and therefore be able to perform locking.

_________        _________
|   A   |        |   B   |
|       |        |       |
| DiskA |<-DRBD->| DiskB |
|       |\      /|       |
|       | \    / |       |
| GnbdB |--\--/  |       |
|       |   \    |       |
|       |    \---| GnbdA |
---------        ---------

But that's where I get stuck. Is this the correct approach?

Joshua Mouch

maintainer
#1 lore raw

for those on the list: I let this post pass for "originality"

/ 2005-10-03 19:43:19 -0400
\ Joshua Mouch:

Quoted 11 lines

I'd like to test the newest version of 0.8 that is in SVN with GFS 6.1 with the following storage failover setup:

_________        _________
|   A   |        |   B   |
|       |        |       |
| DiskA |<-DRBD->| DiskB |
---------        ---------

1) DiskA+DiskB should act as a networked stripped raid, which will be accomplished by DRBD syncing the data between DiskA and DiskB.

drbd does mirror. no striping.

Quoted 2 lines

2) Nodes A & B both provide an IMAP service (using Cyrus) with storage on DiskA+DiskB.

cyrus is evil.

Quoted 19 lines

3) GFS will ensure that locking occurs on DiskA+DiskB such that NodeA and NodeB cannot write to the same spot on disk simultaneously.

However, I can't quite figure out how to accomplish part 3 so that I can begin testing. My first thought is export DiskA using GNBD and import it into Node B and do the same for DiskB to node A so that Node A & B can "see" both disks and therefore be able to perform locking.

_________        _________
|   A   |        |   B   |
|       |        |       |
| DiskA |<-DRBD->| DiskB |
|       |\      /|       |
|       | \    / |       |
| GnbdB |--\--/  |       |
|       |   \    |       |
|       |    \---| GnbdA |
---------        ---------
Quoted 2 lines

But that's where I get stuck.
Is this the correct approach?

not at all.
nbd has nothing to do with it.
if you know how to setup gfs with shared disk, then you just substitute the shared disk device nodes with the drbd device nodes. both nodes "see" /dev/drbd0, and once initialized, it in fact has the same data on both nodes, as if it where a shared disk.
how drbd does this? it's a mircale...

whether current svn in fact already works successfully in this way is an other question.

Signature · 3 lines
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :