era_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

πŸŽ€ era_restore(8) πŸŽ€

πŸ’– System Manager's Manual πŸ’–

✨ NAME ✨

okay so era_restore is the tool that restores era metadata to a device or file 🧚 it's giving restore-your-data-bestie energy πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ’œ DESCRIPTION πŸ’œ

bestie, era_restore takes era metadata that a device-mapper target dumped into an XML formatted file (check out era_dump(8) for that part πŸ“) and restores it. You can optionally preprocess the file before the restore goes to another device or file. 🫢 If you restore it onto a metadata device, the device-mapper target can then process that metadata, and it's literally so iconic πŸ‘‘

⚠️ This tool cannot be run on live metadata. Do NOT try it on live metadata, it will not slay πŸ’€

🌸 OPTIONS 🌸

  • -h, --help β€” the help menu πŸ™ˆ prints it and then it exits
  • -V, --version β€” shows you which version you're on, then it exits ✨
  • -q, --quiet β€” shhh 🀫 it won't print anything at all. If you want to know whether it worked, check the exit code instead
  • -i, --input {xml file} β€” tells it which XML file has your metadata inside πŸ“„
  • -o, --output {device|file} β€” the device or file where the restored binary metadata is going to land 🎯
    • heads up, if you pick a file, it has to be preallocated and big enough to hold the metadata 😭 no shortcuts, bestie

πŸŽ€ EXAMPLE πŸŽ€

okay so this one restores the XML formatted era metadata in the file metadata onto the logical volume /dev/vg/metadata, so the device-mapper target can process it later 🧚

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

πŸ”₯ DIAGNOSTICS πŸ”₯

era_restore returns an exit code of 0 when it succeeds and 1 when something goes wrong πŸ’… so 0 means slay and 1 means regroup πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

era_dump(8), era_check(8) 🫢

πŸ‘‘ AUTHOR πŸ‘‘

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

Bye bestie, go restore your metadata and be iconic πŸŒˆπŸ’–βœ¨ (Device Mapper Tools, System Manager's Manual πŸŽ€)

πŸ“¦ where this page comes from