Note: RDMs cannot be expanded if any VM SCSI controller has SCSI Bus Sharing set to Physical.
The procedure to expand the size of the RDM depends on the type:
- Physical compatibility mode
Physical compatibility mode RDMs, which are also known as pass-thru RDMs, expose the physical properties of the mapped LUN to the guest operating system. For the guest operating system to recognize the added space to the expanded mapped LUN, perform a rescan from the ESX host, then from the guest operating system. This process does not require rebooting the virtual machine or the ESX host.
Many of the time No changes to the RDM files (.vmdk or metadata pointer) are required to take advantage of the added disk space. But it is advisable to unmap the RDM and Re-Map is to the VM to clear any stale cache.
- Virtual compatibility mode
To safely expand the RDM:
- Expand the RDM LUN from the SAN side. Contact your vendor for assistance.
- Perform rescan on the ESX and verify the new LUN size is observed.
- svMotion the RDM pointer files or recreate the RDM mapping with the following steps to update the mapped disk size:
- Shut down the Virtual machine
- Note scsiX:Y position of the RDM in VM Settings and then remove the RDM file from the Virtual Machine and delete from disk ( Navigate to VM Settings > Add > Hard Disk > RDM, select the scsiX:Y position that the RDM was using before and then power on the virtual machine)
- On the array, increase the size of the LUN that the RDM pointed to
- Re-add the LUN as an RDM to the Virtual Machine
- Power on the VM and add the RDM with right SCSI info which you have noted earlier
- Perform a re-scan from the guest operating system
Note: When
making a changes to LUNs presented to one or more VMware ESX hosts, you must perform a storage rescan on all hosts which are presented that LUN so that the new size is consistent across all hosts.
Altering the partition table information is done within the guest operating system.
The following tools can increase the size of a Windows partition:
-
diskpart
-
Partition magic
-
Altaris
The following tools can increase the size of a Linux partition:
Caution: To avoid data loss, closely follow vendor documentation.
Note: If you are using third party Recovery Point management software (EMC and possibly others), it does not allow the proper presentation or rescan the LUN.
To resolve this issue, temporarily remove the storage from the RP utility and readd it after the rescan.For more information, see
RDM Virtual and Physical Compatibility Modes.