{"id":3522,"date":"2022-12-20T17:08:54","date_gmt":"2022-12-20T20:08:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/thin_check-man8\/"},"modified":"2022-12-20T17:08:54","modified_gmt":"2022-12-20T20:08:54","slug":"thin_check-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/thin_check-man8\/","title":{"rendered":"thin_check (man8)"},"content":{"rendered":"<h1 align=\"center\">thin_check<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#DIAGNOSTICS\">DIAGNOSTICS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_check<\/b> &#8211; validates thin provisioning metadata on a device or file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_check<\/b> [<i>options<\/i>] {device|file}<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_check<\/b> checks thin provisioning metadata created by the device-mapper thin provisioning target on a device or file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The tool cannot be run on live metadata.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>-q, &#8211;quiet<\/b><\/p>\n<p style=\"margin-left:22%;\">Suppress output messages, return only exit code.<\/p>\n<p style=\"margin-left:11%;\"><b>-h, &#8211;help<\/b><\/p>\n<p style=\"margin-left:22%;\">Print help and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>-V, &#8211;version<\/b><\/p>\n<p style=\"margin-left:22%;\">Output version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;super-block-only<\/b><\/p>\n<p style=\"margin-left:22%;\">Only check the superblock.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;skip-mappings<\/b><\/p>\n<p style=\"margin-left:22%;\">Skip checking of the block mappings which make up the bulk of the metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;ignore-non-fatal-errors<\/b><\/p>\n<p style=\"margin-left:22%;\">Will only return a non-zero exit code if it finds a fatal error.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">An example of a nonfatal error is an incorrect data block reference count <br \/> causing a block to be considered allocated when it in fact isn\u2019t. Ignoring <br \/> errors for a long time is not advised, you really should be using <br \/> thin_repair to fix them. <b><br \/> &#8211;clear-needs-check-flag<\/b><\/p>\n<p style=\"margin-left:22%;\">Clears the \u2019needs_check\u2019 flag in the superblock.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The kernel may set a flag to force the pool to be checked before it\u2019s next <br \/> activated. Set this switch to clear the flag if the check is successful. <br \/> If the metadata check failed, the flag is not cleared and a thin_repair run <br \/> is needed to fix any issues. After thin_repair succeeded, you may run <br \/> thin_check again. <b><br \/> &#8211;override-mapping-root <block><\/b><\/p>\n<p style=\"margin-left:22%;\">Specify a mapping root to use.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Don\u2019t use this. This overrides what\u2019s specified in the superblock. Only <br \/> use this if you really understand the metadata format and are trying to <br \/> recover damaged metadata.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Analyses thin provisioning metadata on logical volume \/dev\/vg\/metadata:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ thin_check \/dev\/vg\/metadata<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The device must not be actively used by the target when running.<\/p>\n<h2>DIAGNOSTICS <a name=\"DIAGNOSTICS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_check<\/b> returns an exit code of 0 for success or 1 for error.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_dump<\/b>(8), <b>thin_repair<\/b>(8), <b>thin_restore<\/b>(8), <b>thin_rmap<\/b>(8), <b>thin_metadata_size<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <heinzm@redhat.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  thin_check &#8211; validates thin provisioning metadata on a device or file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,644],"class_list":["post-3522","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-thin_check"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3522"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3522\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}