The branch, master has been updated
       via  276b233 ctdb-daemon: Consult CTDB_DEBUG_HUNG_SCRIPT variable before 
running debug script
       via  9a2a5a2 ctdb-eventscripts: Create extra files for ganesha recovery
       via  6b378f2 ctdb-eventscripts: Run mmlsconfig only once and use cached 
results
      from  218d397 param: change share backend to use a constant string

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 276b233c0090d51b59dbe06ae66a14ee09cbb4c2
Author: Amitay Isaacs <[email protected]>
Date:   Tue Feb 11 17:29:26 2014 +1100

    ctdb-daemon: Consult CTDB_DEBUG_HUNG_SCRIPT variable before running debug 
script
    
    If CTDB_DEUB_HUNG_SCRIPT is set, use that instead of the default
    debug script.  This code was dropped by mistake in commit
    18c1f432102f1a5093927be9276d001180539e50.
    
    Signed-off-by: Amitay Isaacs <[email protected]>
    Reviewed-by: Martin Schwenke <[email protected]>
    
    Autobuild-User(master): Martin Schwenke <[email protected]>
    Autobuild-Date(master): Wed Feb 12 08:47:47 CET 2014 on sn-devel-104

commit 9a2a5a2f7c7d3d6b4c03bb97e134ca0452a83bb8
Author: Srikrishan Malik <[email protected]>
Date:   Mon Feb 10 11:19:08 2014 +0530

    ctdb-eventscripts: Create extra files for ganesha recovery
    
    This adds new files for Ganesha's recovery.  myreleaseip_* are used by
    the recovery thread on the node where IP is released. The releaseip_*
    and tekeip_* files are used by recovery thread where IP is taken over.
    
    Signed-off-by: Srikrishan Malik <[email protected]>
    Reviewed-by: Amitay Isaacs <[email protected]>
    Reviewed-by: Martin Schwenke <[email protected]>

commit 6b378f2f76e433023e57dd78bc3f98e0ef1f34f1
Author: Srikrishan Malik <[email protected]>
Date:   Mon Feb 10 11:10:48 2014 +0530

    ctdb-eventscripts: Run mmlsconfig only once and use cached results
    
    Signed-off-by: Srikrishan Malik <[email protected]>
    Reviewed-by: Amitay Isaacs <[email protected]>
    Reviewed-by: Martin Schwenke <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 ctdb/config/events.d/60.ganesha |   24 ++++++++++++++++++++++--
 ctdb/server/eventscript.c       |    4 ++++
 2 files changed, 26 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/ctdb/config/events.d/60.ganesha b/ctdb/config/events.d/60.ganesha
index 1d32638..e8a52b0 100755
--- a/ctdb/config/events.d/60.ganesha
+++ b/ctdb/config/events.d/60.ganesha
@@ -50,6 +50,8 @@ is_ctdb_managed_service || exit 0
 
 ctdb_service_check_reconfigure
 
+nodenum_file="${service_state_dir}/gpfs_nodenum"
+
 get_cluster_fs_state  ()
 {
     case $CTDB_CLUSTER_FILESYSTEM_TYPE in
@@ -63,6 +65,21 @@ get_cluster_fs_state  ()
    esac
 }
 
+create_nodenum_file()
+{
+    NNUM=$(/usr/lpp/mmfs/bin/mmlsconfig myNodeConfigNumber | awk '{print $2}')
+    echo $NNUM > $nodenum_file
+}
+
+get_nodenum()
+{
+    if [ ! -f $nodenum_file ]; then
+        create_nodenum_file
+    fi
+    cat $nodenum_file
+}
+
+
 create_ganesha_recdirs ()
 {
     MOUNTS=$(mount -t $CTDB_CLUSTER_FILESYSTEM_TYPE)
@@ -153,6 +170,7 @@ case "$1" in
      startup)
        create_ganesha_recdirs
        ctdb_service_start
+       create_nodenum_file
        ;;
 
      shutdown)
@@ -163,7 +181,7 @@ case "$1" in
        if [ -n "$2" ] ; then
            case  $CTDB_CLUSTER_FILESYSTEM_TYPE in
                gpfs)
-                   NNUM=`/usr/lpp/mmfs/bin/mmlsconfig myNodeConfigNumber | awk 
'{print $2}'`
+                   NNUM=$(get_nodenum)
                    TDATE=`date +"%s"`
                    TOUCHTGT=$1"_"$TDATE"_"$NNUM"_"$3"_"$4"_"$2
                    touch $GANRECDIR2/$TOUCHTGT
@@ -177,10 +195,12 @@ case "$1" in
        if [ -n "$2" ] ; then
            case  $CTDB_CLUSTER_FILESYSTEM_TYPE in
                gpfs)
-                   NNUM=`/usr/lpp/mmfs/bin/mmlsconfig myNodeConfigNumber | awk 
'{print $2}'`
+                   NNUM=$(get_nodenum)
                    TDATE=`date +"%s"`
                    TOUCHTGT=$1"_"$TDATE"_"$NNUM"_"$3"_"$4"_"$2
                    touch $GANRECDIR2/$TOUCHTGT
+                   TOUCHTGT="my"$TOUCHTGT
+                   touch $GANRECDIR2/$TOUCHTGT
                ;;
            esac
        fi
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index b85fed5..ed20124 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -456,6 +456,10 @@ static void ctdb_run_debug_hung_script(struct ctdb_context 
*ctdb, struct debug_h
                return;
        }
 
+       if (getenv("CTDB_DEBUG_HUNG_SCRIPT") != NULL) {
+               debug_hung_script = getenv("CTDB_DEBUG_HUNG_SCRIPT");
+       }
+
        argv = talloc_array(state, const char *, 5);
 
        argv[0] = talloc_asprintf(argv, "%d", fd[1]);


-- 
Samba Shared Repository

Reply via email to