Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2050  / 2 Years ago, wed, december 1, 2021, 1:38:40

Simple question, I have some servers that were running 10.04 that I upgraded to 12.04.



So they were installed using 10.04 (kernel 2.6.32* I believe) and the version of ext4 that shipped then.



By upgrading to 12.04 and the newer kernel, does that enable TRIM automatically? (Do I need to add 'discard' to the fstab?)
Or do I need to do a clean install of 12.04 to get TRIM functionality on those drives.


More From » kernel

 Answers
6

No, upgrading a kernel does not turn it on automatically - it's still off by default for the kernel shipped with 12.04.



Please refer to the manpage of mount:




discard/nodiscard
Controls whether ext4 should issue discard/TRIM commands to the
underlying block device when blocks are freed. This is useful
for SSD devices and sparse/thinly-provisioned LUNs, but it is |
off by default until sufficient testing has been done. | <--


[#35465] Thursday, December 2, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oargrou

Total Points: 336
Total Questions: 105
Total Answers: 113

Location: Vietnam
Member since Sun, Oct 18, 2020
4 Years ago
;