Sponsored Content
Full Discussion: /usr is growing fast
Operating Systems AIX /usr is growing fast Post 302550799 by agama on Saturday 27th of August 2011 01:30:34 PM
Old 08-27-2011
When a file is deleted the file is removed from the directory, but will continue to occupy disk space until all references to the file are closed. It is quite possible that you, or some automated process, has 'cleaned up' the large file, but that there is still one or more programmes that have the file open and thus the real disk space isn't being released.

if lsof is installed, you can use it to see which processes on your system have files open under /usr. Further, the output will show the file size and if the corresponding directory entry to the file has been deleted. I wrote a quick programme that opened a file, immediately unlinked it, and then slept long enough for me to run lsof; the output is below as an example of what to look for:

Code:
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
a.out   5424 agama  cwd    DIR    8,2    20480 8856178 /home/agama/src/test
a.out   5424 agama  rtd    DIR    8,1     4096       2 / 
a.out   5424 agama  txt    REG    8,2    10929 8855688 /home/agama/src/test/a.out
a.out   5424 agama  mem    REG    8,1  1419604 1433613 /lib/libc-2.9.so
a.out   5424 agama  mem    REG    8,1   125888 1433606 /lib/ld-2.9.so
a.out   5424 agama    0u   CHR  136,9      0t0      11 /dev/pts/9
a.out   5424 agama    1u   CHR  136,9      0t0      11 /dev/pts/9
a.out   5424 agama    2u   CHR  136,9      0t0      11 /dev/pts/9
a.out   5424 agama    3u   REG    8,2        0 8856594 /home/agama/src/test/foo.bar (deleted)

If you run the command and grep for /usr, that might identify the process that has the huge file open.

Last edited by agama; 08-27-2011 at 02:31 PM.. Reason: clarification
 

9 More Discussions You Might Find Interesting

1. AIX

AIX Growing Files

Hi Everybody, I want to know the names & locations of the common AIX files which it's size keep growing. I think there is a procedure to clean these files to avoid the space overflow, I wish also if anybody can tell me what is the proper procedure to make more available space. Another issue, that... (2 Replies)
Discussion started by: aldowsary
2 Replies

2. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

3. Solaris

Growing /opt

Hi, /opt on my disk is almost 90%. I thought of growing it. I followed the below procedure: 1. added a new hard disk 2. formatted the same with ufs 3. created a slice and tried to label it as "opt" with "wm" permissions. but got stuck at 3 as it is not allowing me to label the slice... (9 Replies)
Discussion started by: EmbedUX
9 Replies

4. Filesystems, Disks and Memory

Growing a FS over 1T - can it be done ?

Greeting Forumers! I've been asked to increase space in a FS that is currently 740G in size: Filesystem size used avail capacity Mounted on /dev/md/dsk/d664 740G 424G 308G 58% /ora_back My SAN administrator has allocated 5 LUNs of 200G each - this will make... (3 Replies)
Discussion started by: bluescreen
3 Replies

5. Solaris

Help with Growing FS

Ok so I just installed Solaris 10 on my x86 laptop. But I too the defaults and now all of the FS's are very small. I can't install anything. The drive is a 40GB but only about 11GB is being seen and used. How can I get the OS to see and use the rest of the drive? I was just going to reinstall, but... (3 Replies)
Discussion started by: bbbngowc
3 Replies

6. Shell Programming and Scripting

growing files

I am trying to be pro-active and prevent FS from filling up. I know about the df/du command also find -size -mtime ....... What I want to know is there a way I can do a find to see which files have been accessed or modified after a specifc YYYYMMDD-HHMMSS. What I am really looking for is to... (4 Replies)
Discussion started by: BeefStu
4 Replies

7. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

8. AIX

Help growing fs

Hello, I have a filesystem that I'm trying to grow but it's giving me the error: 0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough physical volumes to keep strictness and satisfy allocation requests. The... (5 Replies)
Discussion started by: bbbngowc
5 Replies

9. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies
UNBURDEN-HOME-DIR(1)						   User Commands					      UNBURDEN-HOME-DIR(1)

NAME
unburden-home-dir - unburdens home directories from caches and trashes SYNOPSIS
unburden-home-dir [ -n | -u | -f filter ] unburden-home-dir ( -h | --help | --version ) DESCRIPTION
unburden-home-dir unburdens the home directory from files and directory which cause high I/O or disk usage but are neither important if they are lost, e.g. caches or trash directory. When being run it moves the files and directories given in the configuration file to a location outside the home directory, e.g. /tmp or /scratch, and puts appropriate symbolic links in the home directory instead. OPTIONS
-f just unburden those directory matched by the given filter (a perl regular expression) -- matches the already unburdened directories if used together with -u. -F Do not check for files in use with lsof before (re)moving files. -n dry run (show what would be done) -u undo (reverse the functionality and put stuff back into the home directory) -h, --help show this help --version show the program's version EXAMPLES
Example configuration files can be found at /usr/share/doc/unburden-home-dir/examples on Debian-based systems and in the etc/ directory of the source tar ball. FILES
/etc/unburden-home-dir, /etc/unburden-home-dir.list, ~/.unburden-home-dir, ~/.unburden-home-dir.list, /etc/default/unburden-home-dir, /etc/X11/Xsession.d/95unburden-home-dir Read /usr/share/doc/unburden-home-dir/README on debianoid installations or README in the source tar ball for an explanation of these files. SEE ALSO
corekeeper (http://openvswitch.org/cgi-bin/gitweb.cgi?p=corekeeper), autotrash(1), agedu(1), bleachbit(1). For du(1)-like but more comfortable tools, see ncdu(1) (text-mode), baobab(1) (GNOME), filelight(1) (KDE), xdiskusage(1) (X tool calling du(1) itself), or xdu(1) (X tool reading du(1) output from STDIN). AUTHOR
Unburden Home Dir is written and maintained by Axel Beckert <beckert@phys.ethz.ch> LICENSE
Unburden Home Dir is available under the terms of the GNU General Public License (GPL) version 2 or any later version at your option. Unburden Home Directory May 2012 UNBURDEN-HOME-DIR(1)
All times are GMT -4. The time now is 05:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy