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]
|
2013-07-25 18:29:05 +05:30
|
|
|
.I {device|file}
|
2011-12-15 18:26:48 +05:30
|
|
|
|
|
|
|
.SH DESCRIPTION
|
2012-03-06 00:04:55 +05:30
|
|
|
.B thin_dump
|
2013-07-18 17:59:21 +05:30
|
|
|
dumps binary thin provisioning metadata (optionally from alternate block;
|
|
|
|
see option \-\-metadata-snap) created by the device-mapper
|
2013-07-25 18:57:31 +05:30
|
|
|
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) )
|
2013-07-25 18:57:31 +05:30
|
|
|
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
|
|
|
|
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
|
|
|
|
2013-07-19 15:18:15 +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
|
2013-07-25 17:49:56 +05:30
|
|
|
a metadata snapshot and retrieve the block number from the kernel.
|
2013-07-16 21:09:40 +05:30
|
|
|
|
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
|
|
|
|
.B thin_dump -f human_redable /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
|
|
|
|
2013-07-19 15:18:15 +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>
|