[LU-10410] Verify fstrim functionality on MDT Created: 19/Dec/17  Updated: 26/Oct/19

Status: Reopened
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Saurabh Tandan (Inactive)
Resolution: Unresolved Votes: 0
Labels: ldiskfs

Issue Links:
Related
is related to LU-11355 Add Lustre trim support Resolved
Rank (Obsolete): 9223372036854775807

 Description   

It would be useful to test the “fstrim” functionality with both MDT and OST devices, to ensure proper functionality and data correctness. My understanding is that fstrim is only supported for ldiskfs at this time, and needs to run with SSD storage.

In order to test this, verifiable data must be written into the filesystem, the filesystem mounted (concurrently) as type ldiskfs, fstrim run against the ldiskfs mount, then unmount and verify the data. For the MDT it would be useful to use DoM so that the MDT fills up with data more quickly.
 



 Comments   
Comment by Andreas Dilger [ 19/Dec/17 ]

This should be put into a test script, rather than be done by hand, so that it can be run in the future, possibly as a regular part of autotest. It is possible to check if the underlying device is an SSD by checking /sys/block/<device>/queue/rotational is 0. The test would be skipped if this is 1.

Comment by Andreas Dilger [ 26/Oct/19 ]

We never did get a test out of LU-11355 so reopening this ticket to track adding an fstrim regression test.

Generated at Sat Feb 10 02:34:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.