cache_repair(8)
โจ cache_repair(8) โจ
๐ NAME ๐
okay so cache_repair is the tool that repairs cache binary metadata ๐ฉน It takes metadata from one device or file and writes the fixed version to another device or file. Bestie, it's giving data rescue ๐ฅ
๐ SYNOPSIS ๐
cache_repair [options] -i {device|file} -o {device|file}
๐ฆ DESCRIPTION ๐ฆ
okay so cache_repair reads binary cache metadata that was made by the matching device-mapper target ๐ It reads from one device or file, repairs it, and then writes it to another device or file. If you write it to a metadata device, the device-mapper target can process it afterwards โจ The way that this just works, no cap ๐
โ ๏ธ bestie, this tool cannot be run on live metadata. Do NOT try it on metadata that's actively in use ๐
๐ธ OPTIONS ๐ธ
-h,--helpโ pulls up the help text and then exits ๐-V,--versionโ shows you the version info and then exits ๐ง-i,--input {device|file}โ the input file or device that holds the binary metadata ๐ฅ-o,--output {device|file}โ the output file or device where the repaired binary metadata goes ๐ค
okay this part is important so listen up ๐ If the output is a file, it has to be preallocated and big enough to hold the metadata ๐ซถ
๐ EXAMPLE ๐
Okay so this one reads the binary cache metadata from the file metadata, repairs it, and writes it to the logical volume /dev/vg/metadata so the device-mapper target can pick it up for further processing. It's giving main character energy ๐ฌ
$ cache_repair -i metadata -o /dev/vg/metadata
๐ DIAGNOSTICS ๐
cache_repair returns an exit code of 0 for success or 1 for error. So 0 means slay and 1 means something went sideways ๐ญ
๐ฎ SEE ALSO ๐ฎ
cache_dump(8), cache_check(8), cache_restore(8) โ these are your bestie tools, go check them out ๐ซถ
๐ฉโ๐ป AUTHOR ๐ฉโ๐ป
Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> โ the legends who made this happen ๐
๐ง Sign-off: this is from the System Manager's Manual, Device Mapper Tools section, for cache_repair(8). Iykyk, and now you know ๐โจ
๐ฆ where this page comes from
- alpine 3.24: thin-provisioning-tools-doc 1.3.2-r0 ยท GPL-3.0-only
- arch rolling: thin-provisioning-tools 1.3.4-1 ยท GPL-3.0-only
- centos-stream 10: device-mapper-persistent-data 1.3.4-1.el10 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- centos-stream 9: device-mapper-persistent-data 1.1.0-1.el9 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- debian trixie: thin-provisioning-tools 1.1.0-4+b1 ยท GPL-3.0-or-later
- fedora 43: device-mapper-persistent-data 1.1.0-4.fc43 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 43: device-mapper-persistent-data 1.3.3-1.fc43
- fedora 43: device-mapper-persistent-data 1.3.4-1.fc43 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 44: device-mapper-persistent-data 1.3.1-3.fc44 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 44: device-mapper-persistent-data 1.3.3-1.fc44
- fedora 44: device-mapper-persistent-data 1.3.4-1.fc44 ยท GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 ยท GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 ยท GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 ยท GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 ยท GPL-3.0-only
- ubuntu questing: thin-provisioning-tools 1.1.0-4ubuntu1 ยท GPL-3.0-or-later
- ubuntu resolute: thin-provisioning-tools 1.1.0-4ubuntu2 ยท GPL-3.0-or-later
- ubuntu stonking: thin-provisioning-tools 1.1.0-5.1ubuntu1 ยท GPL-3.0-or-later
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms