문서의 이전 판입니다!


Diskfull Ubuntu

journal

you can delete everything inside of /var/log/journal/* but do not delete the directory itself.

https://unix.stackexchange.com/questions/130786/can-i-remove-files-in-var-log-journal-and-var-cache-abrt-di-usr

plex

mysql

innodb 조카튼 것이 테이블 참조파일을 계속 늘리기 때문에 db좀 돌렸다 하면

/var/lib/mysql

에 수십기가 크기의 ibdata1 파일을 볼 수 있다.

이것은 자동으로 해결되지 않으며 db를 삭제하는 방법으로만 크기를 줄일 수 있다. 다음 순서대로 백업 후 삭제하고 복구한다.

  • Do a mysqldump of all databases, procedures, triggers etc except the mysql and performance_schema databases
  • Drop all databases except the above 2 databases
  • Stop mysql
  • Delete ibdata1 and ib_log files
  • Start mysql
  • Restore from dump

php session

/var/lib/php/sessions

옛날 것이 그냥 남아잇는 경우가 있다.

연결문서