Pcornel
Virtualization · Virtual Storage

Raw Disk

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

Back to the Topic

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 host
  • qm 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

BoundaryMeaningEvidence limit
Guestvirtual block deviceStill virtualized
Mappingraw/block bindingNo image format layer
Hostblock path/multipathHost-managed
Backenddevice/LUNActual 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

Confirmation

Confirm action

Continue?