# cd /var/run/vmware
Navigate to the /var/run/vmware directory
vdh -h
will show you all the partitions including those being controlled by the VMKernel.
Esxcfg-vswitch Description: Creates and updates virtual machine (vswitch) network settings
Syntax: esxcfg-vswitch [vswitch[:ports]]
Options:
vmware-cmd stop vmware-cmd reset
Description: where hard, soft or trysoft specifies the behavior of the power operation . If is not specified, the default behavior is soft.
For more information, see the VMware Scripting API User's Manual.
vmware-cmd stop/start examples
vmware-cmd /vmfs/volumes/48ce49a0-6fc41293-9781-001f296bdb5d/VM1/VM1.vmx stop
service mgmt-vmware restart
Description: For troubleshooting purposes, it may be necessary to restart the management agents on your ESX
Server.
Server.
Viewing logs from your ESX Server.
add one of the following commands to view any logs on a ESX server :tail, more, less, cat and grep.
Examples: more /var/log/vmkernel
add one of the following commands to view any logs on a ESX server :tail, more, less, cat and grep.
Examples: more /var/log/vmkernel
NOTE: you can also use WinSCP ( www.winscp.com ) to browse your ESX server folders in a "Windows Explorer Like" style and open log files with its file editor or you can copy them to a PC and open them with your favorite editor.
Service Console Commands
Service Console Commands
/proc/vmware/vm//mem/min Reading from this file reports the minimum memory size in megabytes for the virtual machine identified by .
Writing a number to this file changes the minimum memory size for the virtual machine identified by to MB.
/proc/vmware/vm//mem/shares Reading from this file reports the number of memory shares allocated to the virtual machine identified by .
Writing a number to this file changes the number of memory shares allocated to the virtual machine identified by to . The valid range of numerical values for is 0 to 100000. You may also use the special values low,normal and high. These values are automatically converted into numbers, through the configuration optionsMemSharesPerMBLow, MemSharesPerMBNormal and MemSharesPerMBHigh, described below.
Note that a value of zero (0) shares causes the virtual machine memory size allocation to be exactly equal to its specified minimum size, even if excess memory is available.
/proc/vmware/vm//mem/status Reading from this file reports current status information for the virtual machine identified by , including the specified shares, minimum size and maximum size parameters as well as the virtual machine name, current status, whether the virtual machine is currently waiting for memory to be reserved, current memory usage, current target size, memory overhead for virtualization and the amount of allocated memory actively in use. All memory sizes are reported in kilobytes.
/proc/vmware/sched/memReading from this file reports the memory status information for all non-system virtual machines in the entire system as well as several aggregate totals.
Writing the string realloc to this file causes an immediate memory reallocation. Memory is normally reallocated periodically every MemBalancePeriod seconds. (See /proc/vmware/config/MemBalancePeriod below for more information.) Reallocations are also triggered by significant changes in the amount of free memory.
/proc/vmware/memReading from this file reports the maximum size with which a new virtual machine can be powered on, admission control status including the amount of unreserved memory and unreserved swap space and the current amount of free memory in the system.
/proc/vmware/pshare/statusReading from this file reports various detailed statistics about the current status of transparent page sharing.
/proc/vmware/swap/statsReading from this file reports various detailed swap statistics.
/proc/vmware/config/MemSharesPerMBLowThis option specifies the a numerical value for the low shares value. By default, this number is 5.This number is multiplied by the virtual machine's maximum memory size to obtain the number of shares.
/proc/vmware/config/MemSharesPerMBNormalThis option specifies the a numerical value for the normal shares value. By default, this number is 10. This number is multiplied by the virtual machine's maximum memory size to obtain the number of shares.
/proc/vmware/config/MemSharesPerMBHighThis option specifies the a numerical value for the high shares value. By default, this number is 20. This number is multiplied by the virtual machine's maximum memory size to obtain the number of shares.
/proc/vmware/config/MemBalancePeriodThis ESX Server option specifies the periodic time interval, in seconds, for automatic memory reallocations. Reallocations are also triggered by significant changes in the amount of free memory. The default is 15 seconds.
/proc/vmware/config/MemSamplePeriodThis ESX Server option specifies the periodic time interval, measured in seconds of virtual machine virtual time, over which memory activity is monitored in order to estimate working set sizes. The default is 30 seconds.
/proc/vmware/config/MemIdleTaxThis ESX Server option specifies the idle memory tax rate as a percentage. A tax rate of x percent means that up to xpercent of a virtual machine's idle memory may be reclaimed. Virtual machines are charged more for idle memory, than for memory that they are actively using. A tax rate of 0 percent defines an allocation policy that ignores working sets and allocates memory strictly based on shares. A high tax rate results in an allocation policy that allows idle memory to be reallocated away from virtual machines that are unproductively hoarding it, regardless of shares. The default is 75 percent.
/proc/vmware/config/MemShareScanVMThis ESX Server option specifies the maximum per-virtual machine rate at which memory should be scanned for transparent page sharing opportunities. The rate is specified as the number of pages to scan per second. The default is 50 pages per second per virtual machine.
/proc/vmware/config/MemShareScanTotalThis ESX Server option specifies the total systemwide rate at which memory should be scanned for transparent page sharing opportunities. The rate is specified as the number of pages to scan per second. The default is 200 pages per second.
/proc/vmware/config/MemCtlMaxPercentThis ESX Server option limits the maximum amount of memory that may be reclaimed from any virtual machine usingvmmemctl, based on a percentage of its maximum size. Specifying 0 effectively disables reclamation via vmmemctl for all virtual machines. Defaults to 50.
/proc/vmware/config/MemCtlMax[OSType]These ESX Server options restrict the maximum amount of memory that may be reclaimed from a virtual machine usingvmmemctl, based on the limitations of guest operating system type. The value is specified in megabytes. Defaults to 128 for OSType=NT4 (Windows NT 4.0), 2048 for OSType=NT5 (Windows 2000 or Windows Server 2003), and 768 forOSType=Linux.
Good ESX logs to check
cat /var/log/vmware/vpx/vpxa.log
vmkernel/hostd.log
No comments:
Post a Comment