Results 1 to 13 of 13

Thread: Quick Easy Job

  1. #1
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70

    Quick Easy Job

    I need some assistance with my / partition. When typing the df command it is saying I am using 100% (1GB) however I cannot find any file/dir combination that would be causing this.

    Please PM me if you can help.

    Thanks,
    Tim

  2. #2
    Join Date
    Dec 2003
    Posts
    936
    The probable culprit are web server log files in /var/log, assuming that you don't have a separate file system for /var. You can safely remove any log files that end in a digit (e.g.access_log.1) as those are old log files that have rotated.
    If /var is a separate filesystem the next likely culprit might be things in /tmp.
    Primary email: advanced dot programmer at gmail dot com ..

  3. #3
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    I have a separate file system for both..

    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda7 1035660 1000264 0 100% /
    /dev/hda1 101089 34287 61583 36% /boot
    /dev/hda8 56135784 15990900 37293352 31% /home
    none 515436 0 515436 0% /dev/shm
    /dev/hda6 1035660 64332 918720 7% /tmp
    /dev/hda3 8262068 3707464 4134908 48% /usr
    /dev/hda2 8262068 3744964 4097408 48% /var

  4. #4
    Join Date
    Dec 2003
    Posts
    936
    ok....It is most likely you have put everything under /(root) and which install under your primary partition, and as I said /var/log where will keep all your system/applications log.
    But since it's not the case post your df -h result here so that I can give you more info.
    if that's the case, I will suggest you try to buy an extra Harddisk and put into your server and move your /var, /usr and/or /(web data) into the new harddisk, by doing this the /var will not full that easy. now a day a harddisk is not expensive, why take risk for diskfull in the near future right.
    Primary email: advanced dot programmer at gmail dot com ..

  5. #5
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    When I run the command asked, I receive the following

    Filesystem Size Used Avail Use% Mounted on
    /dev/hda7 1012M 977M 0 100% /
    /dev/hda1 99M 34M 61M 36% /boot
    /dev/hda8 54G 16G 36G 31% /home
    none 504M 0 504M 0% /dev/shm
    /dev/hda6 1012M 63M 898M 7% /tmp
    /dev/hda3 7.9G 3.6G 4.0G 48% /usr
    /dev/hda2 7.9G 3.6G 4.0G 48% /var

  6. #6
    Join Date
    Feb 2003
    Location
    USA
    Posts
    20
    You should really check your PMs

    Find disk usage (du) in kilobytes, pipe it to sort to order by numbers:

    Code:
    du -k / | sort -n
    Cheers,
    Quasi
    Email / AIM: [email protected] / whoisquasi

  7. #7
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    I did modify it to exclude the main partitions..

    # du / -h --max-depth=1 --exclude=home --exclude=boot --exclude=tmp --exclude=backup --exclude=usr --exclude=var --exclude=proc | sort -n

    2.7M /root
    4.0K /initrd
    4.0K /misc
    4.0K /opt
    4.1M /scripts
    4.7M /bin
    12K /mnt
    12M /sbin
    16K /lost+found
    25M /lib
    39M /etc
    48K /tftpboot
    87M /
    424K /dev


    Can you see where I am getting confused?
    Last edited by edesignway; 03-25-2004 at 02:25 PM.

  8. #8
    Join Date
    Oct 2003
    Location
    Manchester, UK
    Posts
    108
    I can take a look at the this for you, Please PM me if you require my assistance.

  9. #9
    Join Date
    Feb 2003
    Location
    USA
    Posts
    20
    Do not use -h when using sort -n because it breaks the sort order! Are you using one of the BSD variants (FreeBSD, OpenBSD, NetBSD, etc.)?
    Email / AIM: [email protected] / whoisquasi

  10. #10
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    I am on RH9

    # du -k / --max-depth=1 | sort -n
    2 /proc
    4 /initrd
    4 /misc
    4 /opt
    12 /mnt
    16 /lost+found
    48 /tftpboot
    424 /dev
    2720 /root
    4140 /scripts
    4740 /bin
    12104 /sbin
    30173 /boot
    31692 /tmp
    39472 /etc
    878804 /backup
    3079828 /usr
    3715288 /var
    16539464 /home
    24339087 /

  11. #11
    Join Date
    Feb 2003
    Location
    USA
    Posts
    20
    I can take a look at this if you like. No charge.
    Email / AIM: [email protected] / whoisquasi

  12. #12
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    So a little lightbulb went off in my head.. I was browsing on my number two server (which has the same setup as the server in question) and I noticed that if I browse the unmounted /backup hard disk (hdc) I don't see any thing... If I go to the server in question, unmount the /backup hard disk (hdc) I see 870MB+ of disk usage.. So I deleted some files from this unmounted disk and sure enough, it freed space from the / (root) partition. Now if I were to mount this disk, you would see 24GB of disk usage.

    How can you see, 870MB+ on an unmounted disk?

  13. #13
    Join Date
    Mar 2002
    Location
    Denver, CO
    Posts
    70
    I technically have solved my problem, now I must move on to solving the next question at hand.

    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda7 1035660 151428 831624 16% /
    /dev/hda1 101089 34287 61583 36% /boot
    /dev/hda8 56135784 15959384 37324868 30% /home
    none 515436 0 515436 0% /dev/shm
    /dev/hda6 1035660 64540 918512 7% /tmp
    /dev/hda3 8262068 3713828 4128544 48% /usr
    /dev/hda2 8262068 3755008 4087364 48% /var
    /dev/hdc1 76896316 24511004 48479112 34% /backup

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •