Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

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

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

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

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    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

    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
    Ask AI