1 | '\" t
|
---|
2 | .\" Title: ltdbtool
|
---|
3 | .\" Author:
|
---|
4 | .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
---|
5 | .\" Date: 01/27/2016
|
---|
6 | .\" Manual: CTDB - clustered TDB database
|
---|
7 | .\" Source: ctdb
|
---|
8 | .\" Language: English
|
---|
9 | .\"
|
---|
10 | .TH "LTDBTOOL" "1" "01/27/2016" "ctdb" "CTDB \- clustered TDB database"
|
---|
11 | .\" -----------------------------------------------------------------
|
---|
12 | .\" * Define some portability stuff
|
---|
13 | .\" -----------------------------------------------------------------
|
---|
14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
15 | .\" http://bugs.debian.org/507673
|
---|
16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
---|
17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
18 | .ie \n(.g .ds Aq \(aq
|
---|
19 | .el .ds Aq '
|
---|
20 | .\" -----------------------------------------------------------------
|
---|
21 | .\" * set default formatting
|
---|
22 | .\" -----------------------------------------------------------------
|
---|
23 | .\" disable hyphenation
|
---|
24 | .nh
|
---|
25 | .\" disable justification (adjust text to left margin only)
|
---|
26 | .ad l
|
---|
27 | .\" -----------------------------------------------------------------
|
---|
28 | .\" * MAIN CONTENT STARTS HERE *
|
---|
29 | .\" -----------------------------------------------------------------
|
---|
30 | .SH "NAME"
|
---|
31 | ltdbtool \- manipulate CTDB\*(Aqs local TDB files
|
---|
32 | .SH "SYNOPSIS"
|
---|
33 | .HP \w'\fBltdbtool\fR\ 'u
|
---|
34 | \fBltdbtool\fR [\fIOPTION\fR...] {\fICOMMAND\fR} [\fICOMMAND\-ARGS\fR]
|
---|
35 | .SH "DESCRIPTION"
|
---|
36 | .PP
|
---|
37 | ltdbtool is a utility to manipulate CTDB\*(Aqs local TDB databases (LTDBs) without connecting to a CTDB daemon\&.
|
---|
38 | .PP
|
---|
39 | It can be used to:
|
---|
40 | .sp
|
---|
41 | .RS 4
|
---|
42 | .ie n \{\
|
---|
43 | \h'-04'\(bu\h'+03'\c
|
---|
44 | .\}
|
---|
45 | .el \{\
|
---|
46 | .sp -1
|
---|
47 | .IP \(bu 2.3
|
---|
48 | .\}
|
---|
49 | dump the contents of a LTDB, optionally printing the CTDB record header information,
|
---|
50 | .RE
|
---|
51 | .sp
|
---|
52 | .RS 4
|
---|
53 | .ie n \{\
|
---|
54 | \h'-04'\(bu\h'+03'\c
|
---|
55 | .\}
|
---|
56 | .el \{\
|
---|
57 | .sp -1
|
---|
58 | .IP \(bu 2.3
|
---|
59 | .\}
|
---|
60 | convert between an LTDB and a non\-clustered tdb by adding or removing CTDB headers and
|
---|
61 | .RE
|
---|
62 | .sp
|
---|
63 | .RS 4
|
---|
64 | .ie n \{\
|
---|
65 | \h'-04'\(bu\h'+03'\c
|
---|
66 | .\}
|
---|
67 | .el \{\
|
---|
68 | .sp -1
|
---|
69 | .IP \(bu 2.3
|
---|
70 | .\}
|
---|
71 | convert between 64 and 32 bit LTDBs where the CTDB record headers differ by 4 bytes of padding\&.
|
---|
72 | .RE
|
---|
73 | .SH "OPTIONS"
|
---|
74 | .PP
|
---|
75 | \-e
|
---|
76 | .RS 4
|
---|
77 | Dump empty records\&. These are normally excluded\&.
|
---|
78 | .RE
|
---|
79 | .PP
|
---|
80 | \-p
|
---|
81 | .RS 4
|
---|
82 | Dump with header information, similar to "ctdb catdb"\&.
|
---|
83 | .RE
|
---|
84 | .PP
|
---|
85 | \-s {0 | 32 | 64}
|
---|
86 | .RS 4
|
---|
87 | Specify how to determine the CTDB record header size for the input database:
|
---|
88 | .PP
|
---|
89 | 0
|
---|
90 | .RS 4
|
---|
91 | no CTDB header
|
---|
92 | .RE
|
---|
93 | .PP
|
---|
94 | 32
|
---|
95 | .RS 4
|
---|
96 | CTDB header size of a 32 bit system (20 bytes)
|
---|
97 | .RE
|
---|
98 | .PP
|
---|
99 | 64
|
---|
100 | .RS 4
|
---|
101 | CTDB header size of a 64 bit system (24 bytes)
|
---|
102 | .RE
|
---|
103 | .sp
|
---|
104 | The default is 32 or 64 depending on the system architecture\&.
|
---|
105 | .RE
|
---|
106 | .PP
|
---|
107 | \-o {0 | 32 | 64}
|
---|
108 | .RS 4
|
---|
109 | Specify how to determine the CTDB record header size for the output database, see \-s\&.
|
---|
110 | .RE
|
---|
111 | .PP
|
---|
112 | \-S \fISIZE\fR
|
---|
113 | .RS 4
|
---|
114 | Explicitly specify the CTDB record header SIZE of the input database in bytes\&.
|
---|
115 | .RE
|
---|
116 | .PP
|
---|
117 | \-O \fISIZE\fR
|
---|
118 | .RS 4
|
---|
119 | Explicitly specify the CTDB record header SIZE for the output database in bytes\&.
|
---|
120 | .RE
|
---|
121 | .PP
|
---|
122 | \-h
|
---|
123 | .RS 4
|
---|
124 | Print help text\&.
|
---|
125 | .RE
|
---|
126 | .SH "COMMANDS"
|
---|
127 | .PP
|
---|
128 | help
|
---|
129 | .RS 4
|
---|
130 | Print help text\&.
|
---|
131 | .RE
|
---|
132 | .PP
|
---|
133 | dump \fIIDB\fR
|
---|
134 | .RS 4
|
---|
135 | Dump the contents of an LTDB input file IDB to standard output in a human\-readable format\&.
|
---|
136 | .RE
|
---|
137 | .PP
|
---|
138 | convert \fIIDB\fR \fIODB\fR
|
---|
139 | .RS 4
|
---|
140 | Copy an LTDB input file IDB to output file ODB, optionally adding or removing CTDB headers\&.
|
---|
141 | .RE
|
---|
142 | .SH "EXAMPLES"
|
---|
143 | .PP
|
---|
144 | Print a local tdb in "tdbdump" style:
|
---|
145 | .sp
|
---|
146 | .if n \{\
|
---|
147 | .RS 4
|
---|
148 | .\}
|
---|
149 | .nf
|
---|
150 | ltdbtool dump idmap2\&.tdb\&.0
|
---|
151 |
|
---|
152 | .fi
|
---|
153 | .if n \{\
|
---|
154 | .RE
|
---|
155 | .\}
|
---|
156 | .PP
|
---|
157 | Print a local tdb with header information similar to "ctdb catdb":
|
---|
158 | .sp
|
---|
159 | .if n \{\
|
---|
160 | .RS 4
|
---|
161 | .\}
|
---|
162 | .nf
|
---|
163 | ltdbtool dump \-p idmap2\&.tdb\&.0
|
---|
164 |
|
---|
165 | .fi
|
---|
166 | .if n \{\
|
---|
167 | .RE
|
---|
168 | .\}
|
---|
169 | .PP
|
---|
170 | Strip the CTDB headers from records:
|
---|
171 | .sp
|
---|
172 | .if n \{\
|
---|
173 | .RS 4
|
---|
174 | .\}
|
---|
175 | .nf
|
---|
176 | ltdbtool convert \-o0 idmap2\&.tdb\&.0 idmap\&.tdb
|
---|
177 |
|
---|
178 | .fi
|
---|
179 | .if n \{\
|
---|
180 | .RE
|
---|
181 | .\}
|
---|
182 | .PP
|
---|
183 | Strip 64 bit CTDB headers from records, running on i386:
|
---|
184 | .sp
|
---|
185 | .if n \{\
|
---|
186 | .RS 4
|
---|
187 | .\}
|
---|
188 | .nf
|
---|
189 | ltdbtool convert \-s64 \-o0 idmap2\&.tdb\&.0 idmap\&.tdb
|
---|
190 |
|
---|
191 | .fi
|
---|
192 | .if n \{\
|
---|
193 | .RE
|
---|
194 | .\}
|
---|
195 | .PP
|
---|
196 | Strip the CTDB headers from records by piping through tdbrestore:
|
---|
197 | .sp
|
---|
198 | .if n \{\
|
---|
199 | .RS 4
|
---|
200 | .\}
|
---|
201 | .nf
|
---|
202 | ltdbtool dump idmap2\&.tdb\&.0 | tdbrestore idmap\&.tdb
|
---|
203 |
|
---|
204 | .fi
|
---|
205 | .if n \{\
|
---|
206 | .RE
|
---|
207 | .\}
|
---|
208 | .PP
|
---|
209 | Convert a local tdb from a 64 bit system for usage on a 32 bit system:
|
---|
210 | .sp
|
---|
211 | .if n \{\
|
---|
212 | .RS 4
|
---|
213 | .\}
|
---|
214 | .nf
|
---|
215 | ltdbtool convert \-s64 \-o32 idmap2\&.tdb\&.0 idmap2\&.tdb\&.1
|
---|
216 |
|
---|
217 | .fi
|
---|
218 | .if n \{\
|
---|
219 | .RE
|
---|
220 | .\}
|
---|
221 | .PP
|
---|
222 | Add a default header:
|
---|
223 | .sp
|
---|
224 | .if n \{\
|
---|
225 | .RS 4
|
---|
226 | .\}
|
---|
227 | .nf
|
---|
228 | ltdbtool convert \-s0 idmap\&.tdb idmap2\&.tdb\&.0
|
---|
229 |
|
---|
230 | .fi
|
---|
231 | .if n \{\
|
---|
232 | .RE
|
---|
233 | .\}
|
---|
234 | .SH "SEE ALSO"
|
---|
235 | .PP
|
---|
236 | \fBctdb\fR(1),
|
---|
237 | \fBtdbdump\fR(1),
|
---|
238 | \fBtdbrestore\fR(1),
|
---|
239 | \fBctdb\fR(7),
|
---|
240 | \m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
|
---|
241 | .SH "AUTHOR"
|
---|
242 | .br
|
---|
243 | .PP
|
---|
244 | This documentation was written by Gregor Beck
|
---|
245 | .SH "COPYRIGHT"
|
---|
246 | .br
|
---|
247 | Copyright \(co 2011 Gregor Beck, Michael Adam
|
---|
248 | .br
|
---|
249 | .PP
|
---|
250 | 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\&.
|
---|
251 | .PP
|
---|
252 | 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\&.
|
---|
253 | .PP
|
---|
254 | You should have received a copy of the GNU General Public License along with this program; if not, see
|
---|
255 | \m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
|
---|
256 | .sp
|
---|