- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr 98% full
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:25 AM
12-15-2004 01:25 AM
Thanks for your help in advance. Attached is the output from bdf /usr
Cheers.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:28 AM
12-15-2004 01:28 AM
Solution/usr is where you install software.
The content is supposed to be static. I've run systems for months with /usr at 98% without any difficulties at all.
Variable output and logs are directed to /var
If this figure is changing without software instalaltions, then look for an application that is storing variable output in /usr
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:28 AM
12-15-2004 01:28 AM
Re: /usr 98% full
So
# cd /usr
# du -sk * | sort -An
0 adm
0 hpC2400
0 keysh
0 lost+found
0 mail
0 man
0 netls
0 news
0 openv
0 preserve
0 pub
0 spool
0 tftpdir
0 tmp
3 etc
15 TT_DB
40 examples
874 vue
1462 tsm
2862 old
4222 dmi
7855 include
7867 newconfig
8796 lbin
17092 ccs
23556 sam
32691 obam
33035 bin
44959 contrib
54400 share
57924 conf
67520 dt
85627 sbin
93439 local
570480 lib
I would then go in lib and do the same command until I've freed up enough space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:30 AM
12-15-2004 01:30 AM
Re: /usr 98% full
The bdf isn't all that helpful. You need to analyze what's filling it up. Run "du -sk /usr/* |sort -n". This will produce a listing of the files and directories under /usr from smallest to largest. If something immediately jumps out at you as being out of line, investigate it. If not, start looking at the largest areas by running "du -sk /usr/bigdir/* |sort -n" and keep drilling down until you find the culprit.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:31 AM
12-15-2004 01:31 AM
Re: /usr 98% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:35 AM
12-15-2004 01:35 AM
Re: /usr 98% full
du -sk * |sort -n
Look at the largest - non mounted ones....
Keep drilling down the directories...
If room in the vg, if you have online jfs - you can extend on the fly,
lvextend -L 1572864 /dev/vg00/lvol7
fsadm -b 1572864M /usr
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:37 AM
12-15-2004 01:37 AM
Re: /usr 98% full
I suspect you've a installed non-OS software in /usr that may be generating logs or temp files, etc. Do the following:
du -ax /usr|sort -nr|head 20
This will give you the biggest top 20 directories AND files.
If what you have is a large log file - DO NOT SIMPLY DELETE IT as it will not give you back space. Copy it to a temporary holding space COMPRESSED if it is a text file (file command). Do a :
cat /usr/somesoftware/biglogefile.txt|gzip>/temp_repo/biglogfile.txt.gz
Then you simply cp /dev/null /usr/somesoftware/biglogefile.txt
Hope this helps..
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:37 AM
12-15-2004 01:37 AM
Re: /usr 98% full
You should just increase it. If you have OnlineJFS, This can be done without a reboot.
Please post output for "du -ks /usr/*".
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:43 AM
12-15-2004 01:43 AM
Re: /usr 98% full
Correction on the head command -- there should be a -:
du -ax /usr|sort -nr|head -20
Note:
du -sk /usr/* will only show you directory sizes.
du -ax /usr WILL show you both directory sizes AND files. files -- because I suspect a growing log file on there.. (possibly /usr/vendor/autotree - if Autosys is installed... for example..)
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:46 AM
12-15-2004 01:46 AM
Re: /usr 98% full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:47 AM
12-15-2004 01:47 AM
Re: /usr 98% full
du -ax /usr|sort -nr|head > big.txt
this means absolutely nothing to me, anyone care to explain exactly what I can do with this knowledge?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:53 AM
12-15-2004 01:53 AM
Re: /usr 98% full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:54 AM
12-15-2004 01:54 AM
Re: /usr 98% full
du -ax /usr|sort -nr|head -20 > 20.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:56 AM
12-15-2004 01:56 AM
Re: /usr 98% full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:57 AM
12-15-2004 01:57 AM
Re: /usr 98% full
du -akx /usr|sort -nr|head -20
Mine is:
1604952 /usr
522560 /usr/lib
268568 /usr/local
191288 /usr/ecc
191280 /usr/ecc/exec
164800 /usr/local/src
150240 /usr/lib/nls
118952 /usr/lib/X11
114568 /usr/sbin
102768 /usr/lib/nls/loc
95424 /usr/lib/X11/fonts
84072 /usr/dt
76368 /usr/share
75264 /usr/contrib
73584 /usr/lib/pa20_64
72080 /usr/lib/X11/fonts/TrueType
67600 /usr/conf
60872 /usr/sbin/stm
59864 /usr/share/man
51344 /usr/local/ps
My usr is 2 GB.
I would increase yours if possible.
You /usr/lib seems larger then normal - mine is 500 MB - yours is 700...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 01:58 AM
12-15-2004 01:58 AM
Re: /usr 98% full
If your /usr has remained at or about 90-98% for sometime - then you probably have a STATIC /usr filesystem that you need not worry. BUT I am still worried you may have a log/output directory that generates small log files. Give us an output (complete) of du -sk /usr |sort -nr and let's see if you've non-OS/system subdirecotries underneath.
Pete,
du -sk /usr will summarize only at that level -- files and directories and will only show you large subdirectories.
du -ax will show you not only the biggest directories but also your culprit biggest files.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:04 AM
12-15-2004 02:04 AM
Re: /usr 98% full
What is content of /usr/lib/nls/loc/pa20_64/locales.2 ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:06 AM
12-15-2004 02:06 AM
Re: /usr 98% full
ummm...*looking down sheepishly at floor* it dawned on me that this is probably because I installed the latest December Quality Packs yesterday.
I check the log book and /usr was at 85% before patch install and now it is 98%. We do not have Online JFS, so how should I go about extending /usr...indeed, SHOULD I extend /usr?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:08 AM
12-15-2004 02:08 AM
Re: /usr 98% full
No points for this, please.
Nelson,
I guess it's a matter of preference:
# du -ax /usr|sort -nr|head
2155216 /usr
1144720 /usr/lib
347920 /usr/lib/nls
316512 /usr/lib/X11
272176 /usr/lib/X11/fonts
253872 /usr/lib/nls/loc
225264 /usr/lib/X11/fonts/TrueType
215872 /usr/sbin
170496 /usr/dt
156896 /usr/share
This seems to break down /usr/lib - I guess that's what you're saying.
# du -sk /usr/* |sort -nr |head
572360 /usr/lib
107936 /usr/sbin
85248 /usr/dt
78448 /usr/share
59520 /usr/conf
34184 /usr/contrib
33600 /usr/obam
29688 /usr/sam
26168 /usr/bin
14016 /usr/ccs
This summarizes /usr/lib and shows me more suspect top level directories which I can then manually drill down into.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:12 AM
12-15-2004 02:12 AM
Re: /usr 98% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:12 AM
12-15-2004 02:12 AM
Re: /usr 98% full
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:17 AM
12-15-2004 02:17 AM
Re: /usr 98% full
What gives this commands :
swlist -l fileset | grep "^ *International"
swlist -l fileset | grep -i utf8
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:22 AM
12-15-2004 02:22 AM
Re: /usr 98% full
========================
BOOT TO SINGLE USER MODE
========================
# shutdown -r now
(interrupt boot sequence from keyboard(
Enter Command> boot pri isl
ISL > boot hpux -is
# /sbin/lvextend -L 1572864 /dev/vg00/lvol7
# /sbin/fsadm -b 1572864M /usr
# /sbin/mount -a
# /sbin/shutdown -r -y now
Questions...
I would have previously done
# /sbin/lvextend -L 1572864 /dev/vg00/lvol7
# /sbin/extendfs - F vxfs /dev/vg00/rlvol7
Why is it
# /sbin/fsadm -b 1572864M /usr
instead of
# /sbin/extendfs - F vxfs /dev/vg00/rlvol7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:22 AM
12-15-2004 02:22 AM
Re: /usr 98% full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 02:25 AM
12-15-2004 02:25 AM
Re: /usr 98% full
# /sbin/fsadm -b 1572864M /usr
would be used if you had OnlineJFS You need to go back to your previous method:
# /sbin/lvextend -L 1572864 /dev/vg00/lvol7
# /sbin/extendfs - F vxfs /dev/vg00/rlvol7
Pete
Pete