ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to find orphaned Virtual disks in your ESX server environement

By Vladan SEGET | Last Updated: October 9, 2017

Shares

Update: There is an excellent freeware application available with many different other cool options to look at your virtual infrastructure including how-to find orphaned virtual disks. The RVTools freeware is cool and together with many free software tools which can be found on my Free tools page. How-to find orphaned Virtual disks in your ESX server environement with an RVTools is today's post.

The RVTools is also capable to find old snapshots, but also VMs that have CD ROM or iso image connected. Many pieces of information about your virtual infrastructure, vSwitches, HBAs, hosts, VMs, VMware tools etc…

What's new in the latest release of RVtools?

  • On vInfo tabpage new field: Resource pool
  • On vInfo tabpage new field: Consolidation needed.
  • On vCPU tabpage new field: Number of cores per socket
  • New tabpage with resource pool information
  • On vNetwork tabpage new column: Switch name
  • On vNetwork tabpage new column: Starts Connected
  • On vTools tabpage new column: required version
  • On vHost tabpage new columns: custom fields

RVTools is getting updated on regular basis. It ist a must-have utility of every IT admin which manages VMware environment. It works for VMware ESXi Free (or paid) versions. You can connect directly to your vCenter server (or vCSA) or directly to your ESXi host.

RVtools - cool freeware for VMware Infrastructures and ESXi hosts

There is a time when you need to check for a space remaining on your SAN or shared storage. Why? Because if you run out of space you will not be able to Vmotion for example because vMotion need some space to run. Orphaned VMDK files are actually virtual hard disks which are not connected to some virtual machine.

They are left there and they are taking valuable disk space. Sometimes people when removing the virtual machine from the inventory they simply forget to delete the vmdk file afterwards. So how-to simply check for an orphaned VMDK files.

I found 2 ways check the  infra for orphaned VMDK files:

1. There is a PowerShell script which can do the work for you. This script asks the virtual center what the disk are of each VM and puts this into an array. After this, it reads all files on all datastores. If the file is a vmdk file, it will check whether this file is in the array. If it's not, there you have an orphaned vmdk which can be safely deleted. The output of the script is written to a file. You can get the script here.

2. You can directly type at the console this command and you'll see the response on the screen.
Here is the command: find -iname

What's my favorite? Possibly “Zombie VMDKs”…

Orpaned VMDK virtual disks

Update: As I said, the tool is evolving in every release. Here is an overview of new functions which are now part of the tool.

Version 3.9.5 (April, 2017)

  • Bug fix: Unhandled System.Security.SecurityException in CLI
  • Bug fix: Export vLicence tabpage not working in CLI
  • Bug fix: Export from CLI creates tabpage.xls.xlsx files. Now changed to tabpage.xlsx files
  • Bug fix: dvSwitch tab page has two ‘Name' fields. One is renamed now

Version 3.9.3 (March, 2017)

  • Bug fix: unhandled exception in decrypt function solved

Version 3.9.2 (February, 2017)

  • Migrated RVTools to use .NET Framework version 4
  • Migrated RVTools to use NPOI 2.1.3.1
  • Support for vSphere 6.5
  • Improved logon performance
  • RVTools will no longer write messages to the Windows eventlog
  • All VM related tab pages now have a new column: OS according to the VMware Tools
  • All tab pages now have a new column: VI SDK Server
  • All tab pages column vCenter UUID renamed to VI SDK UUID
  • vInfo tab page: new column VI SDK API version
  • Export to Excel will now use xlsx format
  • Export to Excel all columns are now auto sized
  • Excel worksheet names will use same name as the tab page names
  • Annotations fields can now be excluded! See preference window
  • vPartition tab page new column: Consumed MB
  • vHealth _replica directories are excluded for zombie checks
  • *_sesparse.vmdk files are excluded for zombie checks
  • New tab page with license information
  • New PasswordEncryption application added with which you can encrypt your password
  • RVTools command line interface accepts now encrypted passwords
  • Bug fix: URL Link to online version info issue solved.

You can easily export as csv file. In fact you can export the active TAB, or All tabs. Usually it is preferable to export just what you need but there might be situations, during audits, where you need to gather as much as informations, as possible, about the environment you're working with. As you have only limited time when On-site, you'll probbably “explore” the exported file once you get to your office.

More from ESX Virtualization:

  • Free Tools
  • What is VMware Enhanced vMotion Compatibility (EVC)
  • What is VMware CPU Ready?
  • What is VMware Instant Clone Technology?
  • VMware Virtual Hardware Performance Optimization Tips
  • What is VMware Snapshot?
  • What is VMware vMotion?

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
3.7/5 - (3 votes)

| Filed Under: Server Virtualization Tagged With: ESXi, orphaned VMDK

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. techvet says

    October 7, 2016 at 7:25 am

    If one goes to https://communities.vmware.com/docs/DOC-6960, you will see some negative comments about it. Buyer beware.

    RVTools is useful but I wish it would post the size of the VMDK file in question. I have only ever seen this in old versions of VMTurbo.

    • Ajay Bhardwaj says

      April 19, 2020 at 6:10 am

      Is there a way to find the size of all zombie vmdk files?

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in