January 29, 2019

Disk size expansion issue - Vmware 6.0 Issue - adding/Expanding Disks size ) >= 2TB not allowed

Disk size expansion issue -  Vmware 6.0 Issue  -  adding/Expanding Disks size ) >= 2TB not allowed  



Error - 


Hot-extend was invoked with size (8178892800 sectors) >= 2TB. Hot-extend beyond or equal to 2TB is not supported.











Solution -
Once shutdown we were able to completed the Disk Expansion. Is seems like an issue with VMware 6.0 , once Host upgrade to Esxi 6.5 and HW version to 13 we can do the Disk expansion on the fly.



December 17, 2018

VMware Logs 2

ESXi Host Logs




ComponentLocationPurpose
1VMkernel/var/log/vmkernel.logESXi
2VMkernel warnings/var/log/vmkwarning.logRecords activities related to virtual machines
3VMkernel summary/var/log/vmksummary.logUsed to determine uptime and availability statistics for ESXi (comma separated)
4ESXi host agent log/var/log/hostd.logContains information about the agent that manages and configures the ESXi host and its virtual machines
5vCenter agent log/var/log/vpxa.logContains information about the agent that communicates with vCenter Server (if the host is managed by vCenter Server)
6Shell log/var/log/shell.logESXi Shell as well as shell events (for example, when the shell was enabled)
7Authentication/var/log/auth.logContains all events related to authentication for the local system
8System messages/var/log/syslog.logContains all general log messages and can be used for troubleshooting. This information was formerly located in the messages log file
9Virtual machinesThe same directory as the affected virtual machine’s configuration files, named vmware.log and vmware*.log. For example, /vmfs/volumes/datastore/virtual machine/vwmare.logContains virtual machine power events, system failure information, tools status and activity, time sync, virtual hardware changes, vMotion migrations, machine clones, and so on



The VMware vCenter Server Appliance 6.x logs are located in the /var/log/vmware/




vCenter Server Appliance Log LocationPurpose
10vpxd/vpxd.logThe main vCenter Serverlog
11vpxd/vpxd-profiler.logProfile metrics for operations performed in vCenter Server
12vpxd/vpxd-alert.logNon-fatal information logged about the vpxd process
13perfcharts/stats.logVMware Performance Charts
14eam/eam.logVMware ESX Agent Manager
15invsvcVMware Inventory Service
16netdumperVMware vSphere ESXi Dump Collector
17vapiVMware vAPI Endpoint
18vmdirdVMware Directory Service daemon
19syslogvSphere Syslog Collector
20vmware-sps/sps.logVMware vSphere Profile-Driven Storage Service
21vpostgresvFabric Postgres database service
22vsphere-clientVMware vSphere Web Client
23vwsVMware System and Hardware Health Manager
24workflowVMware vCenter Workflow Manager
25SSOVMware Single Sign-On




https://www.altaro.com/vmware/vsphere-log-files/


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