Re: What does TRIM/discard in RAID do ?
From: Pascal Hambourg <hidden>
Date: 2023-01-19 18:44:11
On 18/01/2023 at 10:57, Reindl Harald wrote:
Am 18.01.23 um 00:26 schrieb Pascal Hambourg:quoted
quoted
in such implementations you have to considerquoted
* file-systems with no trim-supportNot affected. A device does not need TRIM support to know which blocks have been written and contain valid datawell, fstrim/discard don't do anything on a HDD at the FS layer
(Hard disks with SMR technology may support TRIM to avoid useless read-modify-write operations, but SMR is not recommended for RAID so it is a bit out-topic.) Not sure I get your point. How is a filesystem with no TRIM support related with a hard disk with no TRIM support ? Currently the RAID layer does TRIM/discard pass-through only, so it returns the status of the underlying devices. If it stored information about which blocks contain valid data, I guess it would have to advertise TRIM/discard support for itself regardless of the underlying devices.