1thin_restore(8)             System Manager's Manual            thin_restore(8)
2
3
4

NAME

6       thin_restore  -  restore  thin  provisioning metadata file to device or
7       file.
8

SYNOPSIS

10       thin_restore [options] -i {xml file} -o {device|file}
11
12

DESCRIPTION

14       thin_restore restores thin provisioning metadata created by the respec‐
15       tive   device-mapper   target   dumped   into  an  XML  formatted  (see
16       thin_dump(8)) file, which optionally can be preprocessed before the re‐
17       store  to another device or file. If restored to a metadata device, the
18       metadata can be processed by the device-mapper target.
19
20       This tool cannot be run on live metadata.
21

OPTIONS

23       -h, --help
24              Print help and exit.
25
26       -V, --version
27              Print version information and exit.
28
29       -q, --quiet
30              Suppress output messages, return only exit code.
31
32       -i, --input {xml file}
33              Input file containing XML metadata.
34
35       -o, --output {device|file}
36              Output file or device for restored binary metadata.
37
38           If a file is used for output, then it must be preallocated, and large
39           enough to hold the metadata.
40
41
42       --transaction-id {natural}
43              Override the transaction id given in the input xml.
44
45       --data-block-size {natural}
46              Override the data block size given in the input xml.
47
48       --nr-data-blocks {natural}
49              Override the nr data blocks given in the input xml.
50

EXAMPLE

52       Restores the XML formatted thin provisioning metadata on file  metadata
53       to  logical  volume  /dev/vg/metadata for further processing by the re‐
54       spective device-mapper target:
55
56           $ thin_restore -i metadata -o /dev/vg/metadata
57
58

DIAGNOSTICS

60       thin_restore returns an exit code of 0 for success or 1 for error.
61

SEE ALSO

63       thin_dump(8), thin_check(8), thin_repair(8),  thin_rmap(8),  thin_meta‐
64       data_size(8)
65

AUTHOR

67       Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com>
68
69
70
71System Manager's Manual       Device Mapper Tools              thin_restore(8)
Impressum