Hi,
I moved a VM from one host to another and also choosed to make the disk thin instead of thick.
I run the sdelete command on the Windows server and then vmkfstools -K to punch out zeros.
Now in the datastore browser the size is 40GB but when i list it on the ESXi shell it shows as 160GB.
How big is it in reality?
Datastore browser in vCenter
ls in ESXi shell
40 GBcrap
the ESXi shell is crap and don't support the "-s" (sprase) option other than a Linux on as exmaple a NFS server hosting thin provisioned disks - oh an beware using the "Mv" command to move a thin provisioned disk between datastores - you end with a full-sized and probably a full filesystem
look at the first column (CentOS7)
[root@nfs:/nfs/z-recovery]$ /bin/ls -l -h -s
total 236G
0 -rw------- 1 vcenter vcenter 112M Feb 23 15:55 vmx-z-recovery-4010527134-1.vswp
74G -rw------- 1 vcenter vcenter 256G Feb 23 16:35 z-recovery_1-flat.vmdk
4.0K -rw------- 1 vcenter vcenter 502 Feb 23 15:56 z-recovery_1.vmdk
74G -rw------- 1 vcenter vcenter 256G Feb 23 16:21 z-recovery_2-flat.vmdk
4.0K -rw------- 1 vcenter vcenter 502 Feb 23 15:56 z-recovery_2.vmdk
74G -rw------- 1 vcenter vcenter 256G Feb 23 16:21 z-recovery_3-flat.vmdk
4.0K -rw------- 1 vcenter vcenter 502 Feb 23 15:56 z-recovery_3.vmdk
0 -rw------- 1 vcenter vcenter 5.0G Feb 23 15:55 z-recovery-ef0bc99e.vswp
16G -rw------- 1 vcenter vcenter 200G Feb 23 16:35 z-recovery-flat.vmdk
12K -rw------- 1 vcenter vcenter 8.5K Feb 23 16:35 z-recovery.nvram
4.0K -rw------- 1 vcenter vcenter 523 Feb 23 15:56 z-recovery.vmdk
0 -rw-r--r-- 1 vcenter vcenter 0 Feb 16 05:20 z-recovery.vmsd
8.0K -rwxr-xr-x 1 vcenter vcenter 4.7K Feb 23 16:04 z-recovery.vmx
4.0K -rw-r--r-- 1 vcenter vcenter 3.3K Feb 23 16:17 z-recovery.vmxf
0 -rw------- 1 vcenter vcenter 0 Feb 23 15:55 z-recovery.vmx.lck
Aha.. I tried that ls -l -h -s and the output is this,
39883776 -rw------- 1 root root 160.0G Feb 23 16:00
So I guess the first row there is in kb, so the actual size on the disk is 40GB? :smileygrin: