[SYSTEMD] systemd + logrotate 환경에서 “Read-only file system” 에러
OS : RockyLinux9 문제 개요 1. 특정 위치의 logrotation 이 진행되지 않음 원인 : “Read-only file system” 에러를 동반 messages log logrotate[2848371]: error: failed to rename /usr/local/httpd2/logs/test.com-access_log to /usr/local/httpd2/logs/test.com-access_log-20260202: Read-only file system logrotate[2848371]: error: failed to rename /usr/local/httpd2/logs/test.com-error_log to /usr/local/httpd2/logs/test.com-error_log-20260202: Read-only file system logrotate[2848371]: error: error opening /usr/local/php/var/log/php-fpm.log: Read-only file system logrotate[2848371]: error: error opening /usr/local/php/var/log/slow.log: Read-only file system 2. 업데이트 기록 로그 : /var/log/dnf.log /var/log/dnf.log.4:2025-12-07T20:04:21+0900 DEBUG —> Package logrotate.x86_64 3.18.0-9.el9 will be upgraded /var/log/dnf.log.4:2025-12-07T20:04:21+0900 DEBUG —> Package logrotate.x86_64 3.18.0-12.el9 will be an upgrade /var/log/dnf.log.4:2025-12-07T20:04:21+0900 DEBUG —> Package systemd.x86_64 252-51.el9_6.3.rocky.0.1 will be upgraded /var/log/dnf.log.4:2025-12-07T20:04:21+0900 DEBUG —> Package systemd.x86_64 252-55.el9_7.7.rocky.0.1 will be an upgrade 3. 로그파일 현황 -rw-r–r– 1 root root 1682882 Dec 5 23:49 access_log-20251206 -rw-r–r– 1 root root 1904115 Dec 6 23:54 access_log-20251207 -rw-r–r– 1 root root 54981516 Feb 2 21:08 access_log 업데이트가 이루어진 2025.12.07 부터 logrotation 이 수행되지 [ more… ]