here is a script i put together to loop through the RVTools result and mount all the suspect VMDKs
Category: PowerCLi
Mapping VMs to Aggregates
Recently I was in a situation where an aggregate in a multi HA pair cluster was low on space. While working to avert the impending disaster I was asked by an incident manager what VMs are on the aggregate that is low on space. Now there where alot of volumes/LUNs on that aggregate. Stopping to…
VM disk info script
Recently I was trouble shooting a Zerto issue that occurred due to a storage “blip”. Some Zerto Z-VRAHs had lost disks and many VPGs where in an error state. One of the shadow Z-VRAs had lost its 4 “OS” disks. These disks are copied from the ZVM and are device 0 on SCSI busses 0-3….
VCSA Cert checking script
Over the past year I have seen quite a few STS certs expire in production environments. I have been meaning to write something to scan a VCSA and report back the expiry dates of all the certs. This has posed a problem because I have to use SSH and one command needs to follow another….
ESXi host config backup
If you look after ESXi hosts that are installed to SD cards then you will know the constant pain of replacing failed cards. You may know the pain of losing both cards in this process and having to reinstall from scratch. ESXi hosts are not the hardest thing to rebuild but for me. its a…
Very fast orphan finder
Some thing every VMWare admin will end up doing at some point is orpahen file hunting. That fun task of hunting down unused VM disks hopefully before your datastore is out of space. Working for a cloud provider, wasted space is always a problem and RVTools has been my tool of choice for years. RVTools…
VMWare tasks
Some thing I always send a lot of time doing is looking for old tasks in vCenter. When using the web client or even Powershell you get a list of active tasks and some old ones before they disappear. You can go back through the Event list but sometimes you need to see the tasks….
VM clone script
This is a VM clone/”backup” script that I use in my home lab. I schedule this script to make a clone of important VMs (works with vCenter) and clones them to another datastore. Obveusly this is not a proper backup but if I make a config change or lose a datastore then this will (and…
Snapshot Deletion script
This is a script I wrote to delete snapshots over a certian age wth an override. The override is in the name of the snapshot, so the snapshot can be deleted after x days or after a date. If the snapshot is named “my snapshot _ DeleteAfter60days” the script will look for “DeleteAfter” or “DA”…
Manual unMap
This is a script I put together to manually run the unmap to all shared iSCSI datastores from all hosts in a vCenter. After doing this your SAN should report the correct block usage ie more space! With VMFS 6 this is not really needed but there may be times when you need to know…