All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] Running Protocol C with disk cache enabled
@ 2007-06-19 15:16 Graham, Simon
  2007-06-20 13:33 ` Philipp Reisner
  0 siblings, 1 reply; 8+ messages in thread
From: Graham, Simon @ 2007-06-19 15:16 UTC (permalink / raw)
  To: drbd-dev

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

I've been thinking recently about making sure that DRBD handles failures
properly when the disks are run with their caches enabled - in most
cases, I believe that the existing activity log code in DRBD will
correctly handle this by ensuring that portions of the disk that _might_
have been in cache only when a failure occurred are resynchronized.

 

However - there is one case that I don't think is covered currently;
it's entirely possible that I'm missing something, but I wanted to
check; the case in question is if the Secondary system suffers an
unexpected power loss, therebye potentially losing some writes that were
acknowledged prior to the failure. Now, I think that the activity log
maintained by the Primary actually includes the necessary information
about blocks which should be resynchronized _but_ I don't see any code
that would actually add these blocks to the bitmap when such a failure
occurs.

 

Conversely, if the Primary suffers an unexpected power loss, when it
comes back up, it will add all the blocks described by its on-disk
activity log to the bitmap as part of the attach processing on that
node.

 

Maybe this is overkill, but perhaps the Primary should add the contents
of the current AL to the in-memory and on-disk bitmaps whenever it loses
contact with the secondary unexpectedly?

 

Simon


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

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

end of thread, other threads:[~2007-06-22 20:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 15:16 [Drbd-dev] Running Protocol C with disk cache enabled Graham, Simon
2007-06-20 13:33 ` Philipp Reisner
2007-06-20 16:31   ` Lars Ellenberg
2007-06-20 19:47   ` Graham, Simon
2007-06-21 13:26     ` Lars Ellenberg
2007-06-22 18:41       ` Philipp Reisner
2007-06-22 20:03       ` Graham, Simon
2007-06-22 20:09       ` Graham, Simon

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.