here is a script i put together to loop through the RVTools result and mount all the suspect VMDKs
Tag: VMWare
VCSA restore from backup
In this post I will detail the steps required to restore a VCSA from a file level backup. Hopefully this will be a post no one will ever need. But if you do find your self in a situation that requires a restore from backup, then I hope this post helps. This is a list…
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…
vCloud tenant environment setup.
This is a series of posts detailing how to set up a very simple tenant organisation with a single vApp on an internal network, behind an Edge gateway. I will build each post on the list so over time this series will be the complete documentation on how to build and manage your vCloud tenant…
Report VM reconfigurations
One this that has always bugged me with vCenter UIs is seeing a reconfigure VM task but not being able to tell what was changed. Some times in an investigation this can be very important. While looking at Event objects one day I discovered an attribute called configchanges on a reconfigured event object. In there…
VAMI password has expired
Have you ever tried to log on to the VMware vCenter Server Appliance and got a “Password Expired” error? I have. Too many times to count (4). So here are the steps to fix it. Log in to vCenter Open the console of the VCSA VM Log in with the expired password Goto Troubleshooting Mode…
Find VMs restarted by HA
Administer VMWare long enough and you will eventually lose a host. If you are using HA you may not notice until the phones start ringing some time later. At this point all the VMs are back on line on different hosts. When Problem management/bosses get involved you will normally be asked “what VMs restarted?”here is…
Find and remove connected CD drives using PowerCLi
If you work in an environment where no one remembers to disconnect their ISO images when done then this script is for you. This script will report each VM with a connected CD drive and its ISO path, to a CSV fileAlso once a specified number of days have passed (assuming this script is run…
Getting and Setting the Scratch location
The scratch partition on an ESXi host stores log information and will be set to the RAM drive by default. This means that any information written there will not survive a reboot, or could interfere with the stability of the host in low memory situations. Getting and setting the scratch location is quite easy with…
VM disk audit script
This script scans all VMs in a vCenter and reports the location of each hard drive. The information collected for each drive is as follows: VM, Thick/Thin, file path, datastore, capacity, size on disk, Number of snapshots, total size of snapshots.