2013-10-18 19:47:06 +05:30
|
|
|
.TH CACHE_RESTORE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
|
|
|
|
.SH NAME
|
|
|
|
cache_restore \- restore cache metadata file to device or file
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B cache_restore
|
|
|
|
.RB [ options ]
|
|
|
|
.RB -i
|
|
|
|
.I {device|file}
|
|
|
|
.RB -o
|
|
|
|
.I {device|file}
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B cache_restore
|
|
|
|
restores cache metadata created by the respective
|
|
|
|
device-mapper target dumped into an XML formatted (see
|
|
|
|
.BR cache_dump(8) )
|
|
|
|
.I file
|
|
|
|
, which optionally can be preprocessed before the restore to another
|
|
|
|
.I device
|
|
|
|
or
|
|
|
|
.I file.
|
|
|
|
If restored to a metadata
|
|
|
|
.I device
|
|
|
|
, the metadata can be processed by the device-mapper target.
|
|
|
|
|
2015-08-13 18:09:20 +05:30
|
|
|
This tool cannot be run on live metadata.
|
|
|
|
|
2013-10-18 19:47:06 +05:30
|
|
|
.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP"
|
|
|
|
Input file or device with metadata.
|
|
|
|
|
|
|
|
.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP"
|
2016-07-11 19:23:03 +05:30
|
|
|
Output file or device for repaired binary metadata. If a file is used
|
|
|
|
then it must be preallocated, and large enough to hold the metadata.
|
2013-10-18 19:47:06 +05:30
|
|
|
|
|
|
|
.IP "\fB{\-\-debug-override-metadata-version}\fP \fI<integer>\fP"
|
|
|
|
ONLY FOR DEBUGGING PURPOSES:
|
|
|
|
.br
|
|
|
|
override the version stored in the metadata.
|
|
|
|
|
|
|
|
.IP "\fB\-h, \-\-help\fP"
|
|
|
|
Print help and exit.
|
|
|
|
|
|
|
|
.IP "\fB\-V, \-\-version\fP"
|
|
|
|
Output version information and exit.
|
|
|
|
|
|
|
|
.SH EXAMPLE
|
|
|
|
Restores the XML formatted cache metadata on file
|
|
|
|
.B metadata
|
|
|
|
to logical volume /dev/vg/metadata for further processing by the
|
|
|
|
respective device-mapper target:
|
|
|
|
.sp
|
|
|
|
.B cache_restore -i metadata -o /dev/vg/metadata
|
|
|
|
|
|
|
|
.SH DIAGNOSTICS
|
|
|
|
.B cache_restore
|
|
|
|
returns an exit code of 0 for success or 1 for error.
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.B cache_dump(8)
|
|
|
|
.B cache_check(8)
|
|
|
|
.B cache_repair(8)
|
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
Joe Thornber <ejt@redhat.com>
|
|
|
|
.br
|
|
|
|
Heinz Mauelshagen <HeinzM@RedHat.com>
|