Running out of space


 
Thread Tools Search this Thread
Operating Systems AIX Running out of space
# 1  
Old 03-13-2012
Running out of space

AIX 6.1
Of course, right at the end of the day I see that my "/" file system is just about out of space. I've been googling and reading man pages, but my google-fu is weak today. How do I find out what is taking all the space? I think I found the process that is cause *some* file to grow but I can't find it. I'm down to 23mb free!

Any help/direction would be greatly appreciated!
# 2  
Old 03-13-2012
The "du" command is a good start. Piping it through awk to select files larger than a certain size would be one way to work with it.
This User Gave Thanks to Skaperen For This Post:
# 3  
Old 03-13-2012
Another option would be
Code:
du -ks */

I gives you a total per directory so you can often quickly zoom in on the directories with the highest usage and work your way down..
or
Code:
du -ks * | sort -rn

to include files in the directory too and sort according to size
This User Gave Thanks to Scrutinizer For This Post:
# 4  
Old 03-14-2012
look into your root homedir - usually /root - if there are any large files or cores which can be deleted. If you use smitty a lot you might want to shrink the logfiles.

Regards
zxmaus
This User Gave Thanks to zxmaus For This Post:
# 5  
Old 03-14-2012
Scrutinizer, that was exactly what I was after! Although I did use -gs and -ms to drill it down (lol...gb's and mb's are easier to deal with).

zxmaus, I did go through and get rid of a bunch of log files.

Skaperen, I did try that but the information returned was too much to deal with effectively

Thanks everyone!

From a new to Unix Windows guy!
# 6  
Old 03-14-2012
Quote:
Originally Posted by Spellbound
Skaperen, I did try that but the information returned was too much to deal with effectively
Of course it is; that's why they suggested filtering the output with awk or other tools. Smilie You'll have fun exploring just how much these things can do for you, I'm sure. A small illustration:

Code:
$ du -hs ./* # Sizes of all files or folders in our CD-backup folder
269M    ./03-part
2.1G    ./P4_class_disc_image_Jan_05.iso
1.7G    ./accounting
2.1G    ./adobe
0       ./editor
4.5G    ./educational
277M    ./efiche-.....iso
1.1G    ./games
1.7M    ./zzz-backup.iso
785M    ./jamaica-tape
1.2G    ./map
530M    ./music-cd.iso
6.7G    ./office
3.5G    ./osx
6.4G    ./utility
2.4G    ./w7
19G     ./windows

# All sizes over 5 gigabytes
$ du -hs ./* | awk '/G/ { sub(/G/, "", $1); if($1 > 5) { $1=$1 "G"; print } }'
6.7G ./office
6.4G ./utility
19G ./windows

$

It would have actually been easier to do that without human-readable output. I had to match all sizes with G in them, strip the G off, compare the size, put the G back and print the lines I wanted. If it was in 1K blocks, I could have done it with ... | awk '$1 > 5000000' and that'd be it. Awk is designed to deal with tabular data.

Machine-readable output is fun. Smilie
# 7  
Old 03-14-2012
Thanks for the reply! I must be missing something very basic here...<the joys of being a n00b>. When I do a df -m it shows that / has 1728mb blocks with 32.16mb free. So the question now is...what the heck does "/" consist of? In Windows it would be all files not in any folders. I'm trying to determine what is taking that space.

Thanks as always!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Running out of /usr space ...

Hi, Can anyone please advise me on how can i increase /usr disk space manually. The partition was created using manual disk spaces as per IT dept. request As i don't have any space available on the said production system. Therefore, i can move the /U01 FS to /U02 file system which will allow... (7 Replies)
Discussion started by: vitalwebsigns
7 Replies

2. Solaris

Running a script in a sub dir with space in it

Hi I am trying to run a script in a sub-directory, that has one space on it: such as: /internaldisk1/Task Logs1, but my entry in cron is not working: 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /internaldisk1/Task\ logs1/./remov_reject.sh > /var/tmp/interd_`date '+%Y%M%d'`.log 2>&1 Please can... (4 Replies)
Discussion started by: fretagi
4 Replies

3. UNIX for Advanced & Expert Users

Need to remove leading space from awk statement space from calculation

I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation? Here is my query: cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}' 02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies

4. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Solaris

Disk space being used up while running a script

We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space. why do this happen ? any work around please we are using solaris 10 P.S. : a part of the code will make some connection to the DB (1 Reply)
Discussion started by: chidori
1 Replies

6. AIX

Alter paging space while the server is running

========================================================================= Hi I should make hd6 as 6144MB and remove paging00 How to do ? root@dbspsdbn1 #lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging01 hdisk2 ... (1 Reply)
Discussion started by: newtoaixos
1 Replies

7. Shell Programming and Scripting

Running web pages located outside webserver space

I can't find any good, active Apache forums, anyone know? Either way I'll ask once here. Let's say all webpages on the server run from /var/www directory and you would like to store some webpages elsewhere on the filesystem and still the apache webserver can access them like they were located in... (5 Replies)
Discussion started by: stevenswj
5 Replies

8. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

9. HP-UX

Problem running out of space by copying files to identical filesystems

I am trying to copy a filesystem from one server to another using rsync over the WAN. As far as I can tell, the two filesystems are identical but for some reason I cannot copy the last file because I keep running out of space. SERVER 1: mkfs -m <lvol> mkfs -F vxfs -o... (1 Reply)
Discussion started by: keelba
1 Replies

10. UNIX for Advanced & Expert Users

Running out of Space (Root)

Hi, I m working on about 16 Unix Servers, Sometime a file is generated in the root names STA, which causes the root to run out of space within few seconds ,,, and the server crashes..... hlp me out to find why the file is generated , what does it contain 'n' what is the cause ! (0 Replies)
Discussion started by: scorpiyanz
0 Replies
Login or Register to Ask a Question