We have a client who has got several ESXi servers. Recently, a local drive on one of the virtual servers reported low disk space. I need to extend the space of this drive at any cost.
This local drive is actually allocated from a virtual disk on the SAN device they have, which is Dell MD3200i. This particular virtual disk resides on a Disk Group created from a RAID 6 volume as well. The LUN or virtual disk we are talking about is mapped to the VMware host which in turn is mounted as a hard disk on the virtual machine.
So, in order to extend the drive capacity the procedure will be as follows :
- Increase the capacity of the virtual disk on MD3200i: Steps are shown below:-
Connect to the Dell MD3200i console.
Select the tab Storage & Copy Services. Right click the virtual disk under the respective Disk Group, and select Increase Capacity.
Click on OK, when the below window appears:
Now, you will have to input the amount of space you need to extend and click OK.
The process will begin and you will find a status bar as shown below:
Even though we are increasing the capacity of a single LUN in a disk group, all other LUNs will be prepared and defragmented which will further increase the time for the entire process.
The above image shows the status of the task. Wait till the capacity of the lun is increased.
- Extend the datastore capacity in ESXi host:
You have increased the capacity of the lun at this point. As informed earlier, the lun is mapped on the host server. The datastore size should change in the ESXi server as well.. right ??? Even-though you refresh your storage, the capacity of the datastore in the ESXi host may not change. At that time you have to manually extend the datastore capacity.
First, log in to the ESXi host server. Navigate to Configuration -> Storage, and select your datastore [as well as virtual disk]. Select the datastore and click on Properties.
Click on the Increase button as shown below:
Next, it will show you the current LUN space and the free space available [free space obtained from increasing lun capacity]. Click Next.
In the next step, it will combine both the free space to the lun. Click Next and then Finish.
Now you have completed the steps for extending the datastore.
- Extend the hard disk from the virtual machine Edit Settings:
On the ESXi host, select the virtual machine and click on Edit Settings. In order to extend the capacity of the hard disk the virtual machine should be in shutdown state as we know. Select the hard disk and increase the capacity as required. Once done click on OK.
Turn on the virtual machine and log in to the server.
- Extend the capacity of the drive from Disk Management
This is the final step in the task. Once logged in to the server, launch Disk Management. Select the disk. You will notice unallocated space on the right hand side of the disk. Right click the partition and select Extend Volume.