1thin_restore(8) System Manager's Manual thin_restore(8)
2
3
4
6 thin_restore - restore thin provisioning metadata file to device or
7 file.
8
10 thin_restore [options] -i {xml file} -o {device|file}
11
13 thin_restore restores thin provisioning metadata created by the respec‐
14 tive device-mapper target dumped into an XML formatted (see
15 thin_dump(8)) file, which optionally can be preprocessed before the re‐
16 store to another device or file. If restored to a metadata device, the
17 metadata can be processed by the device-mapper target.
18
19 This tool cannot be run on live metadata.
20
22 -h, --help
23 Print help and exit.
24
25 -V, --version
26 Print version information and exit.
27
28 -q, --quiet
29 Suppress output messages, return only exit code.
30
31 -i, --input {xml file}
32 Input file containing XML metadata.
33
34 -o, --output {device|file}
35 Output file or device for restored binary metadata.
36
37 If a file is used for output, then it must be preallocated, and large
38 enough to hold the metadata.
39
40
41 --transaction-id {natural}
42 Override the transaction id given in the input xml.
43
44 --data-block-size {natural}
45 Override the data block size given in the input xml.
46
47 --nr-data-blocks {natural}
48 Override the nr data blocks given in the input xml.
49
51 Restores the XML formatted thin provisioning metadata on file metadata
52 to logical volume /dev/vg/metadata for further processing by the re‐
53 spective device-mapper target:
54
55 $ thin_restore -i metadata -o /dev/vg/metadata
56
57
59 thin_restore returns an exit code of 0 for success or 1 for error.
60
62 thin_dump(8), thin_check(8), thin_repair(8), thin_rmap(8), thin_meta‐
63 data_size(8)
64
66 Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com>
67
68
69
70System Manager's Manual Device Mapper Tools thin_restore(8)