注釈
This executable command is an experimental feature.
バージョン 4.0.9 で追加.
grndb manages a Groonga database.
機能は次の通りです。
- Checks whether database is broken or not.
- Recovers broken database automatically if the database is recoverable.
grndb requires command and database path:
grndb COMMAND [OPTIONS] DATABASE_PATH
利用可能なコマンドは以下の通りです。
- check - Checks whether database is broken or not.
- recover - Recovers database.
以下は /var/lib/groonga/db/db にあるデータベースをチェックする例です:
$ grndb check /var/lib/groonga/db/db
以下は /var/lib/groonga/db/db にあるデータベースを復旧する例です:
$ grndb recover /var/lib/groonga/db/db
このセクションでは利用可能なコマンドについて説明します。
It checks an existing Groonga database. If the database is broken, grndb reports reasons and exits with non-0 exit status.
注釈
You must not use this command for opened database. If the database is opened, this command may report wrong result.
既存の壊れたGroongaデータベースを復旧します。
If the database is not broken, grndb does nothing and exits with 0 exit status.
If the database is broken and one or more index columns are only broken, grndb recovers these index columns and exists with 0 exit status. It may take a long time for large indexed data.
If the database is broken and tables or data columns are broken, grndb reports broken reasons and exits with non-0 exit status. You can know whether the database is recoverable or not by check command.
注釈
You must not use this command for opened database. If the database is opened, this command may break the database.