# man > cache_repair(8)

---
type: CommandReference
command: cache_repair
mode: man
section: 8
source: man-pages
---

## Quick Reference

- `cache_repair -i metadata -o /dev/vg/metadata` — repair binary cache metadata from file to device

## Name

`cache_repair` — repair cache binary metadata from device/file to device/file.

## Synopsis

`cache_repair` [*options*] `-i` {device|file} `-o` {device|file}

## Options

- `-h, --help` — print help and exit
- `-V, --version` — print version information and exit
- `-i, --input` {device|file} — input file or device containing binary metadata
- `-o, --output` {device|file} — output file or device for repaired binary metadata (if a file, must be preallocated and large enough)

## Examples

Read binary cache metadata from file `metadata`, repair it, and write to logical volume `/dev/vg/metadata`:

shell
$ cache_repair -i metadata -o /dev/vg/metadata
## Exit Codes

- `0` — success
- `1` — error

## See Also

[cache_dump(8)](http://localhost/phpMan.php/man/dump/8/markdown), [cache_check(8)](http://localhost/phpMan.php/man/check/8/markdown), [cache_restore(8)](http://localhost/phpMan.php/man/restore/8/markdown)