Kentaro Hayashi
null+****@clear*****
Wed Jun 14 15:29:40 JST 2017
Kentaro Hayashi 2017-06-14 15:29:40 +0900 (Wed, 14 Jun 2017) New Revision: ce48199c6ea1b37eef0dfed2941b930d420393ed https://github.com/groonga/groonga/commit/ce48199c6ea1b37eef0dfed2941b930d420393ed Merged f6a246e: Merge pull request #713 from kenhys/doc-grndb-force-truncate Message: doc: add grndb --force-truncate document Modified files: doc/source/reference/executables/grndb.rst Modified: doc/source/reference/executables/grndb.rst (+26 -0) =================================================================== --- doc/source/reference/executables/grndb.rst 2017-06-24 02:07:23 +0900 (ac90cb0) +++ doc/source/reference/executables/grndb.rst 2017-06-14 15:29:40 +0900 (48d856a) @@ -143,6 +143,32 @@ status. You can know whether the database is recoverable or not by ``recover`` has some options. +``--force-truncate`` +"""""""""""""""""""" + +.. versionadded:: 7.0.4 + +It forces to truncate a corrupted database object. + +Here is an example that specifies ``--force-truncate`` option:: + + % grndb recover --force-truncate --log-level info --log-path /var/log/groonga/grndb.log /var/lib/groonga/db/db + +When this option is specified, ``grndb`` does the following: + +* check whether there is a corrupted database object (table, column, indexes) +* truncate a corrupted database object (table, column, indexes) +* remove incremental files with .00N suffix which is created when large amount of data is loaded + +``--force-truncate`` option is destructive one. Even though lock is still remained, ``grndb`` truncates a targeted corrupted database object. + +After ``grndb recover`` command has finished, you need to load data +against truncated tables or columns to recreate database. + +.. note:: + + You must use this option only when necessary. It means that you use it when there is a mismatch between database meta information and database object files which exists actually. This options should be used when there is no other way to recover database. + ``--log-level`` """"""""""""""" -------------- next part -------------- HTML����������������������������... 下載