6.28 Fstrim Pool

fstrim pool <pool_name>

It is used on a mounted pool to discard (or trim) blocks which are not in use by the pool. You must use this option only on thin-provisioned storage devices.

nlvm [nlvm_options] fstrim pool <pool_name>

Command Option

pool_name

Mandatory. Specify the name of the NSS pool.

Example

MYPOOL1

Command Examples

nlvm fstrim pool MYPOOL1

Trims the unused blocks in the NSS pool named MYPOOL1 and then displays the trimmed size in bytes.

nlvm fstrim pool MYPOOL1 async

Trims the unused blocks in the NSS pool named MYPOOL1 asynchronously. For more information on the trimmed size in bytes, see logs at /var/log/messages.