Increasing disk with similar disk size

 Increasing disk with similar disk size by matching the LUN ID with the Windows SCSI id

1. RDP to the server and launch Powershell as an administrator. In this example we are using server-name.

2. Run the following command to generate the Windows disks. This info will be used later.

Get-WmiObject Win32_DiskDrive | select-object DeviceID,{$_.size/1024/1024/1024},scsiport,scsibus,scsitargetid,scsilogicalunit | out-file -FilePath c:\OutputPhysicalDrive.txt

3. Next, open the VMware Web client and edit the VM and expand the disks.

4. Here the info we need to retrieve for each disk is:

Disk Name: “Hard disk 1” Size: “127 GB” Bus ID: 0 Disk ID: 0

For reference: SCSI (X:Y) Hard Disk under Virtual Device Node. The X:Y values are:

X = Bus ID

Y = Disk ID

5. Fill in the following table for each disk:

                 

6. Match the Windows disk scsitargetid with the VMDK DiskID and fill in the rest of the table.

Examples:

DeviceID : \\.\PHYSICALDRIVE0

$_.size/1024/1024/1024 : 126.993927955627

scsiport : 0

scsibus : 0

scsitargetid : 0

scsilogicalunit : 0

 

This method will help you in cases where we have multiple disks of the same size. Here we have 2 disks with a size of 10GB:

 

DeviceID : \\.\PHYSICALDRIVE7

$_.size/1024/1024/1024 : 9.99680757522583

scsiport : 4

scsibus : 0

scsitargetid : 1

scsilogicalunit : 0

 

DeviceID : \\.\PHYSICALDRIVE5

$_.size/1024/1024/1024 : 9.99680757522583

scsiport : 3

scsibus : 0

scsitargetid : 2

scsilogicalunit : 0

 

Use this method to fill in the remainder of the table:


 

7. Once the data is matched, go to the relevant Hard Disk # as per the above data in the web-client and increase it with the requested amount.

8. Once the size is increased in web-client, login to the server > Open Disk Management > Action > Rescan disk, you will see the increased space once the rescan is completed.

9. Right click on the relevant disk > Extend volume to complete the action

10. Verify the size of the disk once done. 

Comments

Popular posts from this blog

VMware:- Esxi Log File Locations

ESX and vCenter Alarms

Convert VMware Snapshot into Memory Dump