OPNsense Forum

English Forums => General Discussion => Topic started by: Kaxia on May 21, 2015, 10:12:54 am

Title: About SSD install
Post by: Kaxia on May 21, 2015, 10:12:54 am
Hi all,
Today i saw a topic 'SSD (Solid State Drive) and pfSense (Important)':
https://forum.pfsense.org/index.php?topic=34381.75

i installed OPnsense in SSD(4G), memory is 2G. What should i do to keep my router  very stable?
Title: Re: About SSD install
Post by: Kaxia on May 21, 2015, 11:48:43 am
Now OPNsense's status:
MBUF----30%(7856/26368)
Memory----6%(120/2005MB)
SWAP usage----0%(2048MB)
Disk usage----52%(837M/1.7G)
Title: Re: About SSD install
Post by: franco on May 22, 2015, 11:23:00 am
Assuming you used 15.1.10 and the quick/easy installer, the following things have been do increase disk life and performance:

* Enables TRIM and soft updates for better crash recovery (a fix is in 15.1.11 to address setup issues)
* Only one partition to maximise controller flexibility WRT write cycles
* No swap space that might wear down the disk
* Root partition has noatime set to avoid fiddling with the file system

The one thing you can do to increase disk life is go to: System -> Settings -> Misc and enable "Use memory file system for /tmp and /var". After reboot these changes take effect.


Hope that helps,
Franco
Title: Re: About SSD install
Post by: Kaxia on May 23, 2015, 02:53:33 am
yes, i used 15.1.10.
I had been done as your suggestion, and apply remote log server with splunk.

Thank your work!
Title: Re: About SSD install
Post by: franco on May 23, 2015, 07:24:21 am
You are welcome. Exporting the logs is a good idea. :)