\# Text automatically generated by txt2man .TH thin_restore 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBthin_restore \fP- restore thin provisioning metadata file to device or file. \fB .SH SYNOPSIS .nf .fam C \fBthin_restore\fP [\fIoptions\fP] \fB-i\fP {xml file} \fB-o\fP {device|file} .fam T .fi .SH DESCRIPTION \fBthin_restore\fP restores thin provisioning metadata created by the respective device-mapper target dumped into an XML formatted (see \fBthin_dump\fP(8)) file, which optionally can be preprocessed before the restore to another device or file. If restored 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-q\fP, \fB--quiet\fP Suppress output messages, return only exit code. .TP .B \fB-i\fP, \fB--input\fP {xml file} Input file containing XML metadata. .TP .B \fB-o\fP, \fB--output\fP {device|file} Output file or device for restored binary metadata. .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 Restores the XML formatted thin provisioning metadata on file metadata to logical volume /dev/vg/metadata for further processing by the respective device-mapper target: .PP .nf .fam C $ thin_restore -i metadata -o /dev/vg/metadata .fam T .fi .SH DIAGNOSTICS \fBthin_restore\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_repair\fP(8), \fBthin_rmap\fP(8), \fBthin_metadata_size\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen