Doing COW math - Copy on write snapshot heap

Been some time since the last blog post and I apologize for that, but it only because off happy circumstances, I became a father, for the second time to a healthy boy :) So I have had some time off to be with my family. Well with that sorted lets move on to the topic of the day.

Doing COW math

Hope you have been doing your VMware COWs math… And here I’m of course talking about copy on write snapshots. Some time ago now got a few service request stating the some services were down for some VMs (50+). There were nothing obvious wrong, VMs were running, no BSOD, host was online, OS was running etc. So I started looking at host log files since this problem was host wide, by the way I did it with my new favorite tool Log Insight. After some digging I found some odd warning in the log. WARNING: Cow: 549: No memory available This let my to think of physical memory, which there were plenty for and then heap… I’ve see similar problems with heap before, but mostly with third party software, where the heap space had run full, which had some unwanted impact on service up time. After some more digging I validated that this was the problem, and I started mitigating the problem, in this case it was quite simple a matter for getting all the VMs off the host with a vMotion, as there were quite a few VMs running on the host I chose to put the host into maintenance mode.

[]

Maximum vDS ports per host

First of all its been awhile since my laste port and for that I apologize.

Maximum vDS ports per host

Some settings are just left default, maybe because it seems to be of no use/harm, maybe because it seems sufficient and some are just left default as the consequences of changing them are unknown.

Well I guess this is just one of the problems where all of the above fit right in. You may know that there are some limitations of whats supported by different vSphere components - and this is were the problem in question comes to play. When you add a host to the vDS it will be created with 256 port by default, this means that if you plan to have more than 256 vNics on a host, this needs to be changed. This can be done when the host is added to the vDS and it can also be change after the host has been put into production, it will how ever require a reboot of the host to take effect.

[]

Correcting Multi Path Policy

Correcting Multi Path Policy(MPP), is some thing i had to do recently - The story goes… The storage team had brought in a new storage array/vendor and started making datastores from that, now a few hundred datastores later, someone noticed that some path where highly utilized while others again was hardly used at all. So after looking into this, it was desisted to change the Multi Path Policy to RoundRobin as per the vendors recommendations and best practices. While making the script for this I noticed that some local disks were already set to RoundRobin where they were suppose to be configured as Fixed. So I created the below script to correct the issue. It takes a while to get the job done, but in the end it way faster than the alternatives.

[]

Log Insight Snapshot Content Pack

I’ve been running Log insight for some time now, first as part of the beta and then continued after it became GA, the last upgrade to 1.5 GA was a real pleaser. This tool has fast become one of my favorite VMware products, the insight you get into your environment is astonishing. This is the first tool I login to every morgning, way before vSphere client, vCops or even mail.

[]

Log insight - vCOPS Content Pack

Log insight - vCOPS Content Pack

Log insight’s vCOPS Content Pack was released together with vCops 5.8, this content pack lets you get the same great insight into your vCops environment as log insight provides for your vSphere environment. There are three tasks to setting up vCops content pack for vCenter Log insight.

  1. Downloading and installing the content pack.
  2. Setting up vCops to syslog to Log insight.
  3. Connecting Log insight to vCops, so that Log insight can send alerts to vCops.

Downloading and installing vCops content pack for Log insight

If you have not already downloaded the content pack, lets start by doing that, it can be found on the VMware Solutions Exchange, just follow the direct link to it - vCenter Log insight Content Pack for vCenter Operations Manager. While you are there you might also wanna check out was else is there at the Solutions Exchange - There are quite a few content packs already.

[]

Upgrade Log Insight

Now that Log Insight 1.5 has to be come GA, its time to upgrade. So what new in 1.5 ? Among the most Important are:

  • Active Directory support for authentication
  • Significant query performance improvements by optimizing the execution of common queries
  • User interface for upgrading from previous versions of Log Insight through Administration UI

The rest can be read in the release notes here

Note the last bullet - Cause this is not how its done on 1.0, more on that later, first we need to have a look at security! (and if you haven’t downloaded the rpm file, now would be a good time to do it)

[]