." Text automatically generated by txt2man .TH cache_restore 8 "Device Mapper Tools" "System Manager's Manual" .SH NAME \fBcache_restore \fP- restore cache metadata file to device or file. \fB .SH SYNOPSIS .nf .fam C \fBcache_restore\fP [\fIoptions\fP] \fB-i\fP {xml file} \fB-o\fP {device|file} .fam T .fi .SH DESCRIPTION \fBcache_restore\fP restores cache metadata created by the respective device-mapper target dumped into an XML formatted (see \fBcache_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 Don't print any output. Check the exit code to test for success. .TP .B \fB-i\fP, \fB--input\fP {xml file} Input xml. .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 thin it must be preallocated, and large enough to hold the metadata. .fam T .fi .TP .B \fB--metadata-version\fP {1|2} Choose a metadata version. .SH DEBUGGING OPTIONS .TP .B \fB--debug-override-metadata-version\fP {integer} Override the version stored in the metadata. .TP .B \fB--omit-clean-shutdown\fP Don't set the clean shutdown flag. .SH EXAMPLE Restores the XML formatted cache metadata on file metadata to logical volume /dev/vg/metadata for further processing by the respective device-mapper target: .PP .nf .fam C $ cache_restore -i metadata -o /dev/vg/metadata .fam T .fi .SH DIAGNOSTICS \fBcache_restore\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_repair\fP(8) .SH AUTHOR Joe Thornber , Heinz Mauelshagen