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

NAME

6       cache_restore - restore cache metadata file to device or file.
7

SYNOPSIS

9       cache_restore [options] -i {xml file} -o {device|file}
10

DESCRIPTION

12       cache_restore restores cache metadata created by the respective device-
13       mapper target dumped into an XML formatted  (see  cache_dump(8))  file,
14       which  optionally  can  be  preprocessed  before the restore to another
15       device or file.  If restored to a metadata device, the metadata can  be
16       processed by the device-mapper target.
17
18       This tool cannot be run on live metadata.
19

OPTIONS

21       -h, --help
22              Print help and exit.
23
24       -V, --version
25              Print version information and exit.
26
27       -q, --quiet
28              Don't  print  any  output.  Check the exit code to test for suc‐
29              cess.
30
31       -i, --input {xml file}
32              Input xml.
33
34       -o, --output {device|file}
35              Output file or device for restored binary metadata.
36
37           If a file is used thin it must be preallocated, and large enough to hold
38           the metadata.
39
40
41       --metadata-version {1|2}
42              Choose a metadata version.
43

DEBUGGING OPTIONS

45       --debug-override-metadata-version {integer}
46              Override the version stored in the metadata.
47
48       --omit-clean-shutdown
49              Don't set the clean shutdown flag.
50

EXAMPLE

52       Restores the XML formatted cache metadata on file metadata  to  logical
53       volume  /dev/vg/metadata  for  further  processing  by  the  respective
54       device-mapper target:
55
56           $ cache_restore -i metadata -o /dev/vg/metadata
57
58

DIAGNOSTICS

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

SEE ALSO

63       cache_dump(8), cache_check(8), cache_repair(8)
64

AUTHOR

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