source: vendor/current/ctdb/doc/ltdbtool.1

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 5.2 KB
Line 
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"
31ltdbtool \- 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
37ltdbtool is a utility to manipulate CTDB\*(Aqs local TDB databases (LTDBs) without connecting to a CTDB daemon\&.
38.PP
39It 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.\}
49dump 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.\}
60convert 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.\}
71convert 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
77Dump empty records\&. These are normally excluded\&.
78.RE
79.PP
80\-p
81.RS 4
82Dump with header information, similar to "ctdb catdb"\&.
83.RE
84.PP
85\-s {0 | 32 | 64}
86.RS 4
87Specify how to determine the CTDB record header size for the input database:
88.PP
890
90.RS 4
91no CTDB header
92.RE
93.PP
9432
95.RS 4
96CTDB header size of a 32 bit system (20 bytes)
97.RE
98.PP
9964
100.RS 4
101CTDB header size of a 64 bit system (24 bytes)
102.RE
103.sp
104The default is 32 or 64 depending on the system architecture\&.
105.RE
106.PP
107\-o {0 | 32 | 64}
108.RS 4
109Specify 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
114Explicitly specify the CTDB record header SIZE of the input database in bytes\&.
115.RE
116.PP
117\-O \fISIZE\fR
118.RS 4
119Explicitly specify the CTDB record header SIZE for the output database in bytes\&.
120.RE
121.PP
122\-h
123.RS 4
124Print help text\&.
125.RE
126.SH "COMMANDS"
127.PP
128help
129.RS 4
130Print help text\&.
131.RE
132.PP
133dump \fIIDB\fR
134.RS 4
135Dump the contents of an LTDB input file IDB to standard output in a human\-readable format\&.
136.RE
137.PP
138convert \fIIDB\fR \fIODB\fR
139.RS 4
140Copy an LTDB input file IDB to output file ODB, optionally adding or removing CTDB headers\&.
141.RE
142.SH "EXAMPLES"
143.PP
144Print 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
157Print 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
170Strip 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
183Strip 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
196Strip 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
209Convert 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
222Add 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
244This documentation was written by Gregor Beck
245.SH "COPYRIGHT"
246.br
247Copyright \(co 2011 Gregor Beck, Michael Adam
248.br
249.PP
250This 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
252This 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
254You 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
Note: See TracBrowser for help on using the repository browser.