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)

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 removed syncer as the assignee of this task.Nov 1 2017, 10:14 PM
syncer added a subscriber: syncer.
xiro added a subscriber: xiro.Mar 26 2018, 10:06 PM
syncer changed the subtype of this task from "Task" to "Enhancement".Oct 20 2018, 4:49 AM
pasik added a subscriber: pasik.Mar 12 2019, 6:12 PM
hexes added a subscriber: hexes.Nov 10 2019, 1:27 PM

Hello all! Was anything made with this issue?