linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] md-cluster: A better way for METADATA_UPDATED processing
@ 2015-09-29 15:21 Goldwyn Rodrigues
  2015-09-29 15:21 ` [PATCH 1/3] remove_and_add_spares() to activate specific rdev Goldwyn Rodrigues
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Goldwyn Rodrigues @ 2015-09-29 15:21 UTC (permalink / raw)
  To: linux-raid


The processing of METADATA_UPDATED message is too simple and prone to
errors. Besides, it would not update the internal data structures as
required.

This set of patches reads the superblock from one of the device of the MD
and checks for changes in the in-memory data structures. If there is a change,
it performs the necessary actions to keep the internal data structures
as it would be in the primary node.

An example is if a devices turns faulty. The algorithm is:

1. The primary node marks the device as faulty and updates the superblock
2. The primary node sends METADATA_UPDATED with an advisory  device number to the rest of the nodes.
3. The secondary node on receiving the METADATA_UPDATED message
	3.1 Reads the superblock
	3.2 Detects a device has failed by comparing with memory structure
	3.3 Calls the necessary functions to record the failure and get the device out of the active array.
	3.4 Acknowledges the message.




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

end of thread, other threads:[~2015-09-30  1:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 15:21 [PATCH 0/3] md-cluster: A better way for METADATA_UPDATED processing Goldwyn Rodrigues
2015-09-29 15:21 ` [PATCH 1/3] remove_and_add_spares() to activate specific rdev Goldwyn Rodrigues
2015-09-29 15:21 ` [PATCH 2/3] md-cluster: Improve md_reload_sb to be less error prone Goldwyn Rodrigues
2015-09-29 15:49   ` kbuild test robot
2015-09-29 16:02   ` kbuild test robot
2015-09-29 16:22   ` kbuild test robot
2015-09-29 16:22   ` [RFC PATCH] md-cluster: __md_error() can be static kbuild test robot
2015-09-30  1:56   ` [PATCH 2/3] md-cluster: Improve md_reload_sb to be less error prone kbuild test robot
2015-09-29 15:21 ` [PATCH 3/3] md-cluster: Perform a lazy update Goldwyn Rodrigues
2015-09-29 16:30   ` kbuild test robot
2015-09-29 16:30   ` [RFC PATCH] md-cluster: does_sb_need_changing() can be static kbuild test robot

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