From: rgoldwyn@suse.de
To: linux-raid@vger.kernel.org, neilb@suse.de
Subject: [PATCH 0/5 v2] md-cluster: A better way for METADATA_UPDATED processing
Date: Mon, 5 Oct 2015 10:09:49 -0500 [thread overview]
Message-ID: <1444057794-17256-1-git-send-email-rgoldwyn@suse.de> (raw)
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 initiator node marks the device as faulty and updates the superblock
2. The initiator node sends METADATA_UPDATED with an advisory device number to the rest of the nodes.
3. The receiving 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.
The patch series also fixes adding the disk which was impacted because of
the changes.
Patches can also be found at
https://github.com/goldwynr/linux branch md-next
md-cluster.c | 56 +++++++++--
md-cluster.h | 1
md.c | 293 +++++++++++++++++++++++++++++++++++++++++------------------
md.h | 2
raid1.c | 2
5 files changed, 253 insertions(+), 101 deletions(-)
next reply other threads:[~2015-10-05 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 15:09 rgoldwyn [this message]
2015-10-05 15:09 ` [PATCH 1/5] remove_and_add_spares() to activate specific rdev rgoldwyn
2015-10-05 15:09 ` [PATCH 2/5] md-cluster: Improve md_reload_sb to be less error prone rgoldwyn
2015-10-05 15:09 ` [PATCH 3/5] md-cluster: Perform a lazy update rgoldwyn
2015-10-05 15:09 ` [PATCH 4/5] Perform resync/recovery under a DLM lock rgoldwyn
2015-10-05 15:09 ` [PATCH 5/5] Fix adding of new disk with new reload code rgoldwyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444057794-17256-1-git-send-email-rgoldwyn@suse.de \
--to=rgoldwyn@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox