VDOFORMAT(8)

πŸ“¦
version 8.3.2.1 Β· 2 versions
, in centos-stream 10, debian trixie, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 VDOFORMAT β€” bestie's guide to formatting a VDO device 🌸

okay so this is vdoformat, section 8 of the System Manager's Manual, and she is that girl when it comes to prepping a device for VDO. grab a snack, we're doing this together πŸ’–


✨ NAME ✨

vdoformat β€” format a VDO device πŸŽ€


✨ SYNOPSIS ✨

vdoformat [options...] filename

like, that's it. options, then the file. iconic, lowkey πŸ¦‹


✨ DESCRIPTION ✨

okay so real talk: vdoformat formats the file named by filename as a VDO device. it's giving low-level device formatting, because that's literally what it is ✨

🚨 heads up bestie: the device will not be formatted if it already contains a VDO, unless the --force flag is used. do not come for me if you forgot the flag, i warned you πŸ’€

and also, vdoformat can modify some of the formatting parameters too. multitasking queen πŸ‘‘


✨ OPTIONS ✨

  • --format β€” format the block device, even if there is already a VDO formatted thereupon. yes, even then. she said "i'm formatting it anyway" πŸ’…
  • --help β€” print this help message and exit. the classic. the goat. when in doubt, ask for help 🫢
  • *--logical-size=size* β€” set the logical (provisioned) size of the VDO device to size. you can tack on a size suffix if you're feeling fancy: K for kilobytes, M for megabytes, G for gigabytes, T for terabytes, or P for petabytes. it's optional, no pressure. but if you don't say anything, the default unit is megabytes ✨
  • *--slab-bits=bits* β€” set the free space allocator's slab size to 2^bits 4 KB blocks. now bits has to be a value between 13 and 23 (inclusive, bestie, both ends count), which corresponds to a slab size between 32 MB and 32 GB. the default value is 19, which results in a slab size of 2 GB. this allocator manages the space VDO uses to store user data, so she's kind of a big deal πŸ‘‘

okay so here's the tea on slabs, fr fr: the maximum number of slabs in the system is 8192, so this value determines the maximum physical size of a VDO volume. one slab is the minimum amount by which a VDO volume can be grown. and smaller slabs also increase the potential for parallelism if the device has multiple physical threads. therefore, this value should be set as small as possible, given the eventual maximal size of the volume. tiny slab, big dreams 🌈

  • *--uds-memory-size=gigabytes* β€” specify the amount of memory, in gigabytes, to devote to the index. accepted options are .25, .5, .75, and all positive integers. yes queen, fractions are allowed, we love a flexible menu πŸ“
  • --uds-sparse β€” specify whether or not to use a sparse index. that's the whole vibe. sparse index: discussed 🌸
  • --verbose β€” describe what is being formatted and with what parameters. she will narrate her own life, and honestly? we stan a transparent queen πŸ’–
  • --version β€” show the version of vdoformat. for when you need receipts πŸ“œ

✨ SEE ALSO ✨

vdo(8). go read her too, she's the main character of this whole saga πŸ‘‘



okay that's the whole page bestie!! this little love letter to vdoformat comes to you from Red Hat, dated 2017-09-12, and it lives in the VDOFORMAT(8) corner of the manual universe. now go format something responsibly, no cap πŸ’œβœ¨πŸ¦‹