cache_restore(8)
โจ cache_restore(8) โจ
okay bestie, this is the manual page for cache_restore, the tool that is literally the glow-up for your cache metadata ๐
๐ NAME ๐
cache_restore - restore cache metadata file to device or file. ๐ฆ
๐ฎ SYNOPSIS ๐ฎ
cache_restore [options] -i {xml file} -o {device|file}
๐ DESCRIPTION ๐
okay so cache_restore takes cache metadata that was dumped into an XML formatted file (see cache_dump(8)) and rebuilds it as binary metadata. the XML was made by the respective device-mapper target, and you can optionally tidy it up before the restore, then send it to another device or file ๐ธ if you restore onto a metadata device, the device-mapper target can then process that metadata. iconic behavior ngl โจ
๐ Big warning: this tool cannot be run on live metadata. don't even try it, bestie ๐
๐ OPTIONS ๐
-h,--helpโ slides in with the help text and then exits ๐-V,--versionโ shows you the version info and then exits ๐ฆ-q,--quietโ no output at all, zero chatter ๐คซ you check the exit code to see if it worked-i,--input {xml file}โ the input XML, the thing we're restoring from ๐-o,--output {device|file}โ the output file or device where the restored binary metadata lands ๐ฏ
โ ๏ธ Heads up: if you're using a file, it has to be preallocated (it's giving thin provisioning vibes) and it needs to be big enough to hold the metadata. no cap, this matters ๐
--metadata-version {1|2}โ pick which metadata version you want ๐ง
๐ ๏ธ DEBUGGING OPTIONS ๐ ๏ธ
these are for the nerdy stuff, so use with care ๐ค
--debug-override-metadata-version {integer}โ overrides the version that's stored in the metadata ๐ง--omit-clean-shutdownโ doesn't set the clean shutdown flag. lowkey sus, so only do it if you know why ๐
๐ EXAMPLE ๐
okay so this one restores the XML formatted cache metadata in the file metadata onto the logical volume /dev/vg/metadata, so the respective device-mapper target can process it next โจ
$ cache_restore -i metadata -o /dev/vg/metadata
๐ฉบ DIAGNOSTICS ๐ฉบ
cache_restore returns an exit code of 0 for success or 1 for error. so check that number if you're using --quiet ๐
๐ SEE ALSO ๐
cache_dump(8), cache_check(8), cache_repair(8) ๐ซถ
๐ AUTHOR ๐
Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> ๐
that's the whole tea, bestie! ๐ this page came from the Device Mapper Tools kit, and it's the cache_restore(8) page from the System Manager's Manual ๐
โจ periodt ๐ฆ
๐ฆ 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