When using ESXi VMware rotates log when you power off and power on virtual machines.
On servers that this happens to very rare for good reason. When using VVOLs this can make matters worse due to the 4GB config/log partition, and once full things start to go wrong such as snapshot fail.
To correct this issue you need to change some settings in the VMX. This is best done through powershell as all VM's will probably get to the full state at some point.
The best thing is to change the log rotation to size based and set the max log files.
1) Establish a connection:
Connect-VIServer (vCenter URL or IP)
Change all VM's in a cluster:
$VMs = Get-Cluster (Name of your Cluster) | Get-VM
ForEach ($VM in $VMs)
{
Get-VM $VM.Name | New-AdvancedSetting -Name "log.keepOld" -value "5" -Confirm:$false
Get-VM $VM.Name | New-AdvancedSetting -Name "log.rotatesize" -value "1048576" -Confirm:$false
(get-vm $VM.Name | get-view).reload()
}
To change all VM's in a Resource Pool:
$VMs = Get-ResourcePool (Pool Name) | Get-VM
ForEach ($VM in $VMs)
{
Get-VM $VM.Name | New-AdvancedSetting -Name "log.keepOld" -value "5" -Confirm:$false
Get-VM $VM.Name | New-AdvancedSetting -Name "log.rotatesize" -value "1048576" -Confirm:$false
(get-vm $VM.Name | get-view).reload()
}
VMware Virtual Machine