Use a modern and robust file system. Recommendation for SLE11: XFSv4
and for SLE12: XFSv5:
https://forums.suse.com/showthread.php?10294-about-partition&p=40594#post40594
Check trim support of your SSD:
https://forums.suse.com/showthread.php?9508-discard-option-is-not-supported-why&p=38320#post38320
https://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/2/
Remove all discard-mount options in /etc/fstab (for ext3/ext4/xfs) and use fstrim!
[CODE]# man xfs
man ext4
man fstrim[/CODE]
# command-not-found fstrim
=> rpm "util-linux"
# fstrim -a -v
/home: 366.7 GiB (393764179968 Bytes) getrimmt
/: 6.4 GiB (6835650560 Bytes) getrimmt
There is an automatic weekly systemd job for fstrim in SLE12:
# rpm -ql util-linux-systemd |grep -i fstrim
/usr/lib/systemd/system/fstrim.service
/usr/lib/systemd/system/fstrim.timer
/usr/sbin/rcfstrim
[CODE]# systemctl status fstrim.timer
â fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Sam 2018-07-28 10:37:11 CEST; 52min ago
Docs: man:fstrim
Jul 28 10:37:11 core2duo2400 systemd[1]: Started Discard unused blocks once a week.[/CODE]
There is probably a cron job for fstrim under SLE11 /etc/cron.weekly/!?
Activate “discard-once” for swap partition in /etc/fstab:
/dev/sda6 swap swap defaults,discard=once
# man swapon
Reduce swapiness in /etc/sysctl.conf:
vm.swappiness = 10
Use mount options “noatime,nodiratime” in /etc/fstab to extend life time of your SSD:
/dev/sda1 / xfs rw,noatime,nodiratime,nodev,attr2,inode64,noquota 1 1
/dev/sda5 /home xfs rw,noatime,nodiratime,nodev,attr2,inode64,noquota,nosuid,noexec 1 2
Check periodical your SSD health state with smartctl:
cnf smartctl
=> rpm smartmontools
[CODE]# /usr/sbin/smartctl -t long /dev/sda
=> wait some minutes…
/usr/sbin/smartctl -i /dev/sda
/usr/sbin/smartctl -H -l error /dev/sda
/usr/sbin/smartctl -A /dev/sda
/usr/sbin/smartctl -l selftest /dev/sda[/CODE]