thin_restore(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_restore(8) ✨ β€” NAME πŸ’–

okay so the manual name here is thin_restore πŸŽ€ and it's a tool to restore thin provisioning metadata file to device or file. literally that's the whole vibe πŸ’…

🧚 SYNOPSIS 🧚

thin_restore [options] -i {xml file} -o {device|file}

🌸 DESCRIPTION 🌸

okay so thin_restore takes thin provisioning metadata that was created by the respective device-mapper target and dumped into an XML formatted (see thin_dump(8)) file πŸ“„βœ¨ it can optionally preprocess that stuff before restoring it to another device or file. and if you restore it to a metadata device, the metadata can then be processed by the device-mapper target πŸ¦‹

bestie, this tool cannot be run on live metadata πŸ™ˆ don't even try it, it's a no-go πŸ’€

πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” prints help and exits 🫢
  • -V, --version β€” prints version information and exits πŸ”₯
  • -q, --quiet β€” suppresses output messages so you only get the exit code 🀫
  • -i, --input {xml file} β€” the input file containing the XML metadata πŸ“„
  • -o, --output {device|file} β€” the output file or device where the restored binary metadata goes πŸ’œ
if you're using a file for output, it must be preallocated and big enough to hold the metadata πŸ“ no shortcuts, bestie
  • --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 so this one restores the XML formatted thin provisioning metadata in the file metadata to the logical volume /dev/vg/metadata so it's ready for the respective device-mapper target to process 😭

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

πŸ¦‹ DIAGNOSTICS πŸ¦‹

thin_restore returns an exit code of 0 for success or 1 for error πŸ’–

🌈 SEE ALSO 🌈

thin_dump(8), thin_check(8), thin_repair(8), thin_rmap(8), thin_metadata_size(8) ⭐

πŸ’œ AUTHOR πŸ’œ

Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> 🫢


bye bestie, that's thin_restore from Device Mapper Tools, System Manager's Manual πŸŒˆβœ¨πŸ’…

πŸ“¦ where this page comes from