other versions
- jessie 2:4.2.14+dfsg-0+deb8u9
- stretch 2:4.5.16+dfsg-1
- testing 2:4.9.4+dfsg-4
- unstable 2:4.9.4+dfsg-4
- experimental 2:4.9.5+dfsg-1
LTDBTOOL(1) | CTDB - clustered TDB database | LTDBTOOL(1) |
NAME¶
ltdbtool - manipulate CTDB's local TDB filesSYNOPSIS¶
ltdbtool [OPTION...] {COMMAND}
[COMMAND-ARGS]
DESCRIPTION¶
ltdbtool 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¶
-eDump 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
-o {0 | 32 | 64}
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.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.
COMMANDS¶
helpPrint 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.
EXAMPLES¶
Print a local tdb in "tdbdump" style:ltdbtool dump idmap2.tdb.0
ltdbtool dump -p idmap2.tdb.0
ltdbtool convert -o0 idmap2.tdb.0 idmap.tdb
ltdbtool convert -s64 -o0 idmap2.tdb.0 idmap.tdb
ltdbtool dump idmap2.tdb.0 | tdbrestore idmap.tdb
ltdbtool convert -s64 -o32 idmap2.tdb.0 idmap2.tdb.1
ltdbtool convert -s0 idmap.tdb idmap2.tdb.0
SEE ALSO¶
ctdb(1), tdbdump(1), tdbrestore(1), ctdb(7), http://ctdb.samba.org/AUTHOR¶
This documentation was written by Gregor BeckCOPYRIGHT¶
Copyright © 2011 Gregor Beck, Michael Adam11/12/2017 | ctdb |