Virtualization · Virtual Storage
RAW
Cheat sheet · https://pcornel.dk/topic.php?topic=3514
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 formatdu -h --apparent-size <disk.raw>; du -h <disk.raw>— sparse vs apparent sizefallocate -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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Format | simple block layout | Minimal metadata |
| File-backed | may be sparse | Filesystem controls allocation |
| Block-backed | device/LV object | No file layer |
| Features | external mechanisms | Snapshots 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