Configuring systems with SSDs

Introduction

This procedure describes the special steps needed for systems with SSDs.

Procedure

  1. Disable swap until it is shown that it really is needed by running.
  2. /var/lock and /var/run should already be symlinks to /run, which is a tmpfs filesystems; verify this.
  3. Make /tmp, /var/tmp and /var/log into tmpfs filesystems by adding the following lines to /etc/fstab:
    tmpfs /tmp     tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
    tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
    
  4. Add the following to /etc/rc.local:
    mkdir /var/log/{glusterfs,sysstat}
  5. Reboot.
  6. Verify minimal writing to /dev/sda by running:
    iostat -zdx sda 1

See also