Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Raw Disk

Direct 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.

When to use this

Use it when a workload needs direct use of a host-visible block object or when avoiding an image-format layer is an intentional design choice.

First 30 seconds

1. Raw device mapping gives a VM a whole physical disk or LUN.

2. Use by-id paths, not /dev/sdX.

3. No hypervisor snapshots.

4. Pins VM to hosts that see the disk.

5. Used for clustering and special apps.

Operational verification

physical disk/LUN → mapped to VM → guest filesystem

Evidence · next step

Verify fencing/locking, stable device identity, failover behavior and measured performance.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show direct hardware passthrough, exclusive access, multipath resilience or better latency.

Next check: Verify fencing/locking, stable device identity, failover behavior and measured performance.

Platform / version applicability
virtualization-storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-storage
Scope / prerequisiteUse it when a workload needs direct use of a host-visible block object or when avoiding an image-format layer is an int…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

raw mapping config → backing device identity → access/ownership → host block path → guest I/O → persistence verification

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • 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.
Key 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)
ReferenceWhat it is1 section · depth on demand

When to use raw devices

Raw mapping (RDM on VMware, pass-through disks on Hyper-V, LUN//dev/disk/by-id in KVM) is used for SAN-aware applications, guest clustering with shared disks and very large volumes. You lose snapshots (in physical mode), some backup integrations and easy migration. Use stable device paths (/dev/disk/by-id/...), never /dev/sdX.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

Raw ≠ physical passthrough ≠ exclusive ownership ≠ guaranteed performance.

In depth

A raw disk gives the VM direct access to a physical disk, partition or LUN instead of a disk image: RDM (VMware), pass-through disk (Hyper-V), or a block device path in QEMU (/dev/disk/by-id/…).

qm set 120 --scsi1 /dev/disk/by-id/ata-WDC_WD80EFZX-68UW8N0_ABC123

Uses: giving a NAS VM (TrueNAS) whole disks, guest clustering, very large existing LUNs. Downsides: no hypervisor snapshots or image-level backup for that disk, and the VM is tied to the host or LUN. For ZFS inside a VM, passing through the whole HBA is safer than individual disks.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-storage current

Authoritative/upstream documentation reviewed for bounded claims in Virtual Storage → Raw Disk. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/storage.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
raw disk mappingraw device mappingvm raw block devicerdm concept
Embedded reference data

Quick lookup tables

Virtual Storage → Raw Disk reference map

Fast virtual-storage boundaries for Virtual Storage → Raw Disk.

BoundaryMeaningEvidence limit
Guestvirtual block deviceStill virtualized
Mappingraw/block bindingNo image format layer
Hostblock path/multipathHost-managed
Backenddevice/LUNActual media/service
Confirmation

Confirm action

Continue?