Make sure to always create the tickle directories for nfs
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:27:41 +0000 (05:27 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:27:41 +0000 (05:27 +1100)
on the monitor event

BZ56707

config/events.d/61.nfstickle

index c91d3938a9e30bd431179cc8e0dbc7977022e0ae..99004984c82c982fee56bff268209a8bbd9c6e07 100755 (executable)
@@ -17,6 +17,11 @@ ctdb_start_stop_service
 
 store_tickles()
 {
+       # always create these direcotries since NFS might be enabled at runtime
+       # and we dont want to restart ctdbd
+       mkdir -p $CTDB_BASE/state/nfstickle
+       mkdir -p $NFS_TICKLE_SHARED_DIRECTORY/`hostname`
+
        mydir=$NFS_TICKLE_SHARED_DIRECTORY/`hostname`
        rm -f $mydir/*
        # record our connections to shared storage