Is the server a VM

Issue: Have you ever worked at a large company and get someone telling you their server is a VM but you can’t locate it?

What might have happened:

  1. the servers name was changed at on the VM or OS and someone has the new or old name and it no longer synced correctly
  2. out of date inventory/cmdb
  3. it could be physical
  4. DNS alias

A workaround:

Here are some commands that will help track down the system, you can twink a few of these commands to get additional data. You will need access to the server OS that you are trying to track down for these commands to work.

Linux:
dmidecode -t system | grep ‘Manufacture\|Product\|Version\|Serial Number\|UUID’
dmesg | grep -i hypervisor (maybe)
ifconfig
hostname

Windows:
wmic computersystem get model,name,manufacturer,systemtype
ipconfig /all
hostname

Solaris:
prtdiag -v | head -3
/usr/sbin/ifconfig -a
arp -a
/usr/bin/netstat -pn | grep SP
ipadm show-addr (solaris 11+)
hostname
uname -n

TSM error ANS2310E

Issue:

TSM for VE will sometimes give error ANS2310E The create snapshot task is disabled on the virtual machine ‘*’. As a result, the virtual machine cannot be backed up.

Cause:

If the VM is getting vmotioned or storage vmotioned, snapshot tasks will fail and this error will be created.

Solution:

Retry the backup job at a later time after the vmotion is complete.

How to roll up a vmware snapshot that is to large

Problem:

A very old and large snapshot was removed from snapshot manager it said it completed, a month later the datastore was full that the VM was in. Looking in to the files for that VM it was found that the snapshot disks where still in the VM’s folder directory. But nothing was in the snapshot manager. Migrate/svmotion was also failing to move the disks out to a different datastore with space.

 

The Fix:

  1. Get a temp datastore created for size of all the drives on that system that have snapshot disks (hostname-000001.vmdk)
  2. clone the disks via command line, pointing the source vmdk to clone the snapshot disk and point the destination as the new datastore
  3. after the clone are done and all your vmdk files have been cloned and all data rolled up you can delete your old data from the old data store
  4. then copy the vmdk files from your temp datastore to your old datastore
  5. remove temp datastore

Note: To commit a snapshot you need twice the space of the snapshot to commit it, if you don’t it will fail.

VMWare update manager errors

The Problem:

  1. Getting errors: “There are errors during the scan operation” and “There are errors during the remediation operation”
  2. Detailed error for both: “Patch metadata for xxx.xxx.com missing. Please download updates metadata first.”

The Fix:

  1. Find a vmware form on it, that linked to a KB about the problem.

The Second Problem:

  1. The vci-integrity.xml was set the way it needed to be from the vmware KB
  2. The system was only using one NIC

The Second Fix:

  1. Run the update manager scheduled task in vCenter
  2. Once finished with out errors, Restart the Update Manager Service

Increase ESX heartbeat to vCenter

How to increase your heartbeat timeout for your ESX hosts to vCenter. Normally every ESX host sends a heartbeat every 10 sec and the virtual center (vCenter) waits 20sec for that heartbeat. This should not be a problem if you have a good network or good links for remote sites. But if you have a slow link to a remote site that can mean that your hosts might show up as not responding when they are.

 

The fix:

Note! do a back up of your vpxd.cfg file first

locate the vpxd.cfg file at C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\ and add in the <vpxd> </vpxd>

 

     <heartbeat>
       <notRespondingTimeout>60</notRespondingTimeout>
     </heartbeat>

vpxd

Then restart the virtualcenter server service

Netapp Virtual Storage Console for VMware vSphere

Netapp has released a new plugin for VMware vSphere called Virtual Storage Console (VSC) that works with the VMware ESX Host Utilities and your Netapp filers to give you a more detailed view of your storage. You can view some screenshots from http://blogs.netapp.com/storage_nuts_n_bolts/2009/06/virtual-storage-console.html

and you can download the plugin from the netapp now site under the download section. This is a free plugin for netapp customers.