thin_repair(8)
β¨ 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
- 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