.\" Text automatically generated by txt2man .TH cache_repair 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBcache_repair \fP- repair cache binary metadata from device/file to device/file. \fB .SH SYNOPSIS .nf .fam C \fBcache_repair\fP [\fIoptions\fP] \fB-i\fP {device|file} \fB-o\fP {device|file} .fam T .fi .fam T .fi .SH DESCRIPTION \fBcache_repair\fP 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. .PP This tool cannot be run on live metadata. .SH OPTIONS .TP .B \fB-h\fP, \fB--help\fP Print help and exit. .TP .B \fB-V\fP, \fB--version\fP Print version information and exit. .TP .B \fB-i\fP, \fB--input\fP {device|file} Input file or device containing binary metadata. .TP .B \fB-o\fP, \fB--output\fP {device|file} Output file or device for repaired binary metadata. .PP .nf .fam C If a file is then it must be preallocated, and large enough to hold the metadata. .fam T .fi .SH EXAMPLE 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: .PP .nf .fam C $ cache_repair -i metadata -o /dev/vg/metadata .fam T .fi .SH DIAGNOSTICS \fBcache_repair\fP returns an exit code of 0 for success or 1 for error. .SH SEE ALSO \fBcache_dump\fP(8), \fBcache_check\fP(8), \fBcache_restore\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen