From a6c4e53aa607c41f0d6cb1fe7a0b1efed2052151 Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Fri, 20 Mar 2015 19:50:08 -0700 Subject: [PATCH] Issue #58: add some more information surrounding the -n option for stoneNewExtent script [ci skip] --- bin/stoneNewExtent | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/bin/stoneNewExtent b/bin/stoneNewExtent index 127704d..3874fb5 100755 --- a/bin/stoneNewExtent +++ b/bin/stoneNewExtent @@ -18,13 +18,26 @@ the stone will be restarted with the -N option. If the -s option is not specified, $GEMSTONE/bin/extent0.seaside.dbf will be used as the initial extent. -With the -n option, the stone is not restarted and the is required. +If the -n option is not specified, the tranlogs in the stone's tranlog directory will +be removed before the stone is restarted. + +With the -n option, the stone is not restarted, the is required +and tranlogs are not removed + +Please read the 'How to Restore from Backup' section of the System Administration manual +(http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/GS64-SysAdmin-3.2.htm?http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/9-BackupAndRestore.htm#pgfId-999128) +before using the -n option. + OPTIONS -h display help -n - No startStone. required. + No startStone. required. Please read the 'How to Restore from + Backup' section of the System Administration manual + (http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/GS64-SysAdmin-3.2.htm?http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/9-BackupAndRestore.htm#pgfId-999128) + before using the -n option. + -s Path to snapshot file used to create stone. @@ -77,7 +90,7 @@ if [ "${noRestart}" = "false" ] ; then echo "Copy snapshot and remove tranlogs" $GS_HOME/bin/tode newExtent $stoneName $snapshotFile - # -N option used to ignore the tranlog files during restart + # -N option used to ignore tranlog files during restart echo "Restarting stone" $GS_HOME/bin/startStone -N $stoneName else @@ -90,4 +103,11 @@ else usage; exit 1 fi $GS_HOME/bin/tode newExtentForRecovery $stoneName $snapshotFile + + echo "Stone is now ready for recovery. Please read the How to Restore from Backup" + echo "section of the manual (http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/GS64-SysAdmin-3.2.htm?http://downloads.gemtalksystems.com/docs/GemStone64/3.2.x/GS64-SysAdmin-3.2/9-BackupAndRestore.htm#pgfId-999128)" + echo "" + echo "In the simplest case you can just use the '$GS_HOME/startGemstone $stoneName'" + echo "and the system will automatically recover from the tranlogs in the stone's " + echo "tranlog directory/" fi