VDOREGENERATEGEOMETRY(8)

πŸ“¦ version 8.2.2.2, in centos-stream 9

πŸ’… VDOREGENERATEGEOMETRY(8) πŸ’…

okay bestie, so this whole page is about vdoregenerategeometry β€” a real one, from the System Manager's Manual section 8. sit down, hydrate, and let's get into it 🫢


✨ NAME ✨

vdoregenerategeometry β€” regenerate a VDO whose first few blocks have been wiped 😭

πŸ¦‹ SYNOPSIS πŸ¦‹

vdoregenerategeometry [options...]  filename

🌸 DESCRIPTION 🌸

so picture this: your VDO device had a little accident and the beginning of the backing store got wiped. not the vibe. vdoregenerategeometry is gonna attempt to regenerate the geometry block of that VDO device. that's the whole gig ✨

⚠️ but listen β€” this tool will fail if enough of the device was wiped that the VDO super block got erased too. she can't work miracles. it also fails if there are multiple valid super block candidates chillin' on the volume, because then who's the main character? πŸ€·β€β™€οΈ

filename has to be the path of the VDODataLV as described in lvmvdo(7). and here's the tea: since lvchange(8) will only mount that as read-only, you gotta manually create a writable version of that device. the example below shows you exactly how, no cap πŸ’…

if you already know where the super block lives β€” or you need to pick one of the candidate super blocks when multiple candidates got found β€” you can use the --offset option to specify the location (in bytes) of the super block on the backing store. iconic, honestly πŸ’–

πŸŽ€ OPTIONS πŸŽ€

  • --help β€” print this help message and exit. classic, we love a clean exit πŸ¦‹
  • --offset β€” specify the location (in bytes) of the super block. lowkey the most important one here ngl
  • --version β€” show the version of vdoregenerategeometry. gotta know what you're working with, periodt πŸ’…

πŸ”₯ EXAMPLE πŸ”₯

here's the full sequence, copy it exactly, don't freestyle:

# lvchange -ay vdo1/vdo0pool_vdata
# dmsetup table vdo1-vdo0pool_vdata > vdata.table
# lvchange -an vdo1/vdo0pool_vdata
# dmsetup create vdo1-vdo0pool_vdata --table "`cat vdata.table`"
# vdoregenerategeometry /dev/mapper/vdo1-vdo0pool_vdata
# dmsetup remove vdo1-vdo0pool_vdata

like… the way that's a whole little ritual 😭 activate, dump the table, deactivate, recreate it writable, run the tool, then clean up after yourself. she's tidy. she's iconic. 🧚

🌈 SEE ALSO 🌈

lvmvdo(7), lvchange(8), dmsetup(8) β€” go read these too, iykyk πŸ’œ


okay that's the whole page bestie, go fix your VDO 🫢 this one came from Red Hat, dated 2023-04-14, and it lives at page VDOREGENERATEGEOMETRY(8). mwah πŸ’‹β­

πŸ“¦ where this page comes from