![]() |
![]()
| ![]() |
![]()
NAMEltdbtool - manipulate CTDB's local TDB files SYNOPSISltdbtool [OPTION...] {COMMAND} [COMMAND-ARGS] DESCRIPTIONltdbtool is a utility to manipulate CTDB's local TDB databases (LTDBs) without connecting to a CTDB daemon. It can be used to: •dump the contents of a LTDB, optionally printing
the CTDB record header information,
•convert between an LTDB and a non-clustered tdb
by adding or removing CTDB headers and
•convert between 64 and 32 bit LTDBs where the
CTDB record headers differ by 4 bytes of padding.
OPTIONS-e Dump empty records. These are normally excluded.
-p Dump with header information, similar to "ctdb
catdb".
-s {0 | 32 | 64} Specify how to determine the CTDB record header size for
the input database:
0 no CTDB header
32 CTDB header size of a 32 bit system (20 bytes)
64 CTDB header size of a 64 bit system (24 bytes)
The default is 32 or 64 depending on the system architecture. -o {0 | 32 | 64} Specify how to determine the CTDB record header size for
the output database, see -s.
-S SIZE Explicitly specify the CTDB record header SIZE of the
input database in bytes.
-O SIZE Explicitly specify the CTDB record header SIZE for the
output database in bytes.
-h Print help text.
COMMANDShelp Print help text.
dump IDB Dump the contents of an LTDB input file IDB to standard
output in a human-readable format.
convert IDB ODB Copy an LTDB input file IDB to output file ODB,
optionally adding or removing CTDB headers.
EXAMPLESPrint a local tdb in "tdbdump" style:
Print a local tdb with header information similar to "ctdb catdb":
Strip the CTDB headers from records:
Strip 64 bit CTDB headers from records, running on i386:
Strip the CTDB headers from records by piping through tdbrestore:
Convert a local tdb from a 64 bit system for usage on a 32 bit system:
Add a default header:
SEE ALSOctdb(1), tdbdump(1), tdbrestore(1), ctdb(7), http://ctdb.samba.org/ AUTHORThis documentation was written by Gregor Beck COPYRIGHTCopyright © 2011 Gregor Beck, Michael Adam
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
|