cache_check(8)

πŸ“¦
version 1.3.4 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ cache_check(8) ✨

okay so bestie, this is the manual page for cache_check(8) πŸ’… it's from the System Manager's Manual and I'm obsessed with it 🫢

πŸŽ€ NAME πŸŽ€

cache_check - validates cache metadata on a device or file. πŸ’–

🧚 SYNOPSIS 🧚

cache_check [options] {device|file}

πŸ“– DESCRIPTION πŸ“–

okay so cache_check is the one that goes through the cache metadata made by the device-mapper cache target on a device or file ✨ it's giving checkup energy 🩺

πŸ’€ bestie, this tool cannot be run on live metadata!! it's a hard no πŸ™…β€β™€οΈ

🌸 OPTIONS 🌸

  • -h, --help β€” prints help and exits πŸ“
  • -V, --version β€” outputs version information and exits πŸ¦‹
  • -q, --quiet β€” suppresses output messages so you only get the exit code 🀫
  • --super-block-only β€” only checks the superblock πŸ‘‘
  • --skip-hints β€” skips checking the policy hint values metadata πŸ™ˆ
  • --skip-discards β€” skips checking the discard bits in the metadata 🧹
  • --clear-needs-check-flag β€” clears the needs_check flag in the superblock πŸ’œ

ok so the kernel may set a flag that forces the pool to get checked before it's next activated πŸ”₯ use this switch to clear that flag, but only if the check passes! if the metadata check fails, the flag stays put and you'll need a cache_repair run to fix stuff πŸ› οΈ once cache_repair succeeds, you can run cache_check again and slay ✨

πŸ’… EXAMPLE πŸ’…

analyses and repairs cache metadata on logical volume /dev/vg/metadata: 🌈

$ cache_check /dev/vg/metadata
πŸ™ˆ the device may not be actively used by the target when running, so keep that in mind!

🚨 DIAGNOSTICS 🚨

cache_check returns an exit code of 0 for success or 1 for error 🎯 0 is the W, 1 is the L 😭

πŸ”— SEE ALSO πŸ”—

cache_dump(8), cache_repair(8), cache_restore(8) 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> πŸ’–


okay that's the whole tea, bestie 🍡✨ this page came from the System Manager's Manual, Device Mapper Tools, and it's the cache_check(8) crew all the way πŸ¦‹ stay iconic, and check your metadata before it checks you πŸ’…πŸŒˆ

πŸ“¦ where this page comes from