{"id":2774,"date":"2022-12-20T15:17:15","date_gmt":"2022-12-20T18:17:15","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/cache_restore-man8\/"},"modified":"2022-12-20T15:17:15","modified_gmt":"2022-12-20T18:17:15","slug":"cache_restore-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/cache_restore-man8\/","title":{"rendered":"cache_restore (man8)"},"content":{"rendered":"<h1 align=\"center\">cache_restore<\/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=\"#DEBUGGING OPTIONS\">DEBUGGING 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_restore<\/b> &#8211; restore cache metadata file to device or file.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cache_restore<\/b> [<i>options<\/i>] <b>-i<\/b> {xml 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_restore<\/b> restores cache metadata created by the respective device-mapper target dumped into an XML formatted (see <b>cache_dump<\/b>(8)) file, which optionally can be preprocessed before the restore to another device or file. If restored 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>-q, &#8211;quiet<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t print any output. Check the exit code to test for success.<\/p>\n<p style=\"margin-left:11%;\"><b>-i, &#8211;input {xml file}<\/b><\/p>\n<p style=\"margin-left:22%;\">Input xml.<\/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 restored binary metadata.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If a file is used thin it must be preallocated, and large enough to hold <br \/> the metadata. <b><br \/> &#8211;metadata-version {1|2}<\/b><\/p>\n<p style=\"margin-left:22%;\">Choose a metadata version.<\/p>\n<h2>DEBUGGING OPTIONS <a name=\"DEBUGGING OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>&#8211;debug-override-metadata-version {integer}<\/b><\/p>\n<p style=\"margin-left:22%;\">Override the version stored in the metadata.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;omit-clean-shutdown<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t set the clean shutdown flag.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Restores the XML formatted cache metadata on file metadata 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_restore -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_restore<\/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_repair<\/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_restore &#8211; restore cache metadata file to 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,128,4],"class_list":["post-2774","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-cache_restore","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2774","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=2774"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2774\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}