October 14, 2018

VMware vSphere 6.5 ASM DISK configuration


VMware vSphere 6.5 ASM DISK configuration 

In this article i'm posting simple steps to create ASM Disk in VMware 6.5 and only i have covered the VMware portion of this. not the Oracle ASM Disk configuration it self. you can find plenty of articles regarding ASM Disk configurations on the web.

Both VM's should be in power off state to proceed with this configuration,

1. As first step you need to add new SCSI Controller to the VM, you could add disk to the Existing Controller ,but adding to a separate controller is always recommended,  

Go to the first Node -> Configurations -> Edit -> add New SCSI Controller 

 

Make sure the Controller Type change to "VMware Paravirtual"  and Set SCSI Bus Sharing to "None"



2. Now you can proceed with New Disk additions 

Go to the first Node -> Configurations -> Edit -> add New Hard Disk ( in My case DB Team requested 350GB disk and this can be vary on your requirement )

And change
Disk Type  - Thick provision eager zero ( Disk space will be claim when created and all the blocked will be zeroed)
Sharing - Multi-Writer ( Enable Multi writer flag)

Disk mode - Independent - Persistent ( Shared disks will be Exclude Snapshot operation if any)
and Finally select newly created SCSI controller as Virtual Device Node




once this is done it will take some time to create the Disk since this is a Thick Provision Eger Zero Disk .

once this is done , go to the 2nd node and add SCSI controller with same settings
then add new Disk and Add existing Disk and brows and point to the disk created for first node,

and change settings identical to the First node . 

once this is done you can power up the VM handover to the DB team for any Oracle ASM configuration

October 13, 2018

Get Virtual Machines provisioned Disk size for a list of VMs




Below is a script to get VM provisioned Disk size from list of VMs in a .txt file

you will be getting Total provisioned Disk size for each VM in the list and output will be save to a CSV file 


#Get Virtual Machines Disk size for a list
$vmList = Get-Content D:\temp\inputFile.txt
$results= foreach ($vmName in $vmList) {Get-VM $vmName | Select-Object Name,@{n="HardDiskSizeGB"; e={(Get-HardDisk -VM $_ | Measure-Object -Sum CapacityGB).Sum}}}
$results | Export-Csv "D:\temp\file.csv" 



Redirecting to a CSV file
| Export-Csv "D:\temp\file.csv


Invoke lines from a text file to Power CLI
$vmList = Get-Content D:\temp\inputFile.txt