1LTDBTOOL(1)              CTDB - clustered TDB database             LTDBTOOL(1)
2
3
4

NAME

6       ltdbtool - manipulate CTDB's local TDB files
7

SYNOPSIS

9       ltdbtool [OPTION...] {COMMAND} [COMMAND-ARGS]
10

DESCRIPTION

12       ltdbtool is a utility to manipulate CTDB's local TDB databases (LTDBs)
13       without connecting to a CTDB daemon.
14
15       It can be used to:
16
17       ·   dump the contents of a LTDB, optionally printing the CTDB record
18           header information,
19
20       ·   convert between an LTDB and a non-clustered tdb by adding or
21           removing CTDB headers and
22
23       ·   convert between 64 and 32 bit LTDBs where the CTDB record headers
24           differ by 4 bytes of padding.
25

OPTIONS

27       -e
28           Dump empty records. These are normally excluded.
29
30       -p
31           Dump with header information, similar to "ctdb catdb".
32
33       -s {0 | 32 | 64}
34           Specify how to determine the CTDB record header size for the input
35           database:
36
37           0
38               no CTDB header
39
40           32
41               CTDB header size of a 32 bit system (20 bytes)
42
43           64
44               CTDB header size of a 64 bit system (24 bytes)
45
46           The default is 32 or 64 depending on the system architecture.
47
48       -o {0 | 32 | 64}
49           Specify how to determine the CTDB record header size for the output
50           database, see -s.
51
52       -S SIZE
53           Explicitly specify the CTDB record header SIZE of the input
54           database in bytes.
55
56       -O SIZE
57           Explicitly specify the CTDB record header SIZE for the output
58           database in bytes.
59
60       -h
61           Print help text.
62

COMMANDS

64       help
65           Print help text.
66
67       dump IDB
68           Dump the contents of an LTDB input file IDB to standard output in a
69           human-readable format.
70
71       convert IDB ODB
72           Copy an LTDB input file IDB to output file ODB, optionally adding
73           or removing CTDB headers.
74

EXAMPLES

76       Print a local tdb in "tdbdump" style:
77
78                 ltdbtool dump idmap2.tdb.0
79
80
81       Print a local tdb with header information similar to "ctdb catdb":
82
83                 ltdbtool dump -p idmap2.tdb.0
84
85
86       Strip the CTDB headers from records:
87
88                 ltdbtool convert -o0 idmap2.tdb.0 idmap.tdb
89
90
91       Strip 64 bit CTDB headers from records, running on i386:
92
93                 ltdbtool convert -s64 -o0 idmap2.tdb.0 idmap.tdb
94
95
96       Strip the CTDB headers from records by piping through tdbrestore:
97
98                 ltdbtool dump idmap2.tdb.0 | tdbrestore idmap.tdb
99
100
101       Convert a local tdb from a 64 bit system for usage on a 32 bit system:
102
103                 ltdbtool convert -s64 -o32 idmap2.tdb.0 idmap2.tdb.1
104
105
106       Add a default header:
107
108                 ltdbtool convert -s0 idmap.tdb idmap2.tdb.0
109
110

SEE ALSO

112       ctdb(1), tdbdump(1), tdbrestore(1), ctdb(7), http://ctdb.samba.org/
113

AUTHOR

115       This documentation was written by Gregor Beck
116
118       Copyright © 2011 Gregor Beck, Michael Adam
119
120       This program is free software; you can redistribute it and/or modify it
121       under the terms of the GNU General Public License as published by the
122       Free Software Foundation; either version 3 of the License, or (at your
123       option) any later version.
124
125       This program is distributed in the hope that it will be useful, but
126       WITHOUT ANY WARRANTY; without even the implied warranty of
127       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
128       General Public License for more details.
129
130       You should have received a copy of the GNU General Public License along
131       with this program; if not, see http://www.gnu.org/licenses.
132
133
134
135
136ctdb                              04/28/2020                       LTDBTOOL(1)
Impressum