19.3. Enabling online block discard
You can perform online block discard operations to automatically discard unused blocks on all supported file systems. For more information, see the mount(8) and fstab(5) man pages on your system.
Procedure
Enable online discard at mount time:
When mounting a file system manually, add the
-o discardmount option:# mount -o discard device mount-point-
When mounting a file system persistently, add the
discardoption to the mount entry in the/etc/fstabfile.