VDOSETUUID(8)

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

πŸ’… VDOSETUUID(8) β€” like, the manual page, bestie

okay so real talk: this is vdosetuuid, section 8 of the System Manager's Manual, and she is the girl for giving your VDO volume a fresh new identity ✨


🌸 NAME 🌸

vdosetuuid β€” sets a new uuid for the vdo volume stored on a backing store 🫢


✨ SYNOPSIS ✨

vdosetuuid [options...]  vdoBacking

πŸ’– DESCRIPTION πŸ’–

vdosetuuid sets a new uuid for the VDO volume stored on the vdoBacking device. it's giving makeover era, no cap πŸ’…

vdoBacking must be the path of the VDODataLV as described in lvmvdo(7). and here's the tea 🍡 β€” lvchange(8) will only mount that as read-only, so you have to manually create a writable version of that device yourself. the example below shows you exactly how, so don't panic 😌


πŸŽ€ OPTIONS πŸŽ€

  • --help β€” print this help message and exit. iconic, low-effort, we love her πŸ’œ
  • --uuid β€” sets the uuid value that is stored in the VDO device. if you don't specify it, the uuid is randomly generated 🎲✨
  • --version β€” show the version of vdosetuuid. gotta know what you're working with, fr fr πŸ‘‘

πŸ¦‹ EXAMPLE πŸ¦‹

like, literally just follow along:

# 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`"
# vdosetuuid --uuid 6ecb9db8-[...] /dev/mapper/vdo1-vdo0pool_vdata
# dmsetup remove vdo1-vdo0pool_vdata

see? activate it read-only-ish, dump the table, deactivate, recreate it writable with dmsetup, run the vdosetuuid glow-up, then clean up after yourself. main character energy and also good hygiene πŸ§šπŸ’–


🌈 SEE ALSO 🌈

lvmvdo(7), lvchange(8), dmsetup(8) β€” go read your sisters' pages, iykyk πŸ“š


⚠️ quick vibe check: that lvchange(8) read-only thing is not a suggestion, bestie. if you skip the manual writable-device step, it's not gonna slay, it's just gonna fail 😭

and that's the whole page!! brought to you by Red Hat, dated 2023-04-10, VDOSETUUID(8) forever and always πŸ’€πŸŽ€ go set some uuids, you got this ⭐🌸

πŸ“¦ where this page comes from