1753888 Members
7217 Online
108809 Solutions
New Discussion юеВ

/usr is almost full

 
Waqar Razi
Regular Advisor

/usr is almost full

/usr file system on one of the servers is getting almost full (98%). Could any one tell me whats the best place to start on with.

Here is the output of du command:
457741 /usr
161968 /usr/lib
78797 /usr/sbin
47763 /usr/sbin/stm
45099 /usr/lib/nls
41323 /usr/lib/nls/loc
41143 /usr/dt
32747 /usr/lib/nls/loc/locales.1
29692 /usr/sbin/stm/uut
28509 /usr/conf
27707 /usr/lib/X11
25650 /usr/contrib
23363 /usr/bin
23130 /usr/share
19095 /usr/sbin/stm/uut/bin
18655 /usr/sbin/stm/uut/bin/tools
16396 /usr/sam
15747 /usr/conf/lib
15419 /usr/sbin/stm/catalog/C
15419 /usr/sbin/stm/catalog
14166 /usr/share/man
13712 /usr/lib/X11/fonts
12685 /usr/lib/X11/Xserver
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: /usr is almost full

Hi:

The '/usr' filesystem should be static, growing only when new software is added via 'swinstall' or from additions to '/usr/local'.

You may simply need to grow '/usr' with 'fsadm' if you have OnlineJFS or with 'extendfs' if you don't.

This is not a filesystem where you want to start manually removing things!

Regards!

...JRF...
Sharma Sanjeev
Respected Contributor

Re: /usr is almost full

Hi

Check the space in VG00 with vgdisplay vg00

and if you have space and ONLINE JFS extend it

1. lvextend
2. fsadm

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Waqar Razi
Regular Advisor

Re: /usr is almost full

What might be the reasons that /usr is growing, its total size is 800 MB and its growing 1% every two week.
Fabio Ettore
Honored Contributor

Re: /usr is almost full

Hi,

see the following link:

http://docs.hp.com/en/B2355-90164/ch03s10.html

I see much space taken from /usr/contrib:

25650 /usr/contrib

Check into /usr/local/bin and /usr/contrib/bin if there are useless files, otherwise you should enlarge the filesystem (I hope you have OnlineJFS to do that without umounting the filesystem).

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Tim Nelson
Honored Contributor

Re: /usr is almost full

execute a find with mtime on /usr

I cannot think of any file that should have had its mod date changed unless you have added software or patches.

#find files with mod time less than 10 days.
find /usr -mtime -10
or
find /usr -type f -mtime -10

Start looking at these or post them if the list is not too long.

As mentioned /usr could be static for years if you do not update software/patch, that is how stable it should be.

Extending: if you do not have OnlineJFS then you must extend /usr in single-user mode or use Ignite to rebuild and extend vg00.
Dennis Handly
Acclaimed Contributor

Re: /usr is almost full

>What might be the reasons that /usr is growing, its total size is 800 MB and it's growing 1% every two week.

Your du(1) output only has 457 Mb. Was there something you didn't list?
Or is there an open file that someone removed while the process keeps writing to it?
vinayan
Advisor

Re: /usr is almost full

Hello Razi ,

Check with these commands to know the biggest file and biggest directory.This May not be useful for you in the preset scenario but may be useful to find out the biggest files and biggest directories in a file system.

find /usr -xdev -size +1000000c -exec ll {} \; |sort -rnk 5 |more


#cd /usr
#du -sk * |sort -rnk 1 |more

This is just an informative thing.As the experts suggested you need to check for some space in vg00 ; check for online JFS ;

if there

use

lvextend -L (total size in MB) /dev/vg00/lvolx
fsadm -b (total size in MB)M /usr

hope this will be helpful


Deepak Kr
Respected Contributor

Re: /usr is almost full

The best reason for increase in /usr File system can be new installation using swinstall

Also it is not advisable to do housekeeping on installed programs.

Best way is check free space and extend file system accordingly

vgdisplay vg00|grep -i "Free PE"
lvextend followed by fsadm


Regds,
Deepak
"There is always some scope for improvement"
Waqar Razi
Regular Advisor

Re: /usr is almost full

Here is the display of the find command.

find /usr -mtime 15

/usr/bin/ric_uninstall
/usr/bin/rpconfig
/usr/share/man/cat1.Z/elm.1
/usr/share/man/cat1.Z/dd.1
/usr/share/man/cat1m.Z/cstm.1m
/usr/share/man/cat1m.Z/lvreduce.1m
/usr/share/man/cat4.Z/info.4
/usr/emc/API/symapi/log/symapi-20080730.log

Can some one suggest some thing?