# man > cache_dump(8)

[cache_dump(8)](https://www.chedong.com/phpMan.php/man/cachedump/8/markdown)                          System Manager's Manual                         [cache_dump(8)](https://www.chedong.com/phpMan.php/man/cachedump/8/markdown)



## NAME
       **cache**___**dump** - dump cache metadata from device or file to standard output.

## SYNOPSIS
       **cache**___**dump** [_options_] {device|file}

## DESCRIPTION
       **cache**___**dump**  dumps binary cache metadata created by the device-mapper cache target on a device
       or file to standard output for analysis or postprocessing in XML format. XML formatted  meta‐
       data can be fed into cache_restore in order to put it back onto a metadata device (to process
       by the device-mapper target), or file.

       This tool cannot be run on live metadata.

## OPTIONS
### -h, --help
              Print help and exit.

### -V, --version
              Print version information and exit.

### -r, --repair
              Repair the metadata whilst dumping it.

### -o {xml file}
              Specify an output file for the xml, rather than printing to stdout.

## EXAMPLES
       Dumps the cache metadata on logical volume /dev/vg/metadata to standard output in XML format:

           $ cache_dump /dev/vg/metadata

       Dumps the cache metadata on logical volume /dev/vg/metadata whilst repairing it  to  standard
       output in XML format:

           $ cache_dump --repair /dev/vg/metadata


## DIAGNOSTICS
       **cache**___**dump** returns an exit code of 0 for success or 1 for error.

## SEE ALSO
       **cache**___**[check**(8)](https://www.chedong.com/phpMan.php/man/check/8/markdown), **cache**___**[repair**(8)](https://www.chedong.com/phpMan.php/man/repair/8/markdown), **cache**___**[restore**(8)](https://www.chedong.com/phpMan.php/man/restore/8/markdown)

## AUTHOR
       Joe Thornber <<ejt@redhat.com>>, Heinz Mauelshagen <<HeinzM@RedHat.com>>



System Manager's Manual                  Device Mapper Tools                           [cache_dump(8)](https://www.chedong.com/phpMan.php/man/cachedump/8/markdown)
