Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Systematic approach Full FileSystems

Systematic approach Full FileSystems

I am attempting to develop a structured approach to dealing with a file system at 100% (or near a threshold).  I know that proper monitoring should prevent that but bear with me.

I am thinking about 2 situations

1.    A file system may have shot up very quickly.  In this case I would run a find command to list all file modified in the last 2 days on that file system and manually assess which one it might be the cause.
2.    A file system may be getting near to a threshold and may go over soon.  I am thinking I would first determine all the directories in that file system (right now I don’t have an easy way to do this), then run a du –hs <directory> on each one to see which ones have the most, then manually dig into each directory recursively looking for old or useless files that can be archived or deleted.

Is there any other suggestion, step or checks that you would do?

RE: Systematic approach Full FileSystems

Here's how I find the directories that are taking up the most space...


du -kod /export/home | sort -rn | head -20
That would get the 20 top directories by size in the /export/home file system. Replace /export/home with whatever filesystem is filling up or full.

RE: Systematic approach Full FileSystems

Add in a check for core files, sometimes the cause of sudden increases.

RE: Systematic approach Full FileSystems

Thanks for the feedback.  I will open the SunSolve account as suggested.

RE: Systematic approach Full FileSystems

Quote (SamBones):

Here's how I find the directories that are taking up the most space...


du -kod /export/home | sort -rn | head -20

Well, that pretty much renders my dispus script redundant in one fell swoop; how come I never noticed those "o" and "d" options before! blush  Much quicker too!


RE: Systematic approach Full FileSystems

And this will find the 20 biggest files in a particular file system...


find /export/home -mount -type f -exec du -k {} \; | sort -rn | head -20
This doesn't list directory totals, just the files themselves.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close