thin-provisioning-tools/man8/thin_dump.8

84 lines
2.4 KiB
Groff
Raw Normal View History

2011-12-16 16:10:08 +05:30
.TH THIN_DUMP 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
2011-12-15 18:26:48 +05:30
.SH NAME
thin_dump \- dump thin provisioning metadata from device or file to standard output
.SH SYNOPSIS
2012-03-06 00:04:55 +05:30
.B thin_dump
.RB [options]
.I {device|file}
2011-12-15 18:26:48 +05:30
.SH DESCRIPTION
2012-03-06 00:04:55 +05:30
.B thin_dump
dumps binary thin provisioning metadata (optionally from alternate block;
see option \-\-metadata-snap) created by the device-mapper
thin provisioning target on a
.I device
or
.I file
to standard output for
2011-12-15 18:30:34 +05:30
analysis or postprocessing in either XML or human readable format.
2011-12-15 18:26:48 +05:30
XML formated metadata can be fed into thin_restore (see
2012-03-06 00:04:55 +05:30
.BR thin_restore(8) )
in order to put it back onto a metadata
.I device
(to process by the device-mapper target) or
.I file.
2011-12-15 18:26:48 +05:30
This tool cannot be run on live metadata unless the \fB\-\-metadata\-snap\fP option is used.
2012-03-06 00:04:55 +05:30
.IP "\fB\-f, \-\-format\fP \fI{xml|human_readable}\fP".
Print output in XML or human readable format.
2011-12-15 18:26:48 +05:30
2012-03-06 00:04:55 +05:30
.IP "\fB\-r, \-\-repair\fP".
2013-07-25 18:18:55 +05:30
Repair the metadata whilst dumping it.
2012-03-02 15:30:31 +05:30
.IP "\fB\-m, \-\-metadata\-snap\fP [block#]".
Dump metadata snapshot created by device-mapper thin provisioning target.
If block is not provided, access the default metadata snapshot created by
the thin provisioning device-mapper target, else try the one at block#.
See the thin provisioning target documentation on how to create or release
a metadata snapshot and retrieve the block number from the kernel.
2016-03-22 20:11:02 +05:30
.IP "\fN\-\-dev\-id\fP <dev-id>".
Dump the specified device. This option may be specified multiple
times to select more than one thin device.
2012-03-06 00:04:55 +05:30
.IP "\fB\-h, \-\-help\fP".
Print help and exit.
2011-12-15 18:26:48 +05:30
2012-03-06 00:04:55 +05:30
.IP "\fB\-V, \-\-version\fP".
Output version information and exit.
2011-12-15 18:26:48 +05:30
.SH EXAMPLES
2012-03-06 00:04:55 +05:30
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata
to standard output in human readable format:
.sp
2014-05-26 19:06:30 +05:30
.B thin_dump -f human_readable /dev/vg/metadata
2011-12-15 18:26:48 +05:30
2012-03-06 00:04:55 +05:30
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata
to standard output in XML format:
.sp
.B thin_dump /dev/vg/metadata
2011-12-15 18:26:48 +05:30
Dumps the thin provisioning metadata snapshot on logical volume /dev/vg/metadata
to standard output in human readable format (not processable by
.B thin_restore(8)
):
.sp
.B thin_dump --format human_readable --metadata-snap /dev/vg/metadata
2011-12-15 18:26:48 +05:30
.SH DIAGNOSTICS
2012-03-06 00:04:55 +05:30
.B thin_dump
returns an exit code of 0 for success or 1 for error.
2011-12-15 18:26:48 +05:30
.SH SEE ALSO
2012-03-06 00:04:55 +05:30
.B thin_check(8)
2013-07-17 16:51:11 +05:30
.B thin_repair(8)
2012-03-06 00:04:55 +05:30
.B thin_restore(8)
2013-07-17 16:51:11 +05:30
.B thin_rmap(8)
.B thin_metadata_size(8)
2011-12-15 18:26:48 +05:30
.SH AUTHOR
2011-12-16 16:50:07 +05:30
Joe Thornber <ejt@redhat.com>
2011-12-16 16:22:39 +05:30
.br
2011-12-15 18:26:48 +05:30
Heinz Mauelshagen <HeinzM@RedHat.com>