I am having trouble getting my maintenance right for my server’s SSD storage.
Running a server with ordinary spinning disks poses no real issue but when you run a server with SSD disk I am having frequent issues with the file systems hanging and I suspect it is due to the rapid change of content on the filesystem.
The server is running primarily as mirror for Manjaro - secondly a private Arch mirror.
I have been experimenting with 2x
500GB480G Samsung EVO840 Kingston SSD in RAID10,far2 formatted with ext4 - and it works fast as is expected.
I have enabled fstrim with the defaults which is weekly and this is not enough - filesystem still gets clogged and when it gets clogged the raid fail’s on of the disks and everything slows down to a crawl.
I am now trying to the Manjaro part on a single 500G SSD - the issue still pops up.
I have been trying using discard in the mount options - and the issue persist.
I then changed the fstrim.timer to run daily - but still problems.
I know several hosting providers does brag of their SSD based hosting so it should be possible - so I am searching for the tricks to maintain a rapidly changing filestorage (using rsync) without having the mirror breakdown every two weeks.