{"id":3391,"date":"2022-12-20T17:02:32","date_gmt":"2022-12-20T20:02:32","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/cache_repair-man8\/"},"modified":"2022-12-20T17:02:32","modified_gmt":"2022-12-20T20:02:32","slug":"cache_repair-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/cache_repair-man8\/","title":{"rendered":"cache_repair (man8)"},"content":{"rendered":"<h1 align=\"center\">cache_repair<\/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_repair<\/b> &#8211; repair cache binary metadata from device\/file to device\/file.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cache_repair<\/b> [<i>options<\/i>] <b>-i<\/b> {device|file} <b>-o<\/b> {device|file}<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cache_repair<\/b> reads binary cache metadata created by the respective device-mapper target from one device or file, repairs it and writes it to another device or file. If written to a metadata device, the metadata can be processed by the device-mapper target.<\/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%;\">Print version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>-i, &#8211;input {device|file}<\/b><\/p>\n<p style=\"margin-left:22%;\">Input file or device containing binary metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>-o, &#8211;output {device|file}<\/b><\/p>\n<p style=\"margin-left:22%;\">Output file or device for repaired binary metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If a file is then it must be preallocated, and large enough to hold the <br \/> metadata.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Reads the binary cache metadata from file metadata, repairs it and writes it to logical volume \/dev\/vg\/metadata for further processing by the respective device-mapper target:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ cache_repair -i metadata -o \/dev\/vg\/metadata<\/p>\n<h2>DIAGNOSTICS <a name=\"DIAGNOSTICS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cache_repair<\/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_check<\/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_repair &#8211; repair cache binary metadata from device\/file to device\/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,519,4],"class_list":["post-3391","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-cache_repair","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3391","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=3391"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3391\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}