티스토리 뷰

장치에 남은 공간이 없음 (No space left on device)

디스크 공간이 충분한데 Write 가 안되는 증상

[root@localhost spool]# touch 1234
touch: cannot touch `1234': 장치에 남은 공간이 없음

아이노드 꽉찬 상태

[root@localhost spool]# df -i
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/vda3      2490368 2490368      0  100% /
tmpfs           240261       1 240260    1% /dev/shm
/dev/vda1        65536      46  65490    1% /boot

통 파티션이라 범인 디렉토리를 찾기 어렵다

아이노드 풀인 디렉토리 찾기

for i in /*; do echo $i; find $i |wc -l; done

검색해보니 (/var/spool/postfix/maildrop) 여기서 주로 발생

cd /var/spool/postfix/maildrop

# 아래 3개 명령어중 1개 실행 (삭제 명령어) : 파일 개수가 많아서 나눠서 삭제
ls | xargs -n1000 rm -f
echo * | xargs rm -rf
find ./ -name "*" -exec rm -f {} \;

/var/spool/postfix/maildrop 여기 자꾸 쌓이는 이유

crontab 의 실행결과를 postfix 로 발송하는데 발송실패하여 로깅이 남는 경우 일듯 함

아래와 같이 MAILTO 구문을 수정함

/etc/crontab

MAILTO="" 

잘되려나?

참고사이트

https://xinet.kr/?p=1452
https://dynamis.tistory.com/7

'Linux' 카테고리의 다른 글

싱글모드 (single mode)  (0) 2020.08.21
dd 진행상황 모니터링  (0) 2020.08.20
userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]  (0) 2020.06.23
zabbix5 텔레그램 알람 받기  (0) 2020.06.17
ssh 느림  (0) 2020.06.09
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
글 보관함