Uncategorized

Getting the last powered on time of a VM

Posted on

I have been going through our VMware infrastructure and cleaning up the storage and found a large number of VMs that were powered off. I wanted to know if any activity had happened on them recently to see if they were still valid. A little googling and I found the below script that will look […]

Uncategorized

Create a VMFS datastore via powershell

Posted on

Due to limitations in ESX4, I recently needed to create several 2TB VMFS volumes. I can easily automate this on the SAN configuration, but creating the VMFS datastores has always been a manual process. I came across sample code at http://snipplr.com/view.php?codeview&id=48048 that showed how to perform this via powershell. I modified it a bit to work in […]

Uncategorized

Setting VMware Reservations and Limits via PowerShell

Posted on

I am looking into the possibility of implementing tiering and limiting within my VM infrastructure. Nothing special is required, but I want to make sure that a development system doesn’t run rampant and impact production. I came up with this script to adjust the CPU/RAM reservations/limits based on the number of CPUs and amount of […]

Uncategorized

Removing disk from a Celerra

Posted on

This isn’t a task that is often done, and normally not suggested to be done without EMC support. I have done this a few times, but only when the system is entirely cleared and there is no possibility of breaking things. Step 1: Remove all mounts and file systems in the Celerra web UIThis is […]