LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-31-2015, 04:49 PM   #1
cachedrive
LQ Newbie
 
Registered: May 2015
Location: /usa/fl/orl
Distribution: Arch
Posts: 5

Rep: Reputation: Disabled
How Do You Handle SSD's


I'm wondering how the CentOS 7 community handles SSD's? Do you just slam them in, load XFS on them and move along or do you do other things? Being that XFS is the new default FS for CentOS, I assume there's been some considerations for SSD performance support. I just don't know what those are.

Do I need to somehow specify TRIM support for my CentOS 7 installation? I know the kernel supports it however I assume there needs to be some configs set in /etc/fstab, no?
 
Old 05-31-2015, 05:02 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Modern SSDs need no special treatment, their longevity is better than the average spinning rust drive.
http://techreport.com/review/27909/t...heyre-all-dead

You can enable TRIM automatically by adding "discard" to the "options" section in /etc/fstab but this will slow down your drive.

I use a systemd .timer to apply fstrim periodically; I don't use CentOS so I'm not sure how that would translate.
 
Old 06-01-2015, 04:11 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Head_on_a_Stick View Post
I use a systemd .timer to apply fstrim periodically; I don't use CentOS so I'm not sure how that would translate.
Since version 7 CentOS also uses systemd, so your .timer unit should be usable there. too.
 
1 members found this post helpful.
Old 06-01-2015, 04:25 AM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
^ Thank you

Here it is:
Code:
# /usr/lib/systemd/system/fstrim.timer
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=multi-user.target
Enable it with:
Code:
# systemctl enable fstrim.timer
You will need fstrim (obviously):
Code:
# yum install fstrim
The .timer unit may be supplied with the package so check before making a new one.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: JFS File-System Can Now Handle SSD TRIM Discard LXer Syndicated Linux News 4 10-04-2012 06:23 PM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM
SSD hydraMax Linux - Hardware 4 01-09-2011 12:09 PM
ssd slack66 Slackware 5 06-24-2010 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration