Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
List overview
Download
cluster-commits
September 2016
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
cluster-commits@lists.stg.fedorahosted.org
2 participants
2 discussions
Start a n
N
ew thread
dlm: master - dlm_controld: repeat fencing attempts after all actors fail
by David Teigland
29 Sep '16
29 Sep '16
Gitweb:
http://git.fedorahosted.org/git/?p=dlm.git;a=commitdiff;h=d5d7b8dd15562dbdf…
Commit: d5d7b8dd15562dbdfdbfa1bfa7f8318c43a512d3 Parent: 2eefc91150a3292c2be82f4139207e06b4c4bba4 Author: John Ruemker <jruemker(a)redhat.com> AuthorDate: Thu Sep 29 15:37:15 2016 -0500 Committer: David Teigland <teigland(a)redhat.com> CommitterDate: Thu Sep 29 15:37:15 2016 -0500 dlm_controld: repeat fencing attempts after all actors fail After fencing fails against a node, restore the original set of nodes that should try to fence it, causing the entire fencing process to be repeated. Continue this until fencing is successful against the failed node. --- dlm_controld/daemon_cpg.c | 17 ++++++++++++++--- dlm_controld/dlm.conf.5 | 2 ++ dlm_controld/dlm_controld.8 | 4 ++++ dlm_controld/dlm_daemon.h | 1 + dlm_controld/main.c | 5 +++++ 5 files changed, 26 insertions(+), 3 deletions(-) diff --git a/dlm_controld/daemon_cpg.c b/dlm_controld/daemon_cpg.c index 0d55027..2009d4f 100644 --- a/dlm_controld/daemon_cpg.c +++ b/dlm_controld/daemon_cpg.c @@ -79,6 +79,7 @@ struct node_daemon { int fence_actor_done; /* for status/debug */ int fence_actor_last; /* for status/debug */ int fence_actors[MAX_NODES]; + int fence_actors_orig[MAX_NODES]; struct protocol proto; struct fence_config fence_config; @@ -537,6 +538,7 @@ static int set_fence_actors(struct node_daemon *node, int all_memb) int i, nodeid, count = 0, low = 0; memset(node->fence_actors, 0, sizeof(node->fence_actors)); + memset(node->fence_actors_orig, 0, sizeof(node->fence_actors_orig)); for (i = 0; i < daemon_member_count; i++) { nodeid = daemon_member[i].nodeid; @@ -550,6 +552,9 @@ static int set_fence_actors(struct node_daemon *node, int all_memb) low = nodeid; } + /* keep a copy of the original set so they can be retried if all fail */ + memcpy(node->fence_actors_orig, node->fence_actors, sizeof(node->fence_actors)); + log_debug("set_fence_actors for %d low %d count %d", node->nodeid, low, count); return low; @@ -592,6 +597,7 @@ static int get_fence_actor(struct node_daemon *node) static void clear_fence_actor(int nodeid, int actor) { struct node_daemon *node; + int remaining = 0; int i; node = get_node_daemon(nodeid); @@ -599,10 +605,15 @@ static void clear_fence_actor(int nodeid, int actor) return; for (i = 0; i < MAX_NODES; i++) { - if (node->fence_actors[i] == actor) { + if (node->fence_actors[i] == actor) node->fence_actors[i] = 0; - return; - } + else if (node->fence_actors[i]) + remaining++; + } + + if (!remaining && opt(repeat_failed_fencing_ind)) { + log_debug("clear_fence_actor %d restoring original actors to retry", actor); + memcpy(node->fence_actors, node->fence_actors_orig, sizeof(node->fence_actors)); } } diff --git a/dlm_controld/dlm.conf.5 b/dlm_controld/dlm.conf.5 index 007e4de..ca4209a 100644 --- a/dlm_controld/dlm.conf.5 +++ b/dlm_controld/dlm.conf.5 @@ -68,6 +68,8 @@ enable_quorum_fencing .br enable_quorum_lockspace .br +repeat_failed_fencing +.br .SH Fencing diff --git a/dlm_controld/dlm_controld.8 b/dlm_controld/dlm_controld.8 index c9011fd..b13cbf3 100644 --- a/dlm_controld/dlm_controld.8 +++ b/dlm_controld/dlm_controld.8 @@ -87,6 +87,10 @@ For default settings, see dlm_controld -h. 0|1 enable/disable quorum requirement for lockspace operations +.B --repeat_failed_fencing +0|1 + enable/disable retrying after fencing fails + .B --fence_all .I str fence all nodes with this agent diff --git a/dlm_controld/dlm_daemon.h b/dlm_controld/dlm_daemon.h index 62508ea..f8068cf 100644 --- a/dlm_controld/dlm_daemon.h +++ b/dlm_controld/dlm_daemon.h @@ -106,6 +106,7 @@ enum { enable_fencing_ind, enable_concurrent_fencing_ind, enable_startup_fencing_ind, + repeat_failed_fencing_ind, enable_quorum_fencing_ind, enable_quorum_lockspace_ind, help_ind, diff --git a/dlm_controld/main.c b/dlm_controld/main.c index 13b3834..02f4737 100644 --- a/dlm_controld/main.c +++ b/dlm_controld/main.c @@ -1346,6 +1346,11 @@ static void set_opt_defaults(void) 1, NULL, "enable/disable startup fencing"); + set_opt_default(repeat_failed_fencing_ind, + "repeat_failed_fencing", '\0', req_arg_bool, + 1, NULL, + "enable/disable retrying after fencing fails"); + set_opt_default(enable_quorum_fencing_ind, "enable_quorum_fencing", 'q', req_arg_bool, 1, NULL,
1
0
0
0
cluster: RHEL6 - mkfs.gfs2: Open the target device with O_EXCL
by Andrew Price
12 Sep '16
12 Sep '16
Gitweb:
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=24e5e65be1c9b…
Commit: 24e5e65be1c9b8b433edc1723b4e13feba0db8ba Parent: 80b9ae57170c1c6042375ea5119aea1ec79e3ab4 Author: Andrew Price <anprice(a)redhat.com> AuthorDate: Tue Apr 5 14:38:03 2016 +0100 Committer: Andrew Price <anprice(a)redhat.com> CommitterDate: Tue Aug 16 17:34:15 2016 +0100 mkfs.gfs2: Open the target device with O_EXCL O_EXCL will let local mounters know that the device is busy while mkfs.gfs2 is running so that they don't try to access it. Before: # mount /dev/vdc /mnt/test mount: /dev/vdc: can't read superblock With O_EXCL: # mount /dev/vdc /mnt/test mount: /dev/vdc is already mounted or /mnt/test busy Resolves: rhbz#1291944 Signed-off-by: Andrew Price <anprice(a)redhat.com> --- gfs2/mkfs/main_mkfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c index b132af8..03f078e 100644 --- a/gfs2/mkfs/main_mkfs.c +++ b/gfs2/mkfs/main_mkfs.c @@ -558,7 +558,7 @@ void main_mkfs(int argc, char *argv[]) verify_arguments(sdp); - sdp->device_fd = open(sdp->device_name, O_RDWR | O_CLOEXEC); + sdp->device_fd = open(sdp->device_name, O_RDWR | O_CLOEXEC | O_EXCL); if (sdp->device_fd < 0) die( _("can't open device %s: %s\n"), sdp->device_name, strerror(errno));
1
0
0
0
Results per page:
10
25
50
100
200