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.
- After the physical compatibility mode LUN size is changed, you will find the size of the RDM disk descriptor file does not match the new size of the lun and the VM's settings for disk size still show the old size of the RDM. The host LUN device and guest OS shows report the new size of the disk correctly after rescanning storage/disks.
- The size mismatch is a cosmetic issue, but it can be updated by removing and adding the disk back to all the connected VM.
- NOTE: An outage will be required for the VMs mapped to the RDM to correct the size of the descriptor file and disk size info in VM settings.
-
Process to correct descriptor file size and VM settings disk size information:
- Shut down RDM connected VMs.
- Document RDM disk settings (multi-writer mode/physical mode type/etc.) along with the RDM SCSI controller settings (SCSI ID)
- Remove the RDM from all of the connected VMs (DO NOT DELETE THE DISK).
- Select EDIT SETTINGS
- Remove the RDM disk.
- Save the settings change and proceed to next VM to repeat the change until all VMs are updated.
- After all connected VMs have the disk removed, add the RDM back to the VMs using the original SCSI controller and disk configuration that was documented before the disk was removed.
- After all the VMs have the disk reconfigured, power on the VMs one by one and verify the following:
- VM disk info shows correct size.
- Datastore vmkd descriptor files show matching size of LUN.
- 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.