------------------------------------------------------------
revno: 520
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: tridge
timestamp: Sat 2007-06-09 21:31:59 +1000
message:
  merge from ronnie
added:
  web/prerequisites.html         
prerequisites.html-20070609072440-316agucpmgyar8n9-1
modified:
  server/ctdb_recoverd.c         recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
  web/documentation.html         
documentation.html-20070609045837-x3vec3l27niwxtfg-1
  web/index.html                 ctdb.html-20070601052353-vgod9lfo4an4o83j-2
    ------------------------------------------------------------
    revno: 432.1.65
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 20:13:25 +1000
    message:
      should be sufficient to unban nodes when we unbecome recmaster
    ------------------------------------------------------------
    revno: 432.1.64
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 20:11:51 +1000
    message:
      unban all nodes when we release recmaster role or when we win an 
      election
    ------------------------------------------------------------
    revno: 432.1.63
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 19:49:28 +1000
    message:
      remove rht unban code from when we take recmaster role.   we can not 
      send control broadcasts yet
    ------------------------------------------------------------
    revno: 432.1.62
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 19:42:41 +1000
    message:
      add code to unban when we become/unbecome recmaster
    ------------------------------------------------------------
    revno: 432.1.61
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 17:45:24 +1000
    message:
      capitalize some links
    ------------------------------------------------------------
    revno: 432.1.60
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 17:24:44 +1000
    message:
      add a tiny prerequisites page stating that you need a cluster filesystem 
      first before you install CTDB
    ------------------------------------------------------------
    revno: 432.1.59
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 17:16:59 +1000
    message:
      create a separate list of links for the manpages
    ------------------------------------------------------------
    revno: 432.1.58
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 17:15:26 +1000
    message:
      replace the list of documentation links on the front page with a link to 
      the documentations page
    ------------------------------------------------------------
    revno: 432.1.57
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 15:38:17 +1000
    message:
      merge from tridge
    ------------------------------------------------------------
    revno: 432.1.56
    merged: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    parent: [EMAIL PROTECTED]
    committer: Ronnie Sahlberg <[EMAIL PROTECTED]>
    branch nick: ctdb
    timestamp: Sat 2007-06-09 15:17:16 +1000
    message:
      merge from tridge
=== added file 'web/prerequisites.html'
--- a/web/prerequisites.html    1970-01-01 00:00:00 +0000
+++ b/web/prerequisites.html    2007-06-09 07:24:44 +0000
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+<TITLE>Prerequisites</TITLE>
+</HEAD>
+<!--#include virtual="header.html" -->
+
+<h1>Prerequisites</h1>
+
+Before you can start using CTDB you must first install and configure a bunch 
of linux boxes.<br><br>
+
+After that you need to install and configure a cluster filesystem and mount 
that cluster filesystem on all the linux boxes that will form your 
cluster.<br><br>
+
+We have primarily used the GPFS filesystem for our testing but any cluster 
filesystem should work as long as it provides correct file locking.<br>
+
+<h1>Other cluster filesystems</h1>
+While we primarily test with GPFS, CTDB should work with almost any other 
cluster filesystem as well.<br><br>
+Please let us know your experiences in using other cluster filesystems.
+
+
+<!--#include virtual="footer.html" -->
+

=== modified file 'server/ctdb_recoverd.c'
--- a/server/ctdb_recoverd.c    2007-06-07 12:06:19 +0000
+++ b/server/ctdb_recoverd.c    2007-06-09 10:13:25 +0000
@@ -888,6 +888,30 @@
        return 0;
 }
 
+/*
+  this function will unban all nodes in the cluster
+*/
+static void unban_all_nodes(struct ctdb_context *ctdb)
+{
+       int ret, i;
+       struct ctdb_node_map *nodemap;
+       TALLOC_CTX *tmp_ctx = talloc_new(ctdb);
+       
+       ret = ctdb_ctrl_getnodemap(ctdb, CONTROL_TIMEOUT(), CTDB_CURRENT_NODE, 
tmp_ctx, &nodemap);
+       if (ret != 0) {
+               DEBUG(0,(__location__ " failed to get nodemap to unban all 
nodes\n"));
+               return;
+       }
+
+       for (i=0;i<nodemap->num;i++) {
+               if ( (!(nodemap->nodes[i].flags & NODE_FLAGS_DISCONNECTED))
+                 && (nodemap->nodes[i].flags & NODE_FLAGS_BANNED) ) {
+                       ctdb_ctrl_modflags(ctdb, CONTROL_TIMEOUT(), 
nodemap->nodes[i].vnn, 0, NODE_FLAGS_BANNED);
+               }
+       }
+
+       talloc_free(tmp_ctx);
+}
 
 /*
   handler for recovery master elections
@@ -912,6 +936,7 @@
                        DEBUG(0, (__location__ " failed to initiate recmaster 
election"));
                }
                talloc_free(mem_ctx);
+               /*unban_all_nodes(ctdb);*/
                return;
        }
 
@@ -920,6 +945,7 @@
            ctdb->recovery_lock_fd != -1) {
                close(ctdb->recovery_lock_fd);
                ctdb->recovery_lock_fd = -1;
+               unban_all_nodes(ctdb);
        }
 
        /* ok, let that guy become recmaster then */

=== modified file 'web/documentation.html'
--- a/web/documentation.html    2007-06-09 05:11:05 +0000
+++ b/web/documentation.html    2007-06-09 07:45:24 +0000
@@ -11,15 +11,20 @@
 get you started
 
 <ul>
-<li><a href="http://ctdb.samba.org/~tridge/ctdb/doc/ctdb.1.html";>ctdb manual 
page</a>
-<li><a href="download.html">downloading CTDB</a>
-<li><a href="building.html">building CTDB</a>
-<li><a href="configuring.html">configuring CTDB</a>
-<li><a href="configuring.html">testing CTDB</a>
+<li><a href="prerequisites.html">Prerequisites</a>
+<li><a href="download.html">Downloading CTDB</a>
+<li><a href="building.html">Building CTDB</a>
+<li><a href="configuring.html">Configuring CTDB</a>
+<li><a href="configuring.html">Testing CTDB</a>
 <li><a href="samba.html">Setting up Samba with CTDB</a>
 <li><a href="ftp.html">Setting up FTP with CTDB</a>
 <li><a href="nfs.html">Setting up NFS with CTDB</a>
 <li><a href="http://wiki.samba.org/index.php/CTDB_Setup";>CTDB Wiki</a>
 </ul>
 
+Man pages:
+<ul>
+<li><a href="http://ctdb.samba.org/~tridge/ctdb/doc/ctdb.1.html";>ctdb manual 
page</a>
+</ul>
+
 <!--#include virtual="footer.html" -->

=== modified file 'web/index.html'
--- a/web/index.html    2007-06-09 05:11:05 +0000
+++ b/web/index.html    2007-06-09 07:15:26 +0000
@@ -61,17 +61,8 @@
 
 <h2>Documentation</h2>
 
-<ul>
-<li><a href="download.html">Getting the code</a><br>
-<li><a href="building.html">Building Samba and CTDB</a><br>
-<li><a href="configuring.html">Configuring CTDB</a><br>
-<li><a href="testing.html">Starting and testing CTDB</a><br>
-<li><a href="samba.html">Setting up clustered Samba</a><br>
-<li><a href="nfs.html">Setting up clustered NFS</a><br>
-<li><a href="ftp.html">Setting up clustered FTP</a><br>
-</ul>
+<a href="./documentation.html">CTDB documentation</a><br><br>
 
-<br>
 Additional documentation on how to install and configure CTDB is available in 
the
 <a href="http://wiki.samba.org/index.php/CTDB_Setup";>CTDB
   Wiki</a>. Please read all of the documentation carefully.
@@ -127,7 +118,7 @@
 <h2>Discussion and bug reports</h2>
 
 For discussions please use
-the 
<ahref="https://lists.samba.org/mailman/listinfo/samba-technical";>samba-technical</a>
+the <a 
href="https://lists.samba.org/mailman/listinfo/samba-technical";>samba-technical</a>
 mailing list. To submit a bug report, please use
 the <a href="http://bugzilla.samba.org/";>Samba bugzilla</a> bug
 tracking system.

Reply via email to