Raw Disk
Cheat sheet · https://pcornel.dk/topic.php?topic=3503
Answer
A Raw Disk mapping exposes an underlying block device, LUN, partition or similar host storage object to a VM with little or no disk-image format layer between the virtual device and that backing block resource.
Remember
- Raw mapping is still mediated by the virtualization and host I/O stack unless true device passthrough is used.
- Raw disk is not automatically faster than image-backed storage.
- A raw mapping can reduce image-format features such as snapshots or portability depending on platform.
- Exclusive ownership and fencing requirements must be verified before multiple consumers access the same raw block resource.
First checks
lsblk -o NAME,SIZE,SERIAL— raw device on hostqm set <vmid> --scsi1 /dev/disk/by-id/<id>— attach physical disk (Proxmox)Add-VMHardDiskDrive <vm> -DiskNumber <n>— pass-through disk (Hyper-V)
Verify in this order
physical disk/LUN → mapped to VM → guest filesystem
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 Disk reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest | virtual block device | Still virtualized |
| Mapping | raw/block binding | No image format layer |
| Host | block path/multipath | Host-managed |
| Backend | device/LUN | Actual media/service |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3503