DAMNIT! What the hell is this BDEDRIVE It’s keeping me from expanding my C:!

So there you are, you notice that your VM is running out of disk space on the C: so you take the obvious action of adding additional disk space to your VM.

OMFG WHAT THE HELL IS THIS I CAN’T EXPAND THE DRIVE BECAUSE OF A BDEDRIVE

OMG WTF IS A BDEDRIVE

Yea, that’s right. The stupid BDEDrive which is created as part of the MDT.   You got it solid that this is the clear reason you’re prevented from actually expanding the space on disk!   So what do you do?   Rather than lie to you as I walk through the steps, instead I’d like to refer you to this awesome blog post by Joy Banerjee who does all of the work I’d normally put into a blog post!

I know this happens enough that I wanted to share the link to that blog post because the answer is at your finger tips! 

So be sure to hit up Joy’s blog post and BOOM your problems will be solved! :) <3

http://aikitsupport.com/bde-drive-removal/

One full year in Afghanistan, oh where the time goes…

Today marks one full year since I’ve begun this journey into the Warzone and oh the many things I’ve encountered in my time here…

Before I go into some of these details I’d like to refer to some of the past posts on this, just for consolidation effort! :)

 

So one full year in a war-zone that must be pretty crazy, right? Yes. Yes it is.  Over the course of this time I’ve gone through multiple military transitions (in and out) numerous base closures and as time has gone on and we prepare for “draw-down” a significant decrease in standard life services.   That may not sound like much but considering that we were already basically camping, and things have gone down from that point…. Yea, it’s been interesting. :)

Do I enjoy what I am doing? Absolutely.  I personally have a significant impact on the direction of things here and am able to take my decades of experience and put them to good use to equally ensure that our tax dollars aren’t fraudulently wasted, at least not on my watch!

In the short little time I’ve been here my responsibilities as Deputy Technical Director and Storage and Virtualization Lead for all of the efforts here in Afghanistan have been very rewarding.   I unfortunately cannot go into too many details without compromising aspects of the mission but let me just say… This has been an absolutely awesome experience the likes of which are difficult to rival.   The experience itself is not nearly as rewarding as knowing that the knowledge and skills I brought into this theater from years of work in the trenches and leading high performing teams has scaled to make this a case study for success which can be replicated immensely..

Some things which you can only truly experience while living in a warzone (or in some cases, Chicago…)

  • Taking a Helicopter to get to work, with a high powered machine gun out the side…
  • The incessant and regular explosions, whether controlled or by insurgents.
  • [REDACTED REDACTED REDACTED REDACTED] – Oh how I’d love to be able to share that…
  • And more… :)

But this story is not over.   At this point I’m pretty sure I’ll fight this battle out a little longer to ensure everything is ready and in place for the executed draw down of American troops scheduled for 31DEC2014 – After which point I’m out of here and onto the next story where I can continue to do absolutely awesome things.    I get hit up regularly and I respect and appreciate that.   I’ll likely be looking to start that next story in the Nov/Dec to January time frame so if you’re looking feel free to hit me up as we get closer!

As always I’ll continue to update you in the form of tweets, facebook updates, Instagram, Tumblr and more!

Be safe, and on this wonderful Valentines Day <3 :)

Are you #vExpert 2014 material?! Nominations open until March 6th 2014!!!

On the one hand it is that time of the year again. On the other hand OMG the changes to the #vExpert Program this year are well worth mentioning!!!

vexpertbutton2

All of the scoop and the details can be found here at the official VMware Blog; vExpert 2014 applications are open

And not only is the program proceeding as it had in the past, with the various details I’ve shared in a previous blog post; The Non-definitive guide to the VMware vExpert Program, Tips, Tricks, How to become a vExpert!   But also taking a page out of the Microsoft MVP Programs book, the vExpert program has changed to support quarterly nominations instead of yearly!

The second change is quarterly nominations into the 2014 vExpert program. We will leave the application open year round and at the end of each quarter we will begin the voting process for new vExperts from the previous quarter. So even if you are not picked to become a vExpert 2014 right away, we will allow for quarterly voting and nominations.

Pretty awesome, right?!?

So what does this mean?!? The first question you have to ask yourself is; Are you vExpert material.  Also along the same token you have to ask “Do I know someone who is vExpert material and I’d like to nominate”   The vExpert Program is still broken down into paths of Evangelist, Customer and Partner so the options are multiple and valuable.   When it comes to providing feedback and being supportive of the community refer to my guide mentioned above for ways to contribute and just continue being awesome!

For those of you applying to be a vExpert this year, good luck and best to you!

VMware vExpert 2014

Using PowerCLI to dump your permission structure in vCenter

So there I was pondering the question, “How can I pull the details of the Permission tab in vCenter without logging into all of my damn vCenters!”

I tossed around a few ideas of commands which didn’t give me what I wanted. I searched and found some really awesome scripts by @LucD22 and others which were awesome if I wanted to view the rights assigned to roles, assign rights to those roles, and import them respectively.  But my objective was far more simpler than that.   I wanted a very easy way to dump what Role is tied to which User accounts across my hundreds of vCenters in a simple fashion.

Lo and behold, here is the base result!

Get-VIPermission | Select Role, Principal, Entity, UID

Wow that was easy! but wait! WTF WHY DOES UID KEEP TRUNCATING! Hey, calm down, calm down… I have a fix for that. ;)   Also in that same fix, I really cared specifically who was granted the Administrative type roles, less so caring about Virtual Machine User, or Power User.  Thus the following two modifications took care of that.

Get-VIPermission | Where {$_.Role –eq “Admin”} | Select Role, Principal, Entity, UID | Export-CSV “C:\Temp\Rights.csv”

And there it went! Dumping all of the data I wanted into a CSV file which I could sort and manipulate unflustered and unfettered by the results!

What was really useful about this, is unlike just looking at the top level permissions tab, this will also drill down into sub-objects whereby I was able to find accts which were granted permission on a sub-part!   Hopefully this helps you as much as it helped me in discovering and respectively writing this :)

I’ll probably come back and revisit this script on a quarterly basis making sure no-one went rogue in the meantime. You should too. :)

Tuning vCenter Operations Manager – Going from OMG THE SKY IS FALLING to Relevant Alerts

If you’re new to vCenter Operations Manager or vCOPS as it is called (And that’s vCOPS and not VC Ops even though VMware wants you to believe that is what it is called…. ;))   You may notice that once your environment starts collecting data you’ll be getting alerted to everything under the sun, and thensome!  And let me tell you, that is AWESOME! Please do tell me about everything going on as that is beneficial and useful.   As the days, weeks and months drone on though, you really could care less about being alerted that your thick-provisioned Datastore which is maxed out by configuration is full. WE GET IT. IT’S FULL. STOP TELLING ME ABOUT IT!   Or that your Security Scanning server (Pick Retina, Nessus or your favorite choice) uses >100% CPU when the process is running. Totally get it. It’s not undersized, it’s just not USED except for when it is running, throwing more resources won’t make it faster or better.

HOW DO i STOP IRRELEVANT ERRORS FROM ANNOYING THE HELL OUT OF ME?!?!

That’s what this is all about! I’ve taken an environment which would normally have anywhere from 500-1000 “Warnings, Errors, Alerts” on a daily basis, down to where I’m really only seeing what actually MATTERS.  Ignoring a majority of the ‘blah crap’ to focus on active alerts as they’re happening.  For what its worth, I’d always have the same alerts appear, but the important anomalies were getting lost under the weight of the useless.

To start things off, login to vCOPS and click on the Configuration button  Open Configuration

That seems simple enough, right? Then you’ll want to go in and modify your Default Policy by simply clicking on the blue of “Default Policy”Modify Default Settings 

Now this is where we start getting into the meat of things.   You may notice I’ve made a series of modifications.  These are the Infrastructure Badge thresholds which apply to the Infrastructure and not specific to VMs or Groups of VMs.   Workload level while cute and all tends to annoy me more than not in my system as you can see I had originally kept increasing the threshold higher and higher (80,90,95) eventually just clicking on the square which “turns off” that particular alert.   Next the Time Level function keeps tracking Timing which I’ve found to be less useful on a day-to-day alerting basis.   Long-term the data is still collected and I can report against it, so I leverage the reporting function as needed.    When it comes to Capacity Levels, this applies to Capacity available in the Infrastructure (Datastores, etc) which frankly I keep an eye on personally.   If you find yourself thin provisioning by default then keeping a feature like this activated is likely important to you.   I have over 100 datacenters and ensure they’re not over provisioned, because being told 100+ datacenters are “full” or “near full” is just useless and annoying.   Then when it comes down to Waste Level and Density Level, I keep a tight hand on how that is handled within the Infrastructure so I also have it turned off.   Again, judge your environment based upon your needs.  You can always turn functions back on or tune them.

Infrastructure Badge Thresholds

VM Badge Thresholds are a little more important than Infrastructure in this regard.   I like to be alerted that my Workload is high but only to the point where it is basically maxed out.   Adjust accordingly based upon knowing your environments use and function.   If you have dozens of VMs which regularly butte up against this ceiling as part of their function you may find yourself tuning this up higher as well.    vCOPs likes to predict the timing of things and be all like OMG YOUR VM IS GOING TO RUN OUT OF CPU or something. Yea. Thanks for the offer, but I’ll run a report for Undersized VMs and know that a majority of VMs are oversized to start with.   So I turned this off. :)    You’ll note that Capacity Level is configured and activated, because here I DO want to know if the VMs hard disk is going to run out of disk space (or is out).   That’ll impact things so I leave that on.   Same as above for Waste and Density.

VM Badge Thresholds

I’ll be honest. I don’t use Groupings here because things are more isolated than they are ‘paired’ and I don’t need this calling out any false positives.   Consider that for your environment.  If you heavily use Grouping, awesome, definitely take advantage of this!

Groups Badge Thresholds

I’m not going to dive into the details of these next few tabs and instead will show you what MY settings are, but for the most part they’re less important than the first few tabs and the last few tabs.

Capacity and Time Remaining Usable Capacity Usage Calculation Powered off and Idle VMs Oversized and Undersized VMs Underuse and Stress

This is really where the rubber meets the road with the Alerts.   All of the configuration we made above while important comes into stride with what you have configured for Alerts.  You may notice that I monitor Workload on Infr and VMs but not Anomalies.   Anomalies are cute and insightful… and very important if you have applications which are anomalous in nature.   If you don’t though, EVERYTHING will report anomalies to the point of being annoying and useless.  What that means is, when you’re alerted on anomalies, you’ll spend more time chasing false positives than actual problems.   Yea you may get lucky… but if you understand your environment enough, you’ll get annoyed and turn this off just as I have. :)    Time remaining and Capacity remaining while deactivated on my Infrastructure is valid on my VMs (I’ll be honest…. I’m not sure why I have Time Remaining even on for VMs, but Capacity Remaining will identify if I’m running out of VMDK Harddisk space, so yay!)

While we did ignore Anomalies, I do not ignore Stress, as that’s an actual active task going on at the time of true stress on the system.  That’s important and lets you know something is happening, not simply something is high or low from it’s established pattern as an anomaly would detect.  And lastly… Waste and Density… Just don’t matter to me when I have this architected specifically for my needs.  Clearing that along got rid of a large chunk of erroneous alerts.

Alerts 

And lastly the Forecast and Trends function… Okay, seriously, there’s no reason this should be highlighted any more than just merely reviewed.  See how your environment compares but there’s nothing too important to call out here, but I since it was the ‘6th’ tab, I couldn’t omit it. :)

Forecast and Trends

Nothing beats a good understanding, architecture and design

vCOPS as we all know is a tool, and how you use that tool or respectively let it use you is important.   When getting started with vCOPS drink from the firehose, tune your things so you see everything, even more than everything and scour and look at every single tab, function, report and alert!

Then, once you’ve tuned your environment down and understand your limits start to scale it back so it becomes useful.   Hopefully some of the settings included here help you.  I literally went from thousands, THOUSANDS of alerts on my many hundreds of Datacenters, vCenters and beyond and on a good day can have –0- messages warning me.   Yea I said it. –0- ! ! !.    But at this point, even on a ‘bad day’ I’m looking at ~25 or so alerts at a maximum when one or more of my datacenters are experiencing some kind of issue.

Give it a try, tune tune tune and enjoy!