ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Recover lost space from thin provisioned disks by using Guest Reclaim Fling

By Vladan SEGET | Last Updated: January 12, 2013

Shares

Guest Reclaim to recover lost space on thin provisionned disks.

After the announce few days ago I was wondering on how to possibly use this tool, since there are some limitations. Most likely, as said in the Guest Reclaim ReadMe (pdf) file, the tool will take part in future updates to VMware hypervisor.  For now this tool will only work on RDMs using physical compatibility mode.

This tool, called Guest Reclaim  – a Fling – is available at labs.vmware.com, enables you to recover dead space from thin provissionned SCSI disks. The tool works from Windows XP to Windows 7. Guest Reclaim will issue SCSI Unmap commands to the underlying storage for reclaiming dead space.

What exactly it does?

Guest Reclaim reclaims dead space from NTFS volumes hosted on a thin provisioned SCSI disk. The tool can also reclaim space from full disks and partitions, thereby wiping off the file systems on it. As the tool deals with active data, please take all precautionary measures understanding the SCSI UNMAP framework and backing up important data.

Features

  • Reclaim space from Simple FAT/NTFS volumes
  • Works on WindowsXP to Windows7
  • Can reclaim space from flat partitions and flat disks
  • Can work in virtual as well as physical machines

What is Dead Space Reclamation? Deleting files frees up space on the file system volume. This freed space sticks with the LUN/Disk, until it is released and reclaimed by the underlying storage layer.

Some limitations:

The unmap does not work on linked clones or on disks with snapshots. The tool can only operate on one disk/volume in a single invocation of the command.

Another limitation is that this tool don't work on VMDKs which are thin provisionned SCSI disks, in vSphere 5: (Currently ESX 5.0 doesn't expose SCSI virtual disks as disks as thin provisioned.)  Only RDMs with physical compatibility mode. Here is the update provide in the Guest Reclaim Read Me (PDF).

The tool transparently operates on virtual disk if the hypervisor emulation layer reports virtual disks as thin provisioned. End to End reporting of thin provisioning status in a virtual storage stack is required to fully leverage Thin Provisioning in a virtualized  environment. This tool is not related to any VMWare ESX or any other Hypervisor Release. If ever ESX supports unmaps on virtual disk in the future, it will be tied to “Virtual Hardware Version Upgrade” and will mostly be in a release after vSphere 5.0.

GuestReclaim allows transparent reclamation of dead space from NTFS volumes.

View the Guest Reclaim ReadMe (pdf) for details.

Guidelines: guestReclaim.exe [ –list | –volumefreespace | –fullvolume | –disk ] [command specific options]

–list : List available drives and their volume/partition mapping
–volumefreespace : Unmap free space on a NTFS/FAT volume. Expects drive letter
–fullvolume : Unmaps entire volume. Destroys filesystems that exists on the partition. Expects
partition drive letter
–disk : Unmaps full disk. Destroys all volumes/partitions/data on disk. Expects partition
diskname

I tried to use this tool inside a 2003 x64 VM running in vSphere 5. The VM had 2 disks:

Disk 1 – system disk – NTFS volume, size=80Gb Thin provissioned, volume letter = C:

Disk 2 – data disk – NTFS volume, size=80Gb Thin provissioned, volume letter = E:

I wanted to recover some space from the second disk, E:

See what returned the guestreclaim.exe –list command

Shows no mapping for the disks

The hypervisor does not yet report disks as thin provisioned to the guest OS, when using VMDKs. For now this tool will only work on RDMs using physical compatibility mode.

 

Shares
Vote !

| Filed Under: Free Stuff Tagged With: Guest Reclaim Fling, thin provisionning, unmap

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in