PowerStore supports the SCSI UNMAP/TRIM command to release storage space on PowerStore. To reclaim space on the PowerStore appliance, use one of the following procedures:
- Mount the file system using the discard mount option. With this option, the operating system issues the discard command to the PowerStore to release the storage space after files are deleted on the file system automatically. However, this may have a performance impact and therefore Dell Technologies recommends using the fstrim command instead.
/dev/mapper/sdb /data xfs discard,noatime,defaults 0 0
- Issue the fstrim command on a mounted file system to discard the unused blocks in the file system. The administrator can schedule a system cron job to perform the operation outside of busy hours.
# fstrim -v /data