AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  root filesystem 100% full

    Posted Thu August 19, 2010 02:10 AM

    Originally posted by: wkpmech


    Hi,
    hetting message like root filesystem 100% full.
    how to resolve it.

    Thanks


  • 2.  Re: root filesystem 100% full

    Posted Thu August 19, 2010 03:58 AM

    Originally posted by: Renaud


    Run this command to find the 20 biggests files :

    find / -xdev -type f -exec du -am {} \; | sort -rn |head -n 20.


  • 3.  Re: root filesystem 100% full

    Posted Thu August 19, 2010 08:33 AM

    Originally posted by: wkpmech


    Hi,
    Thank u for replying.


  • 4.  Re: root filesystem 100% full

    Posted Fri August 20, 2010 01:15 PM

    Originally posted by: info.techie


    du -m|sort -nr|head 20


  • 5.  Re: root filesystem 100% full

    Posted Thu August 26, 2010 07:08 AM

    Originally posted by: Ashok_AIX_Admin


    cd /
    du -xm . | sort -nr | head -20

    Please note -x option will list only the files and folders in the same device.


  • 6.  Re: root filesystem 100% full

    Posted Fri August 27, 2010 03:07 AM

    Originally posted by: brown_kar


    Hi Thanks for the Info..

    can you please explain this command

    find / -xdev -type f -exec du -am {} \; | sort -rn |head -n 20


  • 7.  Re: root filesystem 100% full

    Posted Fri August 27, 2010 09:30 AM

    Originally posted by: Kosala


    man find
    man du
    man sort


  • 8.  Re: root filesystem 100% full

    Posted Fri August 27, 2010 09:44 AM

    Originally posted by: orphy


    First of all, I think it's great that we have all these new users joining the Forum lately and wanted to learn but a new user should do his/her own homework BEFORE asking questions such as this. UNIX has a thing ccalled man pages to guide us in learning new (and sometimes old) things. That's what we old-timers (Did I really say that?) usually check with when we have questions about commands and/or parameters. Who out there remembers all the options to ps? Well, at least I don't!

    With that said, you should check man pages for find, du, sort, and head. The "|" is what we call pipe in UNIX. It essentially creates a channel between the command on its left and the command on its right that allows the command on its right to "do something" with the output generated by the command on the left of the pipe. If you want to learn more about this, any good UNIX book should get you what you need or just Google or Bing it.
    Orphy