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

NAME

6       cache_check - validates cache metadata on a device or file.
7

SYNOPSIS

9       cache_check [options] {device|file}
10

DESCRIPTION

12       cache_check  checks  cache  metadata created by the device-mapper cache
13       target on a device or file.
14
15       This tool cannot be run on live metadata.
16

OPTIONS

18       -h, --help
19              Print help and exit.
20
21       -V, --version
22              Output version information and exit.
23
24       -q, --quiet
25              Suppress output messages, return only exit code.
26
27       --super-block-only
28              Only check the superblock.
29
30       --skip-hints
31              Skip checking of the policy hint values metadata.
32
33       --skip-discards
34              Skip checking of the discard bits in the metadata.
35
36       --clear-needs-check-flag
37              Clears the 'needs_check' flag in the superblock.
38
39           The kernel may set a flag to force the pool to be checked before it's next
40           activated.  Set this switch to clear the flag if the check is successful.
41           If the metadata check failed, the flag is not cleared and a cache_repair run
42           is needed to fix any issues. After cache_repair succeeded, you may run
43           cache_check again.
44
45

EXAMPLE

47       Analyses and repairs cache metadata on logical volume /dev/vg/metadata:
48
49           $ cache_check /dev/vg/metadata
50
51       The device may not be actively used by the target when running.
52

DIAGNOSTICS

54       cache_check returns an exit code of 0 for success or 1 for error.
55

SEE ALSO

57       cache_dump(8), cache_repair(8), cache_restore(8)
58

AUTHOR

60       Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com>
61
62
63
64System Manager's Manual       Device Mapper Tools               cache_check(8)
Impressum