\# Text automatically generated by txt2man .TH thin_repair 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBthin_repair \fP- repair thin provisioning binary metadata. \fB .SH SYNOPSIS .nf .fam C \fBthin_repair\fP [\fIoptions\fP] \fB-i\fP {device|file} \fB-o\fP {device|file} .fam T .fi .SH DESCRIPTION \fBthin_repair\fP reads binary thin provisioning metadata created by the respective device-mapper target from one device or file, repairs it and writes it to different 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 with binary data. .TP .B \fB-o\fP, \fB--output\fP {device|file} Output file or device for binary data. .PP .nf .fam C If a file is used for output, then it must be preallocated, and large enough to hold the metadata. .fam T .fi .TP .B \fB--transaction-id\fP {natural} Override the transaction id given in the input xml. .TP .B \fB--data-block-size\fP {natural} Override the data block size given in the input xml. .TP .B \fB--nr-data-blocks\fP {natural} Override the nr data blocks given in the input xml. .SH EXAMPLE Reads the binary thin provisioning 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 $ thin_repair -i metadata -o /dev/vg/metadata .fam T .fi .SH DIAGNOSTICS \fBthin_repair\fP returns an exit code of 0 for success or 1 for error. .SH SEE ALSO \fBthin_dump\fP(8), \fBthin_check\fP(8), \fBthin_restore\fP(8), \fBthin_rmap\fP(8), \fBthin_metadata_size\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen