차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:diskfull_ubuntu [2019/12/30 19:53] – [삭제되었지만 살아있는 경우] 219.240.210.166tech:diskfull_ubuntu [2022/11/23 19:28] (현재) 172.70.233.27
줄 1: 줄 1:
 {{tag>diskfull ubuntu}} {{tag>diskfull ubuntu}}
 ====== Diskfull Ubuntu ====== ====== Diskfull Ubuntu ======
 +[[tech:우분투|우분투]] 사용 시 시스템 디스크 여유 공간이 수십 기가바이트가 있는데도 Disk Full 이 되면서 작동이 안되는 경우가 있다. 
  
- +다음 사항들을 확인해본다. 
- +
-/* 여기에 내용을 입력합니다. */+
 =====journal===== =====journal=====
 you can delete everything inside of /var/log/journal/* but do not delete the directory itself. 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 https://unix.stackexchange.com/questions/130786/can-i-remove-files-in-var-log-journal-and-var-cache-abrt-di-usr
줄 21: 줄 19:
   /var/lib/mysql   /var/lib/mysql
 에 수십기가 크기의 **ibdata1** 에 수십기가 크기의 **ibdata1**
-파일을 볼 수 있다. +파일을 볼 수 있다. 문제는 DB 자체를 삭제해도 참조파일은 없어지지 않는다. 
  
   innodb_file_per_table=1   innodb_file_per_table=1
 을 설정하면, 각 db 마다 따로 생성되므로, db 삭제시 같이 지워버리면 된다.  을 설정하면, 각 db 마다 따로 생성되므로, db 삭제시 같이 지워버리면 된다. 
 mysql 5.6.6  부터는 기본적으로 켜져 있슴. mysql 5.6.6  부터는 기본적으로 켜져 있슴.
- 
  
 이것은 자동으로 해결되지 않으며 이것은 자동으로 해결되지 않으며
줄 38: 줄 36:
   - Start mysql   - Start mysql
   - Restore from dump   - Restore from dump
- 
- 
  
 <file> <file>
줄 54: 줄 50:
 =====php session ===== =====php session =====
  
-/var/lib/php/sessions+  /var/lib/php/sessions
  
 옛날 것이 그냥 남아잇는 경우가 있다. 옛날 것이 그냥 남아잇는 경우가 있다.
 +생성날짜를 보고 삭제해 주면된다.
 =====삭제되었지만 살아있는 경우===== =====삭제되었지만 살아있는 경우=====
  
- +du 보고서에는 삭제되었지만 일부 프로세스에서 여전히 열려있는 파일도 표시되지 않다. 이 파일을 찾으려면 [[lsof]] 를 실행해야.
-du 보고서에는 삭제되었지만 일부 프로세스에서 여전히 열려있는 파일도 표시되지 않습니다. 이 파일을 찾으려면 [[lsof]] 를 실행해야합니다. +
  
 https://serverfault.com/questions/315181/df-says-disk-is-full-but-it-is-not https://serverfault.com/questions/315181/df-says-disk-is-full-but-it-is-not
- 
  
 It's possible that a process has opened a large file which has since been deleted. You'll have to kill that process to free up the space. You may be able to identify the process by using lsof. On Linux deleted yet open files are known to lsof and marked as (deleted) in lsof's output. It's possible that a process has opened a large file which has since been deleted. You'll have to kill that process to free up the space. You may be able to identify the process by using lsof. On Linux deleted yet open files are known to lsof and marked as (deleted) in lsof's output.
- 
  
     sudo lsof +L1     sudo lsof +L1