| 1 |
.\" |
| 2 |
.\" nfsdclddb(8) |
| 3 |
.\" |
| 4 |
.TH nfsdclddb 8 "07 Aug 2019" |
| 5 |
.SH NAME |
| 6 |
nfsdclddb \- Tool for manipulating the nfsdcld sqlite database |
| 7 |
.SH SYNOPSIS |
| 8 |
.B nfsdclddb |
| 9 |
.RB [ \-h | \-\-help ] |
| 10 |
.P |
| 11 |
.B nfsdclddb |
| 12 |
.RB [ \-p | \-\-path |
| 13 |
.IR dbpath ] |
| 14 |
.B fix-table-names |
| 15 |
.RB [ \-h | \-\-help ] |
| 16 |
.P |
| 17 |
.B nfsdclddb |
| 18 |
.RB [ \-p | \-\-path |
| 19 |
.IR dbpath ] |
| 20 |
.B downgrade-schema |
| 21 |
.RB [ \-h | \-\-help ] |
| 22 |
.RB [ \-v | \-\-version |
| 23 |
.IR to-version ] |
| 24 |
.P |
| 25 |
.B nfsdclddb |
| 26 |
.RB [ \-p | \-\-path |
| 27 |
.IR dbpath ] |
| 28 |
.B print |
| 29 |
.RB [ \-h | \-\-help ] |
| 30 |
.RB [ \-s | \-\-summary ] |
| 31 |
.P |
| 32 |
|
| 33 |
.SH DESCRIPTION |
| 34 |
.RB "The " nfsdclddb " command is provided to perform some manipulation of the nfsdcld sqlite database schema and to print the contents of the database." |
| 35 |
.SS Sub-commands |
| 36 |
Valid |
| 37 |
.B nfsdclddb |
| 38 |
subcommands are: |
| 39 |
.IP "\fBfix-table-names\fP" |
| 40 |
.RB "A previous version of " nfsdcld "(8) contained a bug that corrupted the reboot epoch table names. This sub-command will fix those table names." |
| 41 |
.IP "\fBdowngrade-schema\fP" |
| 42 |
Downgrade the database schema. Currently the schema can only to downgraded from version 4 to version 3. |
| 43 |
.IP "\fBprint\fP" |
| 44 |
Display the contents of the database. Prints the schema version and the values of the current and recovery epochs. If the |
| 45 |
.BR \-s | \-\-summary |
| 46 |
option is not given, also prints the clients in the reboot epoch tables. |
| 47 |
.SH OPTIONS |
| 48 |
.SS Options valid for all sub-commands |
| 49 |
.TP |
| 50 |
.B \-h, \-\-help |
| 51 |
Show the help message and exit |
| 52 |
.TP |
| 53 |
\fB\-p \fIdbpath\fR, \fB\-\-path \fIdbpath\fR |
| 54 |
Open the sqlite database located at |
| 55 |
.I dbpath |
| 56 |
instead of |
| 57 |
.IR /var/lib/nfs/nfsdcld/main.sqlite ". " |
| 58 |
This is mainly for testing purposes. |
| 59 |
.SS Options specific to the downgrade-schema sub-command |
| 60 |
.TP |
| 61 |
\fB\-v \fIto-version\fR, \fB\-\-version \fIto-version\fR |
| 62 |
The schema version to downgrade to. Currently the schema can only be downgraded to version 3. |
| 63 |
.SS Options specific to the print sub-command |
| 64 |
.TP |
| 65 |
.B \-s, \-\-summary |
| 66 |
Do not list the clients in the reboot epoch tables in the output. |
| 67 |
.SH NOTES |
| 68 |
The |
| 69 |
.B nfsdclddb |
| 70 |
command will not allow the |
| 71 |
.B fix-table-names |
| 72 |
or |
| 73 |
.B downgrade-schema |
| 74 |
subcommands to be used if |
| 75 |
.BR nfsdcld (8) |
| 76 |
is running. |
| 77 |
.SH FILES |
| 78 |
.TP |
| 79 |
.B /var/lib/nfs/nfsdcld/main.sqlite |
| 80 |
.SH SEE ALSO |
| 81 |
.BR nfsdcld (8) |
| 82 |
.SH AUTHOR |
| 83 |
Scott Mayhew <[email protected]> |