Skip to contentSkip to conversation

r1550 - trunk

Drbd-dev Lars Ellenberg 2 participants 2 messages Sep 21, 2004 – Sep 22, 2004 1 message not in the archive DRBD driver

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Lars Ellenberg

author maintainer
#1 lore raw

/ 2004-09-21 17:37:13 +0200
\ [email protected]:

Quoted 16 lines

Author: phil
Date: 2004-09-21 17:37:10 +0200 (Tue, 21 Sep 2004) New Revision: 1550

Added:
trunk/ROADMAP
Log:
What we want to do...

Added: trunk/ROADMAP
===================================================================

ROADMAP line 4

Quoted 4 lines
ROADMAP +4 -0
@@ -0,0 +1,200 @@
+DRBD 0.8 Roadmap
+----------------
+
+1 Drop support for linux-2.4.x. 

done :)

ROADMAP line 7

Quoted 3 lines
ROADMAP +3 -0
+  Do all size calculations on the base of sectors (512 Byte) as it 
+  is common in Linux-2.6.x.
+  (Currently they are done on a 1k base, for 2.4.x compatibility)

to be done

ROADMAP line 11

Quoted 4 lines
ROADMAP +4 -0
+
+2 Drop the Drbd_Parameter_Packet.
+  Replace the Drbd_Parameter_Packet by a more general and 
+  extensible mechanism.

yep.

ROADMAP line 16

Quoted 5 lines
ROADMAP +5 -0
+
+3 Authenticate the peer upon connect by using a shared secret. 
+  Config file syntax:  net { auth-secret "secret-word" }
+  Using a challenge-response authentication within the new
+  handshake. 

yep.

ROADMAP line 19

Quoted 3 lines
ROADMAP +3 -0
+
+4 Changes of state and cstate synchronized by mutex and only done by
+  the worker thread.

yep.

ROADMAP line 32

Quoted 13 lines
ROADMAP +13 -0
+
+5 Two new config options, to allow more fine grained definition of
+  DRDBs behaviour after a split-brain situation:
+
+  after-sb-2pri = 
+   disconnect     No automatic resynchronisation gets performed. One
+                  node should drop its net-conf (preferable the
+                  node that would become sync-target)
+                  DEFAULT.
+   asf-older      Auto sync from is the oder primary (curr.behaviour i.t.s.)
+   asf-younger    Auto sync from is the younger primary
+   asf-furthest   Auto sync from is the node that did more modifications
+   asf-NODENAME   Auto sync from is the named node 

please name it more agressive. how about:
discard-older-transactions
discard-younger-transactions
discard-less-modified
discard-changes-on-NODENAME

ROADMAP line 36

Quoted 4 lines
ROADMAP +4 -0
+  
+  pri-sees-sec-with-higher-gc =
+   disconnect     (current behaviour)
+   asf-primary    Auto sync from is the current primary

again: discard-...

ROADMAP line 38

Quoted 2 lines
ROADMAP +2 -0
+   panic          The current primary panics. The node with the
+                  higher gc should take over.

we should replace all panic calls with something else, because the panic is not guaranteed to work anyways, and it is very rude to other resources, too.

maybe rather replace it with some exeption handling scheme which would block all further access to the device first, then call some user space helper to do problem solving (and that script then can decide to do something like halt -nf, shutdown now+60seconds bla ...

ROADMAP line 48

Quoted 10 lines
ROADMAP +10 -0
+  Notes:
+  1) The disconnect actions cause the sync-target or the secondary
+     (better both) node to go into StandAlone state.
+  2) If two nodes in primary state try to connect one (better both)
+     of them goes into StandAlone state (=curr. behaviour)
+  3) As soon as the decision is takes the sync-target adopts the
+     GC of the sync source. 
+     [ The whole algorithm would also work if both would reset their 
+       GCs to <0,0,0...> after the decision, but since we also
+       use the GC to tag the bitmap it is better the current way ]

needs more thought...

Quoted 7 lines
ROADMAP +7 -0
+6 It is possible that a secondary node crashes a primary by 
+  returning invalid block_ids in ACK packets. [This might be 
+  either caused by faulty hardware, or by a hostile modification
+  of DRBD on the secondary node]
+
+  Proposed solution:
+

ROADMAP line 65

Quoted 10 lines
ROADMAP +10 -0
+  Have a hash table (hlist_head style), add the collision
+  member (hlist_node) to drbd_request. 
+
+  Use the pointer to the drbd_request as key to the hash, each
+  drbd_request is also put into this hash table. We still use the 
+  pointer as block_id. 
+
+  When we get an ACK packet, we lookup the hash table with the
+  block_id, and may find the drbd_request there. Otherwise it 
+  was a forged ACK.

yep.

ROADMAP line 70

Quoted 5 lines
ROADMAP +5 -0
+7 Handle split brain situations; Support IO fencing; 
+  introduce the "Dead" peer state (o_state)
+
+  New commands:
+    drbdadm peer-dead r0

peer-is-dead r0
peer-was-fenced r0

and, while we are at it,
suspend
resume

Quoted 25 lines
ROADMAP +25 -0
+    drbdadm [ considered-dead | die | fence | outdate ] r0 
+      ( What do you like best ? Suggestions ? )
+
+  remove option value: on-disconnect=freeze_io
+
+  introduce: 
+    peer-state-unknown=freeze_io
+    peer-state-unknown=continue_io
+
+  New meta-data flag: "Outdated"
+
+  Let us assume that we have two boxes (N1 and N2) and that these
+  two boxes are connected by two networks (net and cnet [ clinets'-net ]).
+
+  Net is used by DRBD, while heartbeat uses both, net and cnet
+
+  I know that you are talking about fencing by STONITH, but DRBD is
+  not limited to that. Here comes my understanding of how fencing
+  (other than STONITH) should work with DRBD-0.8 :
+
+   N1  net   N2
+   P/S ---  S/P     everything up and running.
+   P/? - -  S/?     network breaks ; N1 freezes IO
+   P/? - -  S/?     N1 fences N2:
+                    In the STONITH case: turn off N2.

ROADMAP line 105

Quoted 10 lines
ROADMAP +10 -0
+                    In the "smart" case: 
+                    N1 asks N2 to fence itself from the storage via cnet.
+                    HB calls "drbdadm fence r0" on N2.
+                    N2 replies to N1 that fencing is done via cnet.
+                    N1 calls "drbdadm peer-dead r0".
+   P/D - -  S/?     N1 thaws IO
+
+  N2 got the the "Outdated" flag set in its meta-data, by the "fence" 
+  command. I am not sure if it should be called "fence", other ideas:
+  "considered-dead","die","fence","outdate". What do you think ?

yes.
this will be sorted out in detail once we get to implementing it on the drbd and on the crm side...

ROADMAP line 114

Quoted 9 lines
ROADMAP +9 -0
+
+8 New command drbdmeta
+
+  We move the read_gc.pl/write_gc.pl to the user directory. 
+  Make them to one C program: drbdmeta
+   -> in the future the module never creates the meta data
+      block. One can use drbdmeta to create, read and 
+      modify the drbdmeta block. drbdmeta refuses to write
+      to it as long as the module is loaded (configured).

I think the module still needs to generate the meta data. only it no longer does so by itself, it needs to be asked explicitly. helps to avoid funny races.

ROADMAP line 117

Quoted 3 lines
ROADMAP +3 -0
+  drbdsetup gets the ability to read the gc values while DRBD
+  is set up via an ioctl() call. -- drbdmeta refuses to run
+  if DRBD is configured. 

hm. could, and maybe should, go through the module. then it could manipulate GCs on a running drbd, too. I can imagine situations where this would be convenient.

ROADMAP line 124

Quoted 7 lines
ROADMAP +7 -0
+  drbdadm is the nice frontend. It alsways uses the right 
+  backend (drbdmeta or drbdsetup)...
+
+  drbdadm md-set-gc 1:2:3:4:5:6 r0
+  drbdadm md-get-gc r0
+  drbdadm md-get/set-{la-size|consistent|etc...} resources....
+  drbdadm md-create r0

md-create would ask nasty questions about whether you are really sure and so on, and do some plausibility checks first...
md-set would be undocumented and for wizards only.

ROADMAP line 126

Quoted 2 lines
ROADMAP +2 -0
+9 Support shared disk semantics  ( for GFS, OCFS etc... )
+plus-banches:

I already commented on these two.

lge

maintainer
#2 lore raw

[...]

Quoted 6 lines

please name it more agressive. how about:
discard-older-transactions
discard-younger-transactions
discard-less-modified
discard-changes-on-NODENAME

Quoted 7 lines

Review

Quoted 4 lines
(quoted diff) +4 -0
+
+  pri-sees-sec-with-higher-gc =
+   disconnect     (current behaviour)
+   asf-primary    Auto sync from is the current primary

again: discard-...

In the first place I thought it is more intuitive to mention the node which's data become the valid data.
But on the other hand, yes, I will change it to the discard- naming sheme....

asf-older => discard-younger-primary
The thing is there are no older or younger transactions, both nodes did transactions, there is one node that has been primary for a longer timer -> discard data on the younger primary.

asl-younger => discard-older-primary
asf-furthest => discard-less-modified
asf-NODENDE => discard-NODENEME
otherwise all should be called discard-changes-on-....
E.g. discard-chagnes-on-younger-primary, discard-changes-on-less-modified...

Quoted 12 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+   panic          The current primary panics. The node with the
+                  higher gc should take over.

we should replace all panic calls with something else, because the panic is not guaranteed to work anyways, and it is very rude to other resources, too.

maybe rather replace it with some exeption handling scheme which would block all further access to the device first, then call some user space helper to do problem solving (and that script then can decide to do something like halt -nf, shutdown now+60seconds bla ...

ACK.

[...]

Quoted 7 lines

Review

Quoted 5 lines

+7 Handle split brain situations; Support IO fencing;

(quoted diff) +4 -0
+  introduce the "Dead" peer state (o_state)
+
+  New commands:
+    drbdadm peer-dead r0

peer-is-dead r0

Like that one best.

Quoted 2 lines

suspend
resume

Right. But peer-is-dead is just a fancy name for resume, right. I do not like to have multiple names for one and the same thing. So lets keep "resume" and drop "peer-is-dead".

Quoted 4 lines

Review

Quoted 4 lines
(quoted diff) +3 -0
+    drbdadm [ considered-dead | die | fence | outdate ] r0
+      ( What do you like best ? Suggestions ? )
+

By now I think "outdate" is the best naming.

[...]

Quoted 2 lines

this will be sorted out in detail once we get to implementing it on the drbd and on the crm side...

My plan is to do the thinking before the coding, should save troubles afterwards.... :)

Quoted 9 lines

Review

Quoted 8 lines

+8 New command drbdmeta

(quoted diff) +7 -0
+
+  We move the read_gc.pl/write_gc.pl to the user directory.
+  Make them to one C program: drbdmeta
+   -> in the future the module never creates the meta data
+      block. One can use drbdmeta to create, read and
+      modify the drbdmeta block. drbdmeta refuses to write
+      to it as long as the module is loaded (configured).
Quoted 4 lines

I think the module still needs to generate the meta data. only it no longer does so by itself, it needs to be asked explicitly. helps to avoid funny races.

[Do we claim the meta data device somehow ?]

Quoted 6 lines

Review

Quoted 3 lines
(quoted diff) +3 -0
+  drbdsetup gets the ability to read the gc values while DRBD
+  is set up via an ioctl() call. -- drbdmeta refuses to run
+  if DRBD is configured.

hm. could, and maybe should, go through the module. then it could manipulate GCs on a running drbd, too.

I think that drbdmeta should also work if the module is not present at all. -- just like the perl scripts nowadays.

Quoted 1 line

I can imagine situations where this would be convenient.

Which ?

While beeing able to modify the meta-data offline is sometimes usefull, modifing it online is not adviseable, I think.

Quoted 11 lines

Review

Quoted 7 lines
(quoted diff) +7 -0
+  drbdadm is the nice frontend. It alsways uses the right
+  backend (drbdmeta or drbdsetup)...
+
+  drbdadm md-set-gc 1:2:3:4:5:6 r0
+  drbdadm md-get-gc r0
+  drbdadm md-get/set-{la-size|consistent|etc...} resources....
+  drbdadm md-create r0

md-create would ask nasty questions about whether you are really sure and so on, and do some plausibility checks first...
md-set would be undocumented and for wizards only.

ACK.

Quoted 11 lines
Quoted 2 lines

+9 Support shared disk semantics ( for GFS, OCFS etc... ) +plus-banches:

I already commented on these two.

lge
_______________________________________________
drbd-dev mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-dev

Signature · 3 lines
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :