Pcornel
Virtualization · Virtual Storage

RAW

Cheat sheet · https://pcornel.dk/topic.php?topic=3514

Back to the Topic

Answer

RAW is a virtual disk image representation with a simple byte-for-byte block layout and little or no image-format metadata beyond the storage object that contains the blocks.

Remember

  • RAW image format is not the same as raw physical device passthrough.
  • A sparse RAW file can still be thin at the host filesystem layer even though the image format itself is simple.
  • RAW does not inherently provide snapshots, compression or checksums as image-format features.
  • Simple format does not guarantee better end-to-end performance.

First checks

  • qemu-img info <disk.raw> — raw format
  • du -h --apparent-size <disk.raw>; du -h <disk.raw> — sparse vs apparent size
  • fallocate -l 50G <disk.raw> — preallocate

Verify in this order

raw file/volume → guest disk

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

Virtual Storage → RAW reference map

BoundaryMeaningEvidence limit
Formatsimple block layoutMinimal metadata
File-backedmay be sparseFilesystem controls allocation
Block-backeddevice/LV objectNo file layer
Featuresexternal mechanismsSnapshots etc. separate

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3514

Confirmation

Confirm action

Continue?