We help IT Professionals succeed at work.

Orphaned VMDK..

Druva Simha Kolli
on
337 Views
Last Modified: 2014-09-01
Hello,

I have seen the attached report from a colleague of mine saying that we have some orphaned vmdk's. I have a couple of questions

1. What is an orphaned vmdk?
2. How can we know that these are orphaned?
3. Does it mean that we can delete them?
4. I see that in the attachment I see that the so called orphaned vmdk's have been modified recently.
5. What is the best practice to not have orphaned VM's?

Thanks
Dhruva s Kolli
Orphaned-VMDK.xlsx
Comment
Watch Question

Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
1. What is an orphaned vmdk?

A vmdk which is no longer associated with a virtual machine, e.g. connected to a VM

2. How can we know that these are orphaned?

They are no longer connected to a VM. You could check and compare all your VMs, but the easiest way is to use PowerShell.

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/

3. Does it mean that we can delete them?

If not in use, yes you can delete them to recover datastore space, but Archive first, just in case you need them later! Once deleted, you cannot easily recover them!

4. I see that in the attachment I see that the so called orphaned vmdk's have been modified recently.

If it's been modified, may it's in use and not orhpaned!

5. What is the best practice to not have orphaned VM's?

Management, in usual circumstances, they do not become orphaned.
Druva Simha KolliSr. IT Systems Analyst

Author

Commented:
Thanks for the reply. What command will show me the summary of orphaned vmdk's
VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.