{"id":3365,"date":"2022-12-20T17:02:28","date_gmt":"2022-12-20T20:02:28","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/cache_check-man8\/"},"modified":"2022-12-20T17:02:28","modified_gmt":"2022-12-20T20:02:28","slug":"cache_check-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/cache_check-man8\/","title":{"rendered":"cache_check (man8)"},"content":{"rendered":"<h1 align=\"center\">cache_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>cache_check<\/b> &#8211; validates cache 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>cache_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>cache_check<\/b> checks cache metadata created by the device-mapper cache target on a device or file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This 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>-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>-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>&#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-hints<\/b><\/p>\n<p style=\"margin-left:22%;\">Skip checking of the policy hint values metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;skip-discards<\/b><\/p>\n<p style=\"margin-left:22%;\">Skip checking of the discard bits in the metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>&#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 cache_repair run <br \/> is needed to fix any issues. After cache_repair succeeded, you may run <br \/> cache_check again.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Analyses and repairs cache metadata on logical volume \/dev\/vg\/metadata:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ cache_check \/dev\/vg\/metadata<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The device may 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>cache_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>cache_dump<\/b>(8), <b>cache_repair<\/b>(8), <b>cache_restore<\/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>  cache_check &#8211; validates cache 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,493,4],"class_list":["post-3365","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-cache_check","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3365","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=3365"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3365\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}