thin-provisioning-tools/man8/thin_check.8

68 lines
1.6 KiB
Groff
Raw Normal View History

2013-07-30 23:25:52 +05:30
.TH THIN_CHECK 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
2011-12-15 18:26:48 +05:30
.SH NAME
2014-08-06 15:03:23 +05:30
thin_check \- validate thin provisioning metadata on device or file
2011-12-15 18:26:48 +05:30
.SH SYNOPSIS
2012-03-06 00:04:55 +05:30
.B thin_check
.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_check
checks thin provisioning metadata created by
the device-mapper thin provisioning target on a
.I device
or
.I file.
2011-12-15 18:26:48 +05:30
This tool cannot be run on live metadata.
2012-03-06 00:04:55 +05:30
.SH OPTIONS
.IP "\fB\-q, \-\-quiet\fP"
Suppress output messages, return only exit code.
.IP "\fB\-h, \-\-help\fP"
2012-03-06 00:04:55 +05:30
Print help and exit.
2011-12-15 18:26:48 +05:30
.IP "\fB\-V, \-\-version\fP"
2012-03-06 00:04:55 +05:30
Output version information and exit.
2011-12-15 18:26:48 +05:30
2013-05-23 16:00:34 +05:30
.IP "\fB\-\-super\-block\-only\fP"
Only check the superblock is present.
.IP "\fB\-\-skip-mappings\fP"
Skip checking of the block mappings which make up the bulk of the
metadata.
2013-05-23 16:27:02 +05:30
.IP "\fB\-\-ignore\-non\-fatal\-errors\fP"
.B thin_check
will only return a non-zero exit code if it finds a fatal
2014-08-06 15:03:23 +05:30
error. An example of a non fatal error is an incorrect data block
2013-05-23 16:27:02 +05:30
reference count causing a block to be considered allocated when it in
fact isn't. Ignoring errors for a long time is not advised, you
really should be using thin_repair to fix them.
2011-12-15 18:26:48 +05:30
.SH EXAMPLE
2014-08-06 15:03:23 +05:30
Analyses thin provisioning metadata on logical volume
2012-03-06 00:04:55 +05:30
/dev/vg/metadata:
.sp
.B thin_check /dev/vg/metadata
2012-03-06 00:04:55 +05:30
2014-08-06 15:03:23 +05:30
The device must not be actively used by the target when running.
2011-12-15 18:26:48 +05:30
.SH DIAGNOSTICS
2012-03-06 00:04:55 +05:30
.B thin_check
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_dump(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>