From: <dme...@us...> - 2014-04-14 09:52:41
|
Revision: 8114 http://sourceforge.net/p/bigdata/code/8114 Author: dmekonnen Date: 2014-04-14 09:52:38 +0000 (Mon, 14 Apr 2014) Log Message: ----------- updates to support running HARestore upon reboot. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA Added Paths: ----------- branches/BIGDATA_RELEASE_1_3_0/src/resources/bin/HARestore Added: branches/BIGDATA_RELEASE_1_3_0/src/resources/bin/HARestore =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/src/resources/bin/HARestore (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/src/resources/bin/HARestore 2014-04-14 09:52:38 UTC (rev 8114) @@ -0,0 +1,10 @@ +#!/bin/bash + +source /etc/default/bigdataHA + +SERVICE_DIR="$FED_DIR/$FEDNAME/$LOGICAL_SERVICE_ID/HAJournalServer" +LIB_DIR="$FED_DIR/lib" + +java -cp $LIB_DIR/bigdata.jar:$LIB_DIR/commons-logging.jar:$LIB_DIR/log4j.jar:$LIB_DIR/highscalelib.jar:$LIB_DIR/fastutil.jar:$LIB_DIR/dsiutils.jar:$LIB_DIR/lgplutils.jar:$LIB_DIR/icu4j.jar -Dlog4j.configuration=file:var/config/logging/log4j.properties com.bigdata.journal.jini.ha.HARestore -o $DATA_DIR/bigdata-ha.jnl $SERVICE_DIR/snapshot $SERVICE_DIR/HALog + + Property changes on: branches/BIGDATA_RELEASE_1_3_0/src/resources/bin/HARestore ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Modified: branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA 2014-04-13 04:05:32 UTC (rev 8113) +++ branches/BIGDATA_RELEASE_1_3_0/src/resources/etc/init.d/bigdataHA 2014-04-14 09:52:38 UTC (rev 8114) @@ -70,7 +70,13 @@ cd $FED_DIR +if [ ! -d "$DATA_DIR/lost+found" ]; then + mount /dev/vg/lv_bigdata $DATA_DIR + action $"`date` : `hostname` : restoring bigdata journal file: " sudo -u $BD_USER -g $BD_GROUP bin/HARestore +fi + + # # See how we were called. # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |