Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • See all Red Hat products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Red Hat OpenShift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • See all technologies
    • Programming languages & frameworks

      • Java
      • Python
      • JavaScript
    • System design & architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer experience

      • Productivity
      • Tools
      • GitOps
    • Automated data processing

      • AI/ML
      • Data science
      • Apache Kafka on Kubernetes
    • Platform engineering

      • DevOps
      • DevSecOps
      • Red Hat Ansible Automation Platform for applications and services
    • Secure development & architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & cloud native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • See all learning resources

    E-books

    • GitOps cookbook
    • Podman in action
    • Kubernetes operators
    • The path to GitOps
    • See all e-books

    Cheat sheets

    • Linux commands
    • Bash commands
    • Git
    • systemd commands
    • See all cheat sheets

    Documentation

    • Product documentation
    • API catalog
    • Legacy documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore the Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Get raw device mapping (RDM) disks with OpenShift Virtualization

March 31, 2026
Raffaele Spazzoli
Related topics:
KubernetesVirtualization
Related products:
Red Hat OpenShift Virtualization

    Raw device mapping (RDM) volumes are a VMWare feature that allows LUNs from a SAN array to attach directly to a virtual machine (VM). The ESXi host connects and manages LUNs, when configured as Raw Device Mapping (RDM) devices. Then these devices are presented to virtual machines through a minimal virtualization layer. A mapping file stores the information on how to connect to the LUN stored on a DataStore. However, the reality is that Red Hat OpenShift Virtualization can provide an RDM-like experience. This article describes how to achieve an RDM-like experience in OpenShift Virtualization.

    Requirements of applications using RDMs

    In VMware deployments, we typically use RDM volumes to satisfy these requirements:

    • On-the-wire disk I/O performance
    • SCSI command propagation via Scatter-Read/Gather-Write Input/Output (SG_IO) and SCSI3 persistent reservation (SCSI3 PR) commands
    • In some cases, RDM disks were used to overcome the limitation of 2TB size for VMDK disks existing in some old versions of VMware.

    Because LUNs are attached directly to the VMs, RDM volumes tend to perform better than VMDK disks.

    Certain types of cluster software use SCSI3 PR commands to coordinate between the cluster instances that share a volume. Typically, this coordination is essential for electing a leader and implementing fencing to prevent other cluster members from writing to the disk.

    Other common requirements for VM volumes that are not unique to RDM devices:

    • Shared disks for clustered systems
    • Ability to live migrate a VM
    • Support for snapshots

    An RDM-like experience with OpenShift Virtualization

    Assuming a SAN array is available for OpenShift to use, it’s possible to create volumes that behave in a similar manner to RDMs. The primary requirement here is to use the CSI drivers of the SAN array vendor. Within this architectural approach, all the VM disks are actually dedicated LUNs with theoretically on-the-wire I/O performance.

    To enable SGIO command propagation, mount these volumes in the VM as LUNs similar to the following:

    devices:
     disks:
     - name: rdm-like
       lun:
         reservation: true

    Note that if you need persistent reservations, set the relative flag to true as in the previous snippet.

    Figure 1 shows the resulting architecture.

    This shows an RDM-like volume architecture.
    Figure 1: The image shows the RDM-like volume architecture used with OpenShift Virtualization.

    The following summarizes the characteristics and features of RDM-like devices in OpenShift Virtualization:

    • LUN dedicated to VM disk: SAN array vendor CSI drivers will create a LUN per VM disk.
    • On-the-wire performance: The virtio-scsi overhead is minimal and similar for the NPIV overhead.
    • SGIO commands propagation (including persistent reservations): Available with the volume configured as a LUN and enabled PR flag.
    • Support for shared volumes: Available
    • Support for snapshots are available: Snapshots are actually not supported for physical RDMs (the most commonly used type) in VMware.
    • Support for VM live-migration is generally available. Will be available soon when SCSI3 PR is enabled (see this Jira).

    Using the SAN array vendor CSI drivers, it is not necessary to manually configure the RDM LUNs to be presented to all of the nodes. Capabilities provided by the CSI driver will facilitate this process. 

    Migration strategies for VMs using RDM devices

    In general, there are three strategies for migrating VMs that are configured to use RDM devices.

    The first strategy is MTV with Storage offload. Because we use direct CSI drivers, we can typically optimize the migrations via storage offload. Also you can only migrate RDM devices when using this feature. If the you migrate virtual machines from a clustered application, the Migration Toolkit for Virtualization (MTV) requires two migration waves. In the first wave, migrate a VM with the shared RDM disks. The second wave migrates the remaining VMs, and sets a flag in the migration plan to ignore the shared disks, so they are not copied multiple times. This migration approach requires some post migration activities to configure the migrated RDM disks as LUN (see the limitation described here) and to reattach the shared RDM disk to the VMs in the second wave. A future iteration of MTV will allow migrating the clustered VMs using a single wave (see the issue described here).

    The second strategy is static provisioning. By using static provisioning, you can reference an existing LUN representing RDM as a persistent volume (PV) from OpenShift. Most CSI drivers have documentation on how to use static provisioning. If the documentation is not available, you can use static provisioning. However, you'll need some reverse engineering to create the PVs. After creating all the PVs representing RDM’s, you can migrate VMs via MTV (ignoring the RDM devices). As a post migration step, you can reattach the PV to the migrated VMs.

    The third strategy is growing and shrinking the cluster. Because most of the applications that need RDM disks are clustered applications, another approach is to have the cluster grow on the OpenShift Virtualization side by provisioning new VMs. You will attach these VMs to the RDM volumes via statically provisioned PVs. After the successful growth of the cluster, you can safely delete the VMs running on the VMware side.

    Wrap up

    In this article, we discussed how OpenShift Virtualization can provide an RDM-like experience as long as a few conditions are met. The RDM-like volumes are not provisioned with the same technology as RDM volumes, but perform essentially the same way, fitting the majority of the common use cases. This article also described three migration strategies for applications using RDM devices.

    Last updated: April 1, 2026

    Related Posts

    • Facing a forced migration? You have a choice with OpenShift Virtualization

    • Right-sizing recommendations for OpenShift Virtualization

    • Why I switched from VMware to OpenShift Virtualization

    • Use NetApp to run SAP on OpenShift Virtualization with a dual boot on bare metal

    • How to run I/O workloads on OpenShift Virtualization VMs

    Recent Posts

    • Red Hat build of Perses with the cluster observability operator

    • How to plan your RHEL lifecycle with AI

    • Beyond guesswork: Generating accurate ingress firewall rules with oc commatrix

    • Faster AI/ML container startup with additional storage in Red Hat OpenShift 4.22

    • Blast radius validation: Large and small Red Hat OpenShift nodes

    What’s up next?

    OS-Virt-vmware-cheat-sheet-tile-card

    OpenShift Virtualization for VMware administrators cheat sheet

    Ryan Capra +1
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue