Sponsored Content
Full Discussion: Running out of space
Operating Systems AIX Running out of space Post 302607430 by Corona688 on Wednesday 14th of March 2012 11:33:33 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
FRAGISO(8)						      System Manager's Manual							FRAGISO(8)

NAME
fragiso - split rpm packages from an iso and reassemble the iso later on SYNOPSIS
fragiso make iso fiso fragiso list fiso fragiso fill [-m] fiso iso DESCRIPTION
fragiso can be used to convert an iso file into a fragment file, which is a list describing all of the rpms on the iso and a data chunk containing everything but the rpms. It is used by drpmsync when an iso needs to be transferred. The idea is that often the rpms on the iso are already available on the destination host, so it saves bandwidth to first transfer the fragmented iso, copy the locally available rpms, transfer the unavailable rpms and reassemble the iso file. fragiso make converts the iso into the fragment iso, fragiso list can be used to extract the rpm information. This information consists of the offset and length of all rpms and the lead/signature header md5sum plus the header/payload md5sum. To reassemble the iso one has to copy the rpms at the right offset into a new file and then use fragiso fill later on to provide all data not contained in the rpms. The -m option tells fragiso to print the resulting md5sum of the iso to stdout. It can be used for verification purposes. SEE ALSO
drpmsync(8) AUTHOR
Michael Schroeder <mls@suse.de> Mar 2007 FRAGISO(8)
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy