Orphaned VMDK..

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
Druva Simha KolliSr. IT Systems AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
Druva Simha KolliSr. IT Systems AnalystAuthor Commented:
Thanks for the reply. What command will show me the summary of orphaned vmdk's
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
There is no command, you need to use scripts, and these scripts are included in the

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Virtualization

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.