VMware Virtualization

Reclaiming Space using TRIM UNMAP in Windows

Most legacy operating systems integrally do not have the capability to reclaim the space when a host performs large delete operations from a thin provisioned volume without rewriting new data into the deleted space. This deletion may perform by an application or guest operating system.

Dead Space Reclamation process enables to reclaim the previously allocated blocks of thin-provisioned LUNs that are no longer in use. Those blocks that contain deleted data are unallocated and the storage array is updated.

This is performed by one of two techniques: TRIM and UNMAP, to use the storage space more efficiently.

What is TRIM & UNMAP?

TRIM is the specification for this functionality that handles all standards for ATA interfaces and UNMAP is the full equivalent of TRIM but for SCSI disks.

What is SSD TRIM?

First TRIM is not a command that forces the SSD to immediately erase data. Basically, TRIM is a command that notifies the SSD which Logical Block Addresses (LBAs) are no longer needed. The SSD takes those addresses and updates its own internal record in order to mark them as invalid. And the SSD will no longer move that records marked internally as invalid blocks during garbage collection, which eliminates the time wasted in order to rewrite invalid data to new flash pages. Trim requires physical disks directly attached to the server and trim-compatible hardware.

Benefits

  • Less data is rewritten, and more free space is available during the garbage collection
  • Less data to move during garbage collection and higher throughput
  • Writing less to the flash by not rewriting invalid data during garbage collection achieves improved flash endurance
  • TRIM prevents the SSD drive from making unnecessary writes and being overused

What is SCSI UNMAP?

UNMAP is the full equivalent of TRIM specifically for SCSI disks.

UNMAP is a SCSI command that a host can issue to a storage array to free Logical Block Addresses (LBAs) that no longer need to be allocated. UNMAP is used to remove physical blocks from the storage allocation in thinly provisioned Storage Array

Benefits

  • Reclaimed blocks will be put back into the unused storage pool
  • Avoid out of space condition for thinly provisioned pools of storage
  • No manual operation required on the host
  • No array tools required to perform thin reclamation in the backend

Read More

Rajesh Radhakrishnan

Recent Posts

NAKIVO Backup & Replication v10.8 Released With New Features

Nakivo has released its new Backup and Replication solution Nakivo v10.8, which includes support for…

2 years ago

Oracle Cloud VMware Solution and Features

Oracle Cloud VMware Solution (OCVS) provides a customer-managed, native VMware-based cloud environment hosted in Oracle…

2 years ago

Vinchin Backup and Recovery Review

Vinchin is a professional provider of data protection solutions for enterprises. It provides a series…

2 years ago

VMware Cloud Disaster Recovery (VCDR) Solution Deployment And Configuration Part 2

In my previous blog post, I have explained about VMware Cloud Disaster Recovery (VCDR) Onboarding and…

2 years ago

How to Deploy vRNI Cloud With VMC on AWS

vRealize Network Insight helps you build an optimized, highly available, and secure network infrastructure across…

2 years ago

This SysAdmin Day, WIN with Hornetsecurity!

Can you believe it's here again? SysAdmin Day is back, and with it comes endless gratitude…

2 years ago