What's the difference between RDM and VMDK?
TechnicalVMware EngineerSystem AdministratorCloud EngineerThe main difference between RDM (Raw Device Mapping) and VMDK (Virtual Machine Disk) lies in how they handle storage for virtual machines. RDM allows a virtual machine to access a physical disk directly, providing benefits like high performance and support for clustering. In contrast, VMDK is a virtual disk file that abstracts the underlying storage, making it easier to manage and move virtual machines.
RDM is particularly useful in scenarios where direct access to the physical storage is required, such as in high-availability clusters or when using certain applications that need to interact with the disk at a low level. For example, if you're running a database that requires shared access across multiple nodes, RDM would be the better choice.
On the other hand, VMDK is more commonly used for general-purpose virtual machines due to its flexibility and ease of use. It's ideal for most workloads where direct disk access isn't necessary, allowing for easier backups and snapshots. The trade-off is that VMDK might introduce some performance overhead compared to RDM. In summary, I choose RDM for performance-critical applications needing direct disk access, while VMDK is my go-to for standard virtual machine deployments.