Results 1 to 9 of 9

Thread: SLES 11 SP3 - recomendations for SSD disk

Threaded View

  1. #3

    Re: SLES 11 SP3 - recomendations for SSD disk

    Use a modern and robust file system. Recommendation for SLE11: XFSv4
    and for SLE12: XFSv5:
    https://forums.suse.com/showthread.p...0594#post40594

    Check trim support of your SSD:
    https://forums.suse.com/showthread.p...8320#post38320

    https://techgage.com/article/enablin...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"
    Code:
    # 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:
    Code:
    # 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.
    There is probably a cron job for fstrim under SLE11 /etc/cron.weekly/!?

    Activate "discard-once" for swap partition in /etc/fstab:
    Code:
    /dev/sda6            swap                 swap       defaults,discard=once
    Code:
    # man swapon
    Reduce swapiness in /etc/sysctl.conf:
    Code:
    vm.swappiness = 10
    Use mount options "noatime,nodiratime" in /etc/fstab to extend life time of your SSD:
    Code:
    /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:
    Code:
    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
    Last edited by AndreasMeyer; 28-Jul-2018 at 10:47.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •