Raw Device Mapping (RDM) is employed in VMware to provide a way for virtual machines to access physical storage devices directly. This approach allows VMs to interact with the underlying storage without the overhead of the VMFS file system. RDM is particularly useful in scenarios that require high performance and low latency, such as database applications or high I/O workloads.
RDM works by mapping a physical disk to a virtual machine, which can be beneficial for applications that need to maintain direct access to the storage, like clustering solutions or when using certain backup solutions that require direct disk access. For example, if I have a SQL Server running on a VM, using RDM allows it to perform better by reducing the I/O latency compared to using a VMFS datastore.
However, RDM does have some trade-offs. It complicates management, as you cannot use some of the advanced features of VMFS, like snapshots or cloning. In contrast, if I were to use VMFS, I would have easier management and the ability to leverage VMware's features, but potentially at the cost of performance. Therefore, I choose RDM when performance is critical and the application can benefit from direct disk access, while I opt for VMFS for general-purpose workloads where management simplicity is more important.