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

okay bestie, let's talk about era_invalidate(8) πŸŽ€βœ¨ it's a System Manager's Manual page, and it's literally the tool you want when you need to know what changed since a certain era πŸ’…

πŸ’– NAME πŸ’–

era_invalidate - Provide a list of blocks that have changed since a particular era. It's giving "show me what's been touched lately" energy πŸ¦‹

🌸 SYNOPSIS 🌸

era_invalidate [options] {device|file}

✨ DESCRIPTION ✨

okay so era_invalidate pokes through era metadata and lists the blocks that may have changed since a given era πŸ‘€ "may" is doing a lot of work there, so keep that in mind πŸ™ˆ

⚠️ bestie, this tool cannot be run on live metadata unless you use the --metadata-snap option. Don't skip this one πŸ’€

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” shows you the help text and then exits 🧚
  • -V, --version β€” prints the version info and then exits 🌈
  • -o {output file} β€” sends the output to a file instead of stdout πŸ“
  • --metadata-snapshot β€” uses the metadata snapshot instead of the current superblock πŸ“Έ
  • --written-since {era nr} β€” lists the blocks written since the era you give it πŸ¦‹

πŸ“ EXAMPLE πŸ“

ngl this example is so cute πŸ₯Ή it lists the blocks that may have been written since the beginning of era 13 on the metadata device /dev/vg/metadata:

$ era_invalidate --written-since 13 /dev/vg/metadata

and fyi, the device may not be actively used by the target while this is running πŸ‘€

πŸ’… DIAGNOSTICS πŸ’…

era_invalidate returns an exit code of 0 for success or 1 for error (eg, metadata corruption) 😭 so if you see a 1, go check your metadata, periodt πŸ’œ

🧚 SEE ALSO 🧚

era_check(8), era_dump(8), era_restore(8) 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Joe Thornber <ejt@redhat.com> πŸ’–


And that's the tea, bestie 🌸 Device Mapper Tools, System Manager's Manual, era_invalidate(8). Go be a main character with your metadata βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from