{"id":3753,"date":"2022-12-20T17:19:57","date_gmt":"2022-12-20T20:19:57","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/thin_dump-man8\/"},"modified":"2022-12-20T17:19:57","modified_gmt":"2022-12-20T20:19:57","slug":"thin_dump-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/thin_dump-man8\/","title":{"rendered":"thin_dump (man8)"},"content":{"rendered":"<h1 align=\"center\">thin_dump<\/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=\"#EXAMPLES\">EXAMPLES<\/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_dump<\/b> &#8211; dump thin provisioning metadata from device or file to standard output.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_dump<\/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_dump<\/b> dumps binary thin provisioning metadata (optionally from alternate block; see option <b>&#8211;metadata-snap<\/b>) created by the device-mapper thin provisioning target on a device or file to standard output for analysis or postprocessing in either XML or human readable format. XML formated metadata can be fed into thin_restore (see <b>thin_restore<\/b>(8)) in order to put it back onto a metadata device (to process by the device-mapper target) or file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This tool cannot be run on live metadata unless the <b>&#8211;metadata-snap<\/b> option is used.<\/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>-f, &#8211;format {xml|human_readable|custom}<\/b><\/p>\n<p style=\"margin-left:22%;\">Choose output format.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Custom formats are supported via shared library plugins. They should be <br \/> specified as in this example:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ thin_dump &#8211;format custom=mylib.so \/dev\/sda <b><br \/> -r, &#8211;repair<\/b><\/p>\n<p style=\"margin-left:22%;\">Repair the metadata whilst dumping it.<\/p>\n<p style=\"margin-left:11%;\"><b>-m, &#8211;metadata-snap{=<block nr>}<\/b><\/p>\n<p style=\"margin-left:22%;\">Dump metadata snapshot.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If block is not provided, access the default metadata snapshot created by <br \/> the thin provisioning device-mapper target, else try the one at block nr. <br \/> See the thin provisioning target documentation on how to create or release <br \/> a metadata snapshot and retrieve the block number from the kernel. <b><br \/> &#8211;dev-id {natural}<\/b><\/p>\n<p style=\"margin-left:22%;\">Dump the specified device.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This option may be specified multiple times to select more than one thin <br \/> device. <b><br \/> &#8211;skip-mappings<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not dump the mappings.<\/p>\n<p style=\"margin-left:11%;\"><b>-o {xml file}<\/b><\/p>\n<p style=\"margin-left:22%;\">Specify a file for the output rather than writing to stdout.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Dumps the thin provisioning metadata on logical volume \/dev\/vg\/metadata to standard output in human readable format:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ thin_dump -f human_readable \/dev\/vg\/metadata<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Dumps the thin provisioning metadata on logical volume \/dev\/vg\/metadata to standard output in XML format:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ thin_dump \/dev\/vg\/metadata<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Dumps the thin provisioning metadata snapshot on logical volume \/dev\/vg\/metadata to standard output in human readable format (not processable by <b>thin_restore<\/b>(8)):<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">$ thin_dump &#8211;format human_readable &#8211;metadata-snap \/dev\/vg\/metadata<\/p>\n<h2>DIAGNOSTICS <a name=\"DIAGNOSTICS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>thin_dump<\/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_check<\/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_dump &#8211; dump thin provisioning metadata from device or file to standard output. <\/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,858],"class_list":["post-3753","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-thin_dump"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3753","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=3753"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3753\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}