Introduction
This procedure describes the special steps needed for systems with SSDs.
Procedure
- Disable swap until it is shown that it really is needed by running.
- /var/lock and /var/run should already be symlinks to /run, which is a tmpfs filesystems; verify this.
- 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
- Add the following to /etc/rc.local:
mkdir /var/log/{glusterfs,sysstat}
- Reboot.
- Verify minimal writing to /dev/sda by running:
iostat -zdx sda 1