Hi All,
I have 110 LUN's in my VC and a huge list of Virtual Machine names. All these VM's are present in these 110 LUN's and if I start checking VM's one by one, it will take me months to complete.
I want to find out which VM is present in which LUN, is there any quick solution to find out that?
Thank you,
Finally, something like RVTools could be useful
Hello virtualdive
You can connect by SSH to the ESX server and use the command "find" (find -h).
If you prefer a more visual method, you can go to Inventory --> Datastores in the vSphere client and see a list of VMs per datastore by selecting the LUN and clicking the Virtual Machines tab.
Thanks Maximenu,
This will only tell the VM on the host, but not on the LUN. And also, if there is a big list of ESX hosts then again it does not save time at all.
Thanks
Finally, something like RVTools could be useful
HI Bshubinsky,
I was doing that anyways and also if no solution comes out then I will have to continue that. This is only helpful when there are 10-20 LUN's not when there are 110 LUN's. If I keep checking every single LUN for the virtual machine then it will take lot of time I guess.
Thanks
How about using vSphere PowerCLI, you dont have to be an expert in scripting to use this tool. All you have to do is use Get-VM | Get-Datastore -name <nameofdatastore> commandlets. For more information visit http://www.vmware.com/support/developer/PowerCLI/index.html
Regards,
Arun
Thanks Troy & Arun,
Both the solutions seems to be worked out.
Thanks
Try following options, hope it helps
1) vmware-cmd -l on the host
2) vim-cmd hostsvc/datastore/listvm <datastorename> and