When file system errors occur and it becomes impossible to reliably read or write from /tmp, the operating system marks the file system as "read-only." This prevents services like Apache and PHP-FPM from creating temporary files. Unlike physical and logical partitions, loopback partitions such as ome securetmp creates are not true partitions and cannot be repaired with utilities such as fsck or xfs-repair. Instead, /tmp must be deleted and recreated.
Temporary solution
Please note that the following procedure must be performed by a certified administrator to ensure nothing goes wrong.
- Access the server's command line as the 'root' user via SSH or "Terminal".
- Open
/etc/fstab
in your preferred text editor. - Comment out the
/tmp
entry.#/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
- Disable the
securetmp
service.systemctl disable securetmp
- Reboot the server.
shutdown -r now
- Remove the old
tmpDSK
file./bin/rm /usr/tmpDSK
- Run the
securetmp
script./scripts/securetmp
- Enter "y" at the prompts to confirm, enable, and configure the boot option.
- Reboot the server again.
shutdown -r now