Home » Categories » Multiple Categories | ||||
Reclaiming disk space from thin provisioned VMDK files on ESXi |
||||
Article Number: 106 | Rating: Unrated | Last Updated: Sun, Feb 27, 2022 at 4:11 PM
|
||||
Step 1: Delete the blocks on the Guest OSWindows Operating System
Note: SDelete -z will cause the guest OS to use up 100% of the available space disk during this process while zeroing free space. This will lead to a temporary increase in used space on the datastore.
sdelete.exe -z drive_letter:
Note: Replace [drive:] with the target disk or partition. Note that when you have multiple partitions on a single virtual disk, you need to do this on all partitions for it to be effective. Otherwise, reclamation will only be partial because not every data block will be zeroed.
Linux Operating Systems:
Linux has different ways to delete the unused blocks, the most common method is to fill the free space with a file of zeroes using the dd command: $ dd if=/dev/zero of=/mounted-volume/zeroes && rm -f /mounted-volume/zeroes
Notes:
Step 2: Reclaim space on VMFS
cd /vmfs/volumes/DATASTORE_NAME/VM_NAME
vmkfstools -K disk_name.vmdk
Notes:
Refs: |
||||
| ||||
Attachments
![]()
There are no attachments for this article.
| ||||
Comments ![]() There are no comments for this article. Be the first to post a comment. | ||||
QemuIMG - How to Convert VHD to VMDK: A Step-By-Step Guide
Viewed 826 times since Sat, Jan 1, 2022
How To Add A USB Disk As VMFS Datastore In ESXi 6.7
Viewed 198 times since Fri, Sep 20, 2024
Reclaim Used Space with VMKFSTOOLS - Punchzero
Viewed 1202 times since Sat, Jan 1, 2022
VMware - Using the OVF Tool deploy
Viewed 668 times since Sun, Jan 2, 2022
Migrate qcow2 images from KVM to VMWare
Viewed 4124 times since Sat, Feb 20, 2021
Convert qcow2 to vmdk
Viewed 1059 times since Tue, Feb 9, 2021
VMware OVFTool - Deploy .ovf, .ova Error:vim.fault.FileNotFound
Viewed 1690 times since Mon, Jan 3, 2022
Enable content Copy/Paste between VMRC client and Windows/Linux Virtual Machine
Viewed 1072 times since Mon, Jan 3, 2022
How to Export a vSphere ESXi 6.7 Virtual Machine
Viewed 1356 times since Sun, Feb 7, 2021
OVFTool - Error: SHA digest of file ExortedVM.ovf does not match manifest
Viewed 2170 times since Mon, Jan 3, 2022
|