book
Article ID: 310317
calendar_today
Updated On:
Environment
VMware vCenter Server 4.0.x
VMware vCenter Server 5.0.x
VMware VirtualCenter 2.5.x
VMware vCenter Server 4.1.x
Cause
By default, the virtual machine log file (vmware.log) is rotated as a result of the virtual machine's Power On or Power Off operation. To configure log rotation based on file size, the log.rotateSize line is included in the virtual machine's .vmx file. For example:
log.rotateSize = <maximum size in bytes the file can grow to>
When the log.rotateSize value in the virtual machine's .vmx file is set to a very low value, it causes the vmware.log file to rotate so quickly that by the time the destination host is requesting the vmware.log file's VMFS lock, it has already rotated through and there is a new vmware.log file associated with a new inode in the file system. The destination host is then unable to acquire a proper file lock, and this causes the vMotion migration failure.
Resolution
To resolve this issue, modify the
log.rotateSize value to a larger number to prevent the log file from rotating too quickly:
- Log into the ESXi/ESX host or the vCenter Server using the vSphere Client.
- Power off the virtual machine.
- Click Edit Settings on the virtual machine's Summary page, then click the Options tab.
- Under Advanced, click General.
- Click Configuration Parameters > Configuration.
- Find the log.rotateSize parameter and change the setting to a larger value.
Note: Do not change the log.keepOld setting to a large number or the datastore may fill up. The default value for log.keepOld is 6.
- Click OK.
- Power on the virtual machine.
- Verify that the issue is resolved by using vMotion to migrate the virtual machine.