cache_writeback(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

✨ NAME ✨

okay so this is cache_writeback(8) πŸ’– and it's basically the tool that writes - dirty blocks - back to the origin device 🧚

πŸŽ€ SYNOPSIS πŸŽ€

cache_writeback [options] --metadata-device {device|file} --origin-device {device|file} --fast-device {device|file}

🌸 DESCRIPTION 🌸

bestie, cache_writeback is an offline tool πŸ™ˆ it writes back dirty data to the data device (origin). it's meant for recovery scenarios where the SSD is throwing IO errors 😭 so like, when your fast device is being dramatic, this is your rescue squad 🫢

⚠️ this tool cannot be run on a live cache. do NOT try it on a cache that's still active πŸ’€

πŸ’… OPTIONS πŸ’…

  • -h, --help β€” print help and exit 🌈
  • -V, --version β€” print version information and exit ✨
  • --metadata-device {device|file} β€” where the cache metadata lives 🧠
  • --origin-device {device|file} β€” the slow device being cached 🐒
  • --fast-device {device|file} β€” the fast device holding the data that needs to be written back ⚑ this is the one with the stuff that needs rescuing πŸ¦‹
  • --no-metadata-update β€” don't update the metadata to clear the dirty flags πŸ™…β€β™€οΈ
    • ngl you might want this one if you're decommissioning the cache 🫢
  • --buffer-size-meg {size} β€” sets the size of the data cache, in megabytes πŸ“
    • it defaults to 64 MiB, but a bigger size may improve performance πŸš€
  • --list-failed-blocks β€” lists any blocks that failed the writeback process πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹

cache_dump(8), cache_check(8), cache_repair(8), cache_restore(8) πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Joe Thornber <ejt@redhat.com> 🌟


and that's the whole tea, bestie 🫢 this page came from cache_writeback(8), the Device Mapper Tools System Manager's Manual page πŸ’– periodt ✨

πŸ“¦ where this page comes from