How can I reclaim space in Windows with a thin LUN?
Last modified date:
2023-03-06
Applicable Products
All NAS series
Detail
By default, Windows Server 2012 and later automatically reclaims storage after deleting files from your iSCSI LUN. If your space in the NAS is not reclaimed, you can use the following process:
Note
Windows 2008 and earlier doesn't have native in-band UNMAP support. You can use third-party applications such as SnapDrive for Windows or the Data ONTAP PowerShell Toolkit to perform space reclamation operations.
- Disable the DisableDeleteNotification setting.NoteThis setting is disabled by default.
- Open Powershell.
- Run the following command.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name DisableDeleteNotification –Value 0
- Right-click on the iSCSI mapped disk and select Properties.
The disk properties window opens. - Go to the Tools tab and click Optimize.
The Optimize Drives window opens.
- Select the disk drive and click Optimize.
Windows Server begins optimizing the storage drive. When the process finishes, the LUN storage space is reclaimed on your NAS.