/usr 가 계속 쌓여가고 있어요..

익명 사용자의 이미지

안녕하세요..자주 도움 받는 사람입니다...
레드헛 7.1 사용자인데요..
/usr/가 자주 쌓이는데...왜 그런지 아세요?
아파치 로그는 지워주는데.........
/usr/local/ 에는 apache,php,mysql 이 있습니다...
아무리 많이 싸이트에 글을 남겨도 mysql 데이타량을 보면
많지도 않더라구요...
혹시 뭐가 그렇게 자주 쌓이는지 알수는 없을까요?

제가 사용하는 서버입니다.
#df

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda7 497829 51654 420473 11% /
/dev/hda1 23302 3485 18614 16% /boot
/dev/hda10 13772936 1149960 11923348 9% /home
/dev/hda8 497829 29 472098 1% /tmp
/dev/hda5 3028080 2022140 852120 71% /usr <== 이부분
/dev/hda6 1517920 44996 1395816 4% /var

===============================================
나름대로 분석

du --max-depth=1 -h /usr
16k/usr/lost+found
363M/usr/share
67M/usr/bin
236M/usr/lib
2.3M/usr/libexec
8.3M/usr/sbin
78M/usr/X11R6
4.0k/usr/dict
4.0k/usr/etc
40k/usr/games
20M/usr/include
307M/usr/local
100M/usr/src
4.0M/usr/kerberos
120k/usr/html
60M/usr/java
1.3G/usr <------------- 1.3 메가 용량 밖에 차지 않는데요..

저는 파티션 나눌때 /usr 부분을 3000메가로 잡아 주었거든요...
그런데 아래를 보시면 71% 가 차지 했는데.....
혹시 3000메가를 차지 할려면 현재 1/3 밖에 사용하지 않는데
왜 71퍼센트 사용하고 있다고 나오는지?

# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda7 497829 51655 420472 11% /
/dev/hda1 23302 3485 18614 16% /boot
/dev/hda10 13772936 1149984 11923324 9% /home
/dev/hda8 497829 29 472098 1% /tmp
/dev/hda5 3028080 2023612 850648 71% /usr <====
/dev/hda6 1517920 45016 1395796 4% /var

뭐가 문제지?
================================================

fsck 로 체크해보면 inode --- fixed 가 나옵니다..
벌써 두번째 서버 다시 설치 했는데.....

익명 사용자의 이미지

아시다시피 설치되는 대부분의 프로그램들이 /usr 아래에 설치가 됩니다.
처음 설치했을 때(요즘은 대부분 2G정도가 설치되므로... --;) 확인을
해보시고 이후에 아무것도 설치하지 않았는데도 계속적으로 증가가
된다면 각종 설정 파일들의 log가 어디로 잡혀있는지를 확인해 봐야하겠네요.
참고로 LINUX커널도 /usr/src 밑에 설치되므로 컴파일이 끝나고 안정적인
커널이 확인되면 삭제하시거나 Out파일들을 지워주면 조금이라도 확보가
되겠지요. 다른 프로그램들도 대부분 /usr/local/src에서 컴파일을 하다
보면 그런 일이 생길 수도 있겠군요.

익명 사용자의 이미지

저는 아파치,php,mysql은 소스 컴파일 해서 쓰거든요,,,
rpm 으로 설치 하지 않구요..

그리고 usr 부분에서 특별히 신경쓰여지는부분은 mysql 의 data
디렉토리에 db 내용들인데....아무리 많이 사용자들이
써도 용량을 하루에 체크 해보면 신경쓸일이 아니더라구요..

log 파일은 apache로그 파일은 자주 확인해서 있으면 지워주고...거의
apache는 잘 돌아 가니까..log 파일은 생기지 않구요....
특별히 예전에도 이런일이 있어서 다시 싹 지우고 다시 설치
했는데...또 이러네요.....

그래서 100퍼센트까지 쌓이면 fsck 로 체크해서 inode 가 뭔가
이것 예전에 지웠는데........
이번에 다시 설치 하고는 fsck 를 하지 않습니다...fsck 가 더 에러를
내는것 같아서요...하드까지 교체 했거든요..이번에 다시 설치하면서요..

아무튼....뭐가 문제일까요?...

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.