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

✨ thin_repair(8) ✨

Okay so the manual name is thin_repair(8) πŸ’– and the NAME section is literally just the tool's whole vibe:

πŸŽ€ NAME πŸŽ€

thin_repair β€” repair thin provisioning binary metadata. 🩹✨

πŸ’… SYNOPSIS πŸ’…

thin_repair [options] -i {device|file} -o {device|file}

🌸 DESCRIPTION 🌸

Okay bestie, so thin_repair reads binary thin provisioning metadata that was made by the respective device-mapper target 🧚. It reads from one device or file, repairs it, and then writes the fixed version out to a different device or file. If you write it to a metadata device, the device-mapper target can actually process it afterwards πŸ”₯.

πŸ’€ Big warning: this tool cannot be run on live metadata. Do NOT try it on metadata that's currently in use. πŸ™ˆ

πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” Prints help and exits. Main character moment, bye πŸ‘‹
  • -V, --version β€” Prints version information and exits. πŸ¦‹
  • -i, --input {device|file} β€” The input file or device holding the binary data πŸ’œ
  • -o, --output {device|file} β€” The output file or device where the binary data goes πŸ“
⚠️ If you're using a file for output, it has to be preallocated and big enough to hold the metadata. No cap, this matters 😭
  • --transaction-id {natural} β€” Overrides the transaction id given in the input xml ✨
  • --data-block-size {natural} β€” Overrides the data block size given in the input xml 🌈
  • --nr-data-blocks {natural} β€” Overrides the nr data blocks given in the input xml 🫢

πŸ¦‹ EXAMPLE πŸ¦‹

Okay this one is so iconic. It reads the binary thin provisioning metadata from the file metadata, repairs it, and writes it to the logical volume /dev/vg/metadata so the respective device-mapper target can process it afterwards πŸ§šπŸ’–:

$ thin_repair -i metadata -o /dev/vg/metadata

🌈 DIAGNOSTICS 🌈

thin_repair returns an exit code of 0 for success or 1 for error. Success is giving πŸ₯Ήβœ…, error is giving πŸ’€.

πŸ”₯ SEE ALSO πŸ”₯

thin_dump(8), thin_check(8), thin_restore(8), thin_rmap(8), thin_metadata_size(8) πŸ’œ

🫢 AUTHOR 🫢

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


Bye bestie, that's the whole page πŸŽ€ Source: System Manager's Manual, Device Mapper Tools, thin_repair(8) πŸ’– ✨

πŸ“¦ where this page comes from