2011-12-16 11:40:08 +01:00
|
|
|
.TH THIN_RESTORE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*-
|
2011-12-15 13:56:48 +01:00
|
|
|
.SH NAME
|
|
|
|
thin_restore \- restore thin provisioning metadata file to device or file
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
2012-03-05 19:34:55 +01:00
|
|
|
.B thin_restore
|
|
|
|
.RB [ options ]
|
|
|
|
.RB -i
|
|
|
|
.I {device|file}
|
|
|
|
.RB -o
|
|
|
|
.I {device|file}
|
2011-12-15 13:56:48 +01:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
2012-03-05 19:34:55 +01:00
|
|
|
.B thin_restore
|
|
|
|
restores thin provisioning metadata created by the
|
|
|
|
respective device-mapper target dumped into an XML formatted (see
|
|
|
|
.BR thin_dump(8) )
|
2013-07-25 15:27:31 +02:00
|
|
|
.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.
|
2011-12-15 13:56:48 +01:00
|
|
|
|
2015-08-13 13:39:20 +01:00
|
|
|
This tool cannot be run on live metadata.
|
|
|
|
|
2014-08-06 10:33:23 +01:00
|
|
|
.IP "\fB\-q, \-\-quiet\fP"
|
|
|
|
Suppress output messages, return only exit code.
|
|
|
|
|
2012-03-05 19:34:55 +01:00
|
|
|
.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP"
|
|
|
|
Input file or device with metadata.
|
2011-12-15 13:56:48 +01:00
|
|
|
|
2012-03-05 19:34:55 +01:00
|
|
|
.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP"
|
|
|
|
Output file or device.
|
2011-12-15 13:56:48 +01:00
|
|
|
|
2012-03-05 19:34:55 +01:00
|
|
|
.IP "\fB\-h, \-\-help\fP"
|
|
|
|
Print help and exit.
|
|
|
|
|
|
|
|
.IP "\fB\-V, \-\-version\fP"
|
|
|
|
Output version information and exit.
|
2011-12-15 13:56:48 +01:00
|
|
|
|
|
|
|
.SH EXAMPLE
|
2012-03-05 19:34:55 +01:00
|
|
|
Restores the XML formatted thin provisioning metadata on file
|
|
|
|
.B metadata
|
2011-12-15 13:56:48 +01:00
|
|
|
to logical volume /dev/vg/metadata for further processing by the
|
2012-03-05 19:34:55 +01:00
|
|
|
respective device-mapper target:
|
|
|
|
.sp
|
|
|
|
.B thin_restore -i metadata -o /dev/vg/metadata
|
2011-12-15 13:56:48 +01:00
|
|
|
|
|
|
|
.SH DIAGNOSTICS
|
2013-07-17 13:21:11 +02:00
|
|
|
.B thin_restore
|
2012-03-05 19:34:55 +01:00
|
|
|
returns an exit code of 0 for success or 1 for error.
|
2011-12-15 13:56:48 +01:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2012-03-05 19:34:55 +01:00
|
|
|
.B thin_dump(8)
|
|
|
|
.B thin_check(8)
|
2013-07-17 13:21:11 +02:00
|
|
|
.B thin_repair(8)
|
|
|
|
.B thin_rmap(8)
|
|
|
|
.B thin_metadata_size(8)
|
2011-12-15 13:56:48 +01:00
|
|
|
|
|
|
|
.SH AUTHOR
|
2011-12-16 11:20:07 +00:00
|
|
|
Joe Thornber <ejt@redhat.com>
|
2011-12-16 11:52:39 +01:00
|
|
|
.br
|
2011-12-15 13:56:48 +01:00
|
|
|
Heinz Mauelshagen <HeinzM@RedHat.com>
|