]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: remove the protection when clustered raid do assemble
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 20 Jul 2018 08:05:14 +0000 (16:05 +0800)
committerJes Sorensen <jsorensen@fb.com>
Fri, 20 Jul 2018 19:40:20 +0000 (15:40 -0400)
commit80d1256e98b4995b0a753678f6c7e4a8bb369741
tree8742619b74ec55677b232b3a95f0c0eaeb3d51d8
parent531d7991476f8358a36fb7f320db93d38b0e4c8d
Assemble: remove the protection when clustered raid do assemble

For HA product, RA (resource agent) assembles cluster raid
through call below cmd:

$MDADM --assemble $mddev --config=$RAIDCONF $MDADM_HOMEHOST

Sometimes node can't assemble array because all the nodes
need to contend dlm lock, which causes node fence in automatic
test.

And in fact, we don't need the protection since the assemble
cmd called by RA doesn't change superblock, so revert the
commit 76781701a487090172d32befae07671a10ea88ad ("Assemble:
provide protection when clustered raid do assemble") to remove
unneccessary protection.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c