1cache_restore(8) System Manager's Manual cache_restore(8)
2
3
4
6 cache_restore - restore cache metadata file to device or file.
7
9 cache_restore [options] -i {xml file} -o {device|file}
10
11
13 cache_restore restores cache metadata created by the respective device-
14 mapper target dumped into an XML formatted (see cache_dump(8)) file,
15 which optionally can be preprocessed before the restore to another de‐
16 vice or file. If restored to a metadata device, the metadata can be
17 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 Don't print any output. Check the exit code to test for suc‐
30 cess.
31
32 -i, --input {xml file}
33 Input xml.
34
35 -o, --output {device|file}
36 Output file or device for restored binary metadata.
37
38 If a file is used thin it must be preallocated, and large enough to hold
39 the metadata.
40
41
42 --metadata-version {1|2}
43 Choose a metadata version.
44
46 --debug-override-metadata-version {integer}
47 Override the version stored in the metadata.
48
49 --omit-clean-shutdown
50 Don't set the clean shutdown flag.
51
53 Restores the XML formatted cache metadata on file metadata to logical
54 volume /dev/vg/metadata for further processing by the respective de‐
55 vice-mapper target:
56
57 $ cache_restore -i metadata -o /dev/vg/metadata
58
59
61 cache_restore returns an exit code of 0 for success or 1 for error.
62
64 cache_dump(8), cache_check(8), cache_repair(8)
65
67 Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com>
68
69
70
71System Manager's Manual Device Mapper Tools cache_restore(8)