Disabling alarms in vCenter and ignoring “Health Status Monitoring” Errors in vCOPS!

I don’t know about you, but I hate it when I login to vCOPS only to find that ALL of my vCenters show my health status as 0 and red, removing any real chance of actually seeing if there are any real PROBLEMS going on. It’s annoying as all hell and really removes the chance to actually see what may be going on.   I know what you’re saying though, I can go in to the alerts and clear that Health error.  Yea, I can do a lot of things, but if all I’m going to be doing is removing the alert and effectively ignoring it, then the error itself serves no meaning and should be removed!   6

So, here’s how you go about actually disabling this Alert from showing up in vCenter.  Disclaimer; Even with this enabled it will OCCASIONALLY still show up in vCOPS. I don’t know why yet, and when I solve as to WTF that means I’ll publish said results.   Though in the meantime here are the steps!

OMG VCENTER IS ALERTING ME OF PROBLEMS!!!!

45

Yea you’ve seen this error! The sky is falling, and all that.  Now if you find this error to be pointless and stupid, here are two ways to go about clearing it up!

3 

Firstly, you can pop yourself into the Alarm settings tab, simply uncheck the box to “Enable this Alarm” and bam, the error will no longer ‘alert’ you and appear in your alarms section.  This is awesome. But if you have more than one vCenter like me, I mean not that my 100 vCenters really affords me the need to script this… But sometimes we want to disable alerts everywhere!  

You can run this script and it’ll show you what the status of particular Alarm settings are.  As you can see here, this is configured as “True”

2

Get-AlarmDefinition -Entity (Get-Folder -NoRecursion) -Name "Health Status Monitoring"

1 

Get-AlarmDefinition -Entity (Get-Folder -NoRecursion) -Name "Health Status Monitoring" | Set-AlarmDefinition -Enabled:$False

By using the Set-AlarmDefinition function of PowerCLI we can very easily change the status of this alarm from True to False, effectively disabling the alarm and setting us up for “teh win”.   What is even more awesome, is if you have other Alarms you’d like to disable, like License Logging Monitor and various other alarms you can simply run the same syntax changing the –Name and disable away!  Awesome, right?!

This personally saves me loads of time and not having to login to every vCenter to clear the stupid Alarm from appearing in the list.   Hope this helps you!

Free VMware Associate Certification and Training for a Limited Time! Register Today! #VCA #VMware

    Maybe you’ve heard all the rage about the new Certification Exams from VMware at the Associate Level called the VCA! (VMware Certified Associate) and maybe you haven’t! Well, guess what, You’s gonna hear about it now! :)  So a few things regarding these new Associate level certifications…

    THEY’RE FREE TO TAKE AND INCLUDE FREE TRAINING!!!

    And the test is delivered via the Web – Online from where you are!

    ###UPDATE!### – Inline in the comments Phil Wiffen points out what I had forgotten… The code is valid until at LEAST Nov 15th, so act SOON! Also you must take the exam within 48 hours of booking it (hence it expiring in 2 days).

    Yea you heard me right.  Now this won’t be free forever, but right now if you use the right formulae of success criteria (detailed inline here) you can get this for free. I’ve heard rumor this expires at the end of this year so get it done STAT! I also heard rumor it expires at the end of November, again knock it out!

    You can start out by visiting the VMware Pearson Vue site located at http://www.pearsonvue.com/vmware/ which gives you a handy dandy screen like this..

    VMware Certification Testing

    Below this little list here includes a whole bunch of links you can use to go and register for Authorization and Register for Exams.  If you read a previous blog post A Must-Read before taking your next #VMware VCP or VCAP Exam!!! it included the steps of how to go about requesting authorization to take an exam.   But I’ll mention it here, you’ll need to request authorization to take the exam before you can even register for the exam, and thus schedule the exam respectively!

This little list here not only includes a link to take you directly to the FREE training videos, but the grouping below also takes you to the individual sites for each track to Request Authorization and Register for the exams!

    Simply click "Request Authorization" for an exam – and then choose the "Register for the Exam" option!

    Then click "Schedule an Exam" after which you select the “Associate and Professional Level Exams” and you’ll need to login then!

    Associate and Professional Level Exams - VMware

    If you’ve never done an Online Pearson Vue exam you should create a web account. The process whereby you requested authorization will supply you with the Candidate ID which is required to make this setup complete! I ran into the problem whereby my account was sort of messed up and tied to another account which did not let me login. As I know that VMware Education is so good at cleaning up and merging accounts…. I opt’d to create a new account on a different email alias of mine which also created ANOTHER Candidate ID, but at least it let me register then! :)

    After logging in you should have the option to Register for a Pre-Approved exam!

    image

    WARNING! Unless you’re rocking your Chinese … Change it from the DEFAULT!

    Exam Details for the VCAD510 - VCA-DCV

    OMG ITS $120 YOU LIED TO ME! YOU SAID IT WAS FREEEEEEEEEE!!!!!!!! whoa, hold on there!

    My Order for the VCA Launch Campaign!

    MORE LIES! YOU SAID ITS FREE NOW ITS ONLY HALF PRICE!@#!@#$@#!@#  Don’t fret yet… wait until you get to the Payment Screen..

    Voucher / Promotion Code VCA13ICS for Free VCA Exam

    Enter this handy dandy code “VCA13ICS” which I’ve borrowed from my dear friend Rasmus Hedlund from his blog post VMware VCA exam experience plus FREE exam voucher

    Additional discount / voucher codes available at Free VMware VCA Certification Voucher! thanks to @FrankBrix ! Look below as well.

    Coupon Codes:

  • VCA13ICS (Expires November 15th)
  • VCA13BCN (Expires end of November)
  • VCA13GKN (Supposed to be good until Jan 31 2014)
  • VMRT6B404C7B (Expires January 31st)
  • Order Total of $0 FREE

    OMG OMG OMG ITS FREE FREE FREE! Yea. Get it while you can! For some reason mine said mine is only able to taken over the next 2 days which scares me into thinking OMG this won’t last… So get out there and register!

OMG It’s Finally here! Infinio Accelerator for NFS by @InfinioSystems goes GA!

Well it is finally here! Are you excited? You ought to be!

Who or what IS Infinio?!?

So I know what you’re thinking, WHAT exactly is this?!  I first came to know Infinio earlier this year when I saw just how awesome this solution is.  Imagine a solution using server-side caching to minimize and off-load I/O requests so only what is required is sent back to the your shared storage.   It essentially takes 8GB of idle memory on your ESXi hosts and creates a deduplicated cache in memory.   Okay, that’s a lot of jibber-jabber, what exactly does that mean?

If you’re using NFS today you can simply download and deploy the tool in minutes.  And then all of a sudden you’re ready to rock and roll!

1.  Connect to vCenter 2.  Choose Datastore3.  Validate Hosts

4.  Preview Installation

The installation is as easy as this.  And then you’re ready to go with your NFS datastore being accelerated.

I’ve talked with the engineers and creators of this product and I was excited for this when it was in Alpha and Beta.  With it being GA this is infinitely more exciting!  The coolest part is, this isn’t simply a one-off solution which will impact your operations individually.  It scales with more installations!

Your Infinio Cache scales with your installations!

Fortunately unlike most products these days, the dashboard doesn’t look like a disgusting pile of sin.  It’s pretty and provides relevant information!

The Infinio Accelerator Dashboard actually provides relevant information!

Couple of cool things associated with this release!

  • No new hardware. No reboots. No interruptions in service to install or implement.
  • Accelerates all workload types
  • Download on a 30 day trial and license when complete – The true “Try before you Buy”

This can basically turn your NFS into providing Flash-like performance accelerating whatever your backend storage happens to be.   Hey, worst case you can give it a try and see it for yourself!

For more details you can check out the Tech Field Day earlier this year where  Peter Smith Demonstrates Infinio Accelerator

In addition today with the special announcement day there will be a Live Webinar with Q/A today Nov 5 at 3PM EST.

I’ll unfortunately miss this awesome announcement webinar because… well, Afghanistan, timezones and I’ll be asleep at the 1AM or so that it’s at! :)

So check it out, be awesome, and rock rock rock!

A Must-Read before taking your next #VMware VCP or VCAP Exam!!!

YOU DID IT! You are all set to take your VMware Exam which will mean the difference of you having the certification and NOT having the certification! Who knows, this could be the change that your life has been asking for, Excited Excited Excited!!!   But wait, It’s not that simple!

What?!?!?!

This past September our good friends at VMware have instituted an “Authorization” process, whereby you need to take some steps BEFORE you can schedule!    Or semi-specifically and verbatim…

   All VMware exams require prior VMware authorization before candidates can schedule an appointment with Pearson VUE.

Candidates can get authorized by going to vmware.com/certification.  This process can take up to 15 minutes. Once authorized, candidates can schedule their exam.

Awesome, right?! I mean, or not. I know what you’re chanting NANNY STATE. NANNY STATE. Yea. That’s what I said when I was FIRST going to publish this back when it happened several many weeks ago… But time to cut through the chaff to get down to what matters!

Now when you’re ready to take an exam, you can visit the listed http://vmware.com/certification or respectively visit http://www.pearsonvue.com/vmware both of which will provide you relevant links like the following;

Request Authorization for VMware Certification Exams Request Authorization for VMware Certification Exams

It wasn’t until the past week or two where VMware actually FIXED their links to make finding the registration portion ‘possible’, so now both links take you to the appropriate place instead of only one.  Awesome!

This VMware Exam has Pre-Requisites!

When you finally find what you’re looking for, you’ll be prompted to login using your myLearn account, and then you get a list of ‘Pre-Requisite” sections to fill out.    Interesting thing to note here; while running this through in my tests I was never able to get the “Continue” button to function correctly using Chrome, but it worked in Internet Explorer… Hey, whatever it takes, right? (If you experience a similar problem of the button not working, try another browser).

However, you may also notice that SOME of the tests you want to Authorize for may not be available, receiving only a “Back” button.   We’ve historically found this due to some of the following reasons;

  • Your VCP not being recognized on your account
  • Your class not being recognized on your account
  • You took the VCP Exam and THEN took the Class, and they’re not granting you credit for it since it was done ‘after the fact’.

Irrespective of what problems you may experience, I’ve found the folks at Education to be *great* at helping out, and I have opened numerous cases (on this, and over the years for account mergers)   Just shoot a mail over to “eduoperations@vmware.com” explaining your problem and they have a 48hr SLA for response to get it resolved.   This can be a major challenge if you’re all excited to test TOMORROW and you cannot get your authorization in, so something to consider while thinking ahead!

That in essence covers the bulk of it, Pearson VUE changes due to VMware Policy LIKELY will impact you if you do not plan ahead.   So, plan ahead, get authorized and Pass Pass Pass!

Keep up the virtually good work. OMG WORST TAGLINE EVER! ;)

How to detect VMFS3 and VMFS3 Upgraded Datastores with PowerCLI; Now with more sugar!

You’re not new to Virtualization, this isn’t your first VMware rodeo, but you find yourself starting to question… OMG DO I HAVE VMFS3 DATASTORES STEATHILY HIDING IN MY SYSTEM?! I mean you do your due diligence, you check and confirm that it says VMFS5 and that it has a 1MB (Universal) block size, but yet… you’re still not sure… Hell, you might even be saying WTF? 1MB BLOCK SIZES? WTFS?!  Well, hopefully this helps break through some of the barriers to not only identify whether you have VMFS3 datastores period, whether they’re actually stealthily hiding!

What’s the big deal with upgrading VMFS3 to VMFS5?

Yea, you read the VMware documentation like this; How VMFS5 Differs from VMFS3 – Basically by reading that you come to the conclusion of ITS EASY, JUST DO IT, YAY!  But to quote Jason Corbett @NGTJason “migrate > upgrade”

Why exactly though? I mean if you read what Cormac Hogan @VMwareStorage wrote so long ago vSphere 5.0 Storage Features Part 1 – VMFS-5 you might be pressured to believe that it’s all good, caveats aside that your VMFS5 upgraded datastores will rock out just like VMFS3, but take a gander at Jason Boche @JasonBoche VMFS-5 VMFS-3, What’s the Deal?

Differences between upgraded and newly created VMFS-5 datastores:

VMFS-5 upgraded from VMFS-3 continues to use the previous file block size which may be larger than the unified 1MB file block size. Copy operations between datastores with different block sizes won’t be able to leverage VAAI.  This is the primary reason I would recommend the creation of new VMFS-5 datastores and migrating virtual machines to new VMFS-5 datastores rather than performing in place upgrades of VMFS-3 datastores.
VMFS-5 upgraded from VMFS-3 continues to use 64KB sub-blocks and not new 8K sub-blocks.
VMFS-5 upgraded from VMFS-3 continues to have a file limit of 30,720 rather than the new file limit of > 100,000 for newly created VMFS-5.
VMFS-5 upgraded from VMFS-3 continues to use MBR (Master Boot Record) partition type; when the VMFS-5 volume is grown above 2TB, it automatically switches from MBR to GPT (GUID Partition Table) without impact to the running VMs.
VMFS-5 upgraded from VMFS-3 will continue to have a partition starting on sector 128; newly created VMFS-5 partitions start at sector 2,048.

I THINK I HAVE VMFS3 VOLUMES HOW DO I TELL, OMG WHAT IS THAT BURNING SENSATION

Hey, calm down, calm down… I think we can solve this problem pretty easily! And if the burning sensation continues, get that checked out!

I don’t know about you, you might have 1 vCenter, 3 Servers and a handful of Datastores. I have thousands… of EACH, so I needed something to do my scans and checks at scale with PowerCLI because I’m a baller, and apparently I pull that off rather well. :)

Methods of detecting whether you have VMFS3, VMFS3 upgraded to VMFS5 or otherwise mismatched sets..

  • Block Size is greater than 1MB
  • Partition type is msdos instead of gpt (*Detected by checking whether the StartSector is 128 instead of 2048)
  • And of course, your VMFS version is VMFS3 or 3.46

But wait, didn’t you say above that partition types will change from MSDOS to GPT if they’re expanded? Doesn’t that make tracking harder? Yes.

Let’s get our PowerCLI on so we can crack this nut!

Get-Datastore | Get-View | Select-Object Name,@{N="VMFS version";E={$_.Info.Vmfs.Version}},@{N="BlocksizeMB";E={$_.Info.Vmfs.BlockSizeMB}}
// To check VMFS version & block sizes – Really useful to just check in general that your version is 5.54 and your blocksize is 1MB though if you VMFS3->5 In-place upgrade when VMFS3 was 1MB, this won’t reveal itself to you

Get-Datastore | Get-View | Where {$_.Info.Vmfs.Version –eq “3.46”} | Where {$_.Info.Vmfs.BlockSizeMB -eq "1"} | Select-Object Name,@{N="VMFS version";E={$_.Info.Vmfs.Version}},@{N="BlocksizeMB";E={$_.Info.Vmfs.BlockSizeMB}}
// To Check VMFS Version and Block Sizes but only listing mismatches you specify  – so if you want to see if you specifically have any 3.46 VMFS and various block sizes

Busting out the mad $esxcli syntax!

This is where we start to get real. The following examples are simple ‘one-liners’ which are cute and all if you’re checking one host, but I also give you one which will scan EVERYTHING so you can just sit back and bask in the glow of figuring out WTF IS GOING ON WITH THIS BURNING, HELP HELP HELP!

$esxcli.storage.core.device.partition.list() | Select Device, StartSector
// Dumps all Offsets – This can be useful if you want to see a lot of data… but less so if you’re looking for something specific…

$esxcli.storage.core.device.partition.list() | group-Object -Property Device | Where {$_.StartSector –eq “128”} | Select Device, StartSector
// Dumps only offsets which "equal" a startsector, in this case 128 – Now we’re cooking with oil, a StartSector of 128 leans on a datastore being VMFS3 or VMFS5 which had been upgraded from VMFS3

$esxcli.storage.core.device.partition.list() | Where {$_.StartSector -eq "128"} | Select Device, StartSector
// This will dump all of your partitions which have a starting offset of 128, same as above but shorter

Script me baby one more time!

OMG YOU JUST MADE A HORRIBLY DATED REFERENCE TO BRITNEY SPEARS. For what its worth, I believe she did some scripting in her days…   The scenarios below will just ‘do it’ based upon whatever hosts you connected to with Connect-VIServer, obviously the difference being ‘comments’ or not.

foreach ($myHost in get-VMHost)
#This tells the system to do a run the command against all "VMHosts" that you have defined as part of your Connect-VIServer
{
    Write-Host ‘$myHost = ‘ $myHost
    #Display the ESXi Host that it is operating against, helps if you’re scanning multiple vCenters
    $esxcli = Get-EsxCli -VMHost $myHost
    #This sets the syntax and the context for the Get-EsxCli command to operate, a requirement for running $esxcli.Commands
    $esxcli.storage.core.device.partition.list() |
    #Use Get-EsxCli to list the core storage devices
    Where {$_.StartSector -eq "128"} |
    #This specifies we’re only looking for partitions which have a StartSector of 128, which could mean either VMFS3 or VMFS3 upgraded to VMFS5 Datastores
    Select Device, StartSector
    #When all is said and done, it’s nice to see it in a ‘pretty’ format to see what work you need to do!
}

Without Comments

foreach ($myHost in get-VMHost)
{
    Write-Host ‘$myHost = ‘ $myHost
    $esxcli = Get-EsxCli -VMHost $myHost
    $esxcli.storage.core.device.partition.list() |
    Where {$_.StartSector -eq "128"} |
    Select Device, StartSector
}

Now technically you could use partedUtil but that’s a pain in the ass.  – But for the sake of continuity here is the syntax/results!

~ # partedUtil getptbl "/vmfs/devices/disks/naa.60a98000646e4f4b475a6a4975422d66"
msdos
261083 255 63 4194304000
1 128 4194298394 251 0
~ # partedUtil getptbl "/vmfs/devices/disks/naa.60a98000646e4f4b475a70516f34416f"
gpt
534698 255 63 8589934592
1 2048 8589934558 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
~ #

So in case you’re wondering if the script is working properly you should end up with results similar to this below;

Results:
$myHost =  103.domain.local

Device                                                      StartSector
——                                                      ———–
naa.60a98000323764703424434e6246775a                        128
$myHost =  102.domain.local
naa.60a98000323764703424434e6246775a                        128
$myHost =  101.domain.local
naa.60a98000323764703424434e6246775a                        128
$myHost =  037.domain.local

And that is basically all it takes! This hopefully should give you the fuel you need to scan your environment with minimal effort and identify any VMFS3 datastores so you can clean that stuff up and MIGRATE!  I discovered a bunch of them which aren’t so kind, and what ensues is massive migrations!

Good luck out there! and if you can find some good way to hack esxcli to ALSO have it then correlate that data to what the datastore name is… I FAILED :)