Page MenuHomeVyOS Platform

SSD tweaks
Open, WishlistPublicENHANCEMENT


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)

Event Timeline

syncer triaged this task as Wishlist priority.Aug 1 2017, 5:05 AM
syncer changed the edit policy from "Task Author" to "Custom Policy".
syncer added a project: VyOS 1.2 Crux.
syncer changed Difficulty level from Easy (less than an hour) to Normal (likely a few hours).
syncer set Version to -.

This is valid request but require elaboration

Trim is a good point, may be we can but I will emphasize these things here:

  1. DO NEVER install vyos or any other linux, intended for running 24x7 on cheap usb flash. I did it. Don't repeat my mistakes.
  2. /var/log in tmpfs is generally a very bad idea, as you will have no logs to examine system failures post-mortem.
  3. 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.
  4. 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 :)

syncer subscribed.
syncer changed the subtype of this task from "Task" to "Enhancement".Oct 20 2018, 4:49 AM

Hello all! Was anything made with this issue?

erkin set Why the issue appeared? to Will be filled on close.Sep 1 2021, 10:58 AM
erkin set Is it a breaking change? to Unspecified (possibly destroys the router).
erkin set Issue type to Feature (new functionality).