Answer by Yves Martin for Possible to get SSD TRIM (discard) working on ext4...
As a summary, here are current recommended settings for performance and data safety on Linux.Because of some bugs/risks, Debian does not enable LVM discard by default:...
View ArticleAnswer by sebastianwagner for Possible to get SSD TRIM (discard) working on...
As suggested here You can uselsblk -Din order to check if your blockdevices pass through the discard commands.Also note that the section devices in lvm.conf contains an option issue_discards.Seeman 5...
View ArticleAnswer by ERos for Possible to get SSD TRIM (discard) working on ext4 + LVM +...
Mdtrim may need more working:Cyberax-mdtrim-0a40e8d# ./mdtrim.py -m /dev/md4 -s /homeScratch directory is /home, trimmer file size is 0 GB 790 MBFound slave sdc2 on /dev/sdc with MD offset 0 and...
View ArticleAnswer by Cyberax for Possible to get SSD TRIM (discard) working on ext4 +...
You can use my MDTRIM script ( https://github.com/Cyberax/mdtrim/ ) to TRIM empty space on ext4/3 level-1 RAIDs. We start it periodically from cron and it works great for us.Adding support for other...
View ArticleAnswer by poige for Possible to get SSD TRIM (discard) working on ext4 + LVM...
UPD. 2020-06-17Looking back through commits history from 2020:2010-08: Allow discards to be passed through to linear mappings if at least one underlying device supports it.2 years later there're...
View ArticleAnswer by sysadmin1138 for Possible to get SSD TRIM (discard) working on ext4...
As of 2.6.37, it should be present (source). The kernel doesn't do it in the background, the block discard process is currently designed to be run on demand (cron script!). Dm-crypt support doesn't...
View ArticlePossible to get SSD TRIM (discard) working on ext4 + LVM + software RAID in...
We use RAID1+0 with md on Linux (currently 2.6.37) to create an md device, then use LVM to provide volume management on top of the device, and then use ext4 as our filesystem on the LVM volume...
View Article