Is it possible to insert configuration options to "support" SSD drive (options which enable features like TRIM or mount /var/log on tmpfs) in order to reduce writes? I think that it would be very usefull because SSD are great option for system drive due to their speed. The best will be an automatic supportdring the installation....
- Difficulty level
- Normal (likely a few hours)
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Feature (new functionality)
Trim is a good point, may be we can but I will emphasize these things here:
- DO NEVER install vyos or any other linux, intended for running 24x7 on cheap usb flash. I did it. Don't repeat my mistakes.
- /var/log in tmpfs is generally a very bad idea, as you will have no logs to examine system failures post-mortem.
- It's a good idea to monitor your ssd's health, and it's a good idea to include smartctl in VyOS default package list, but ssds have different vendor-specific SMART flags for their health indication, so it's up to user to specify the correct ones for his or her equipment.
- There is a damn dirty and simple solution to address trim issue without any modifications to running image:
tune2fs -o discard /dev/sdXY
but one has to make sure that device supports trim BEFORE doing this :)