Hi All,
We have a few VM which uses multiple small VMDKs to make up one file system.
For example, this is the disk layout for one of our VM.
PS > $vm.ExtensionData.Layout.Disk
Key DiskFile
--- --------
2000 {[ca02sanp10-sata-crypt08] ca02webp22/ca02webp22_6.vmdk}
2001 {[ca02sanp10-sata-crypt08] ca02webp22/ca02webp22_1.vmdk}
2002 {[ca02sanp10-sata-crypt08] ca02webp22/ca02webp22_2.vmdk}
2003 {[ca02sanp10-sata-crypt09] ca02webp22/ca02webp22_3.vmdk}
2004 {[ca02sanp10-sata-crypt08] ca02webp22/ca02webp22_4.vmdk}
2005 {[ca02sanp10-sata-crypt09] ca02webp22/ca02webp22.vmdk}
2006 {[ca02sanp10-sata-crypt09] ca02webp22/ca02webp22_7.vmdk}
2008 {[ca02sanp10-sata-crypt11] ca02webp22/ca02webp22.vmdk}
Here are the file systems on the VM:
PS > $vm.guest.disks
CapacityGB FreeSpaceGB Path
---------- ----------- ----
3.812 2.792 /
0.117 0.044 /boot
3.812 3.043 /home
1.445 1.442 /tmp
3.812 0.829 /usr
9.718 5.213 /var
4,802.861 2,189.231 /data01
7,219.176 649.892 /data01/archiveold
10,902.010 4,332.745 /data01/archive
Using info from VM guest OS and vCenter, we know that /data01/archiveold is made up of ca02webp22/ca02webp22_3.vmdk, ca02webp22/ca02webp22_4.vmdk, ca02webp22/ca02webp22_6.vmdk.
Is there a way in powercli to find that out?
I would like to script this and collect all VMs which has multiple VMDKs for one single file system.
Thanks,
Andrew