- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cleaning up /usr filesystem
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
03-07-2005 07:26 AM
03-07-2005 07:26 AM
Cleaning up /usr filesystem
I've just inherited a server that the /usr filesystem is at 95%. Anyone have any ideas on logfiles, or any other "useless" stuff (at this point anyway) that I can dump??
Thanks,
Chet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 07:30 AM
03-07-2005 07:30 AM
Re: Cleaning up /usr filesystem
Do the following commands;
# cd /usr
# du . -ka | sort -nr | more
The du command (with the sort) will provide you a list of files from biggest to smallest. Once you have this list you can parse through.
The /usr/bin, /usr/sbin/, /usr/lib, etc you will want to leave alone. What else have you got?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 07:31 AM
03-07-2005 07:31 AM
Re: Cleaning up /usr filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 09:13 AM
03-07-2005 09:13 AM
Re: Cleaning up /usr filesystem
(of course this is only the first "page" of content from the du, but nothing is really standing out at me)
629044 .
219706 ./lib
75120 ./dt
66016 ./share
50038 ./conf
48778 ./share/man
47326 ./lib/X11
38886 ./sbin
38194 ./bin
31462 ./sam
25986 ./lib/X11/fonts
24726 ./conf/lib
23864 ./dt/appconfig
23372 ./lib/sw
22290 ./contrib
21064 ./lib/sw/hpux.install
18910 ./lib/X11/Xserver
18526 ./lib/nls
18018 ./java
17640 ./dt/bin
16412 ./dt/lib
15616 ./sam/lib
Thanks,
Chet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 12:27 PM
03-07-2005 12:27 PM
Re: Cleaning up /usr filesystem
Did you check your vg00? It has probably some space left. If it has, extend the /usr. Its very hard to determine what is not important in your /usr.
#vgdisplay -v vg00
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 01:40 PM
03-07-2005 01:40 PM
Re: Cleaning up /usr filesystem
1, Have you found core file on this file system
let try this command:
#find /usr -name core -exec rm -f {} \;
to delete all core file.
2, determine which directory if biggest by issue this command
#du -sk|sort -nr
Regard
tienna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:29 PM
03-07-2005 02:29 PM
Re: Cleaning up /usr filesystem
Run the following script and select /usr when prompted for a diretory to search. input 10000 when prompted for size of files.and 300 for the next prompt. You can find the output in find.out file as well as on screen.
#This script finds recenty created large files
#
#Syam K
#Consultancy
#26/01/2004
#
#
rm -f find.out
echo
echo "Enter directory to search"
read DIRNAME
if [ ! -d $DIRNAME ]
then
echo "Error: directory $DIRNAME does not exist"
exit 1
fi
echo
echo "How large a file do you want to look for ? (in Kbytes)"
read SIZE
echo
echo "How many days since the file was created ?"
read DAYS
echo
echo "Searching..."
find $DIRNAME -type f -size +$SIZE -mtime -$DAYS -exec ls -ls {} \; | sort -n -r | tee find.out
echo
echo "Done"
echo
echo "Note: output in find.out"
echo
Hope this helps.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:35 PM
03-07-2005 02:35 PM
Re: Cleaning up /usr filesystem
One more thing..
If you have a vertitas backup oftware installed on this machine, the log files of the same will be there at
/usr/openv/netbackup/logs/bpcd/
/usr/openv/netbackup/logs/bpbkar/
/usr/openv/netbackup/logs/bptm/
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:41 PM
03-07-2005 02:41 PM
Re: Cleaning up /usr filesystem
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 04:14 PM
03-07-2005 04:14 PM
Re: Cleaning up /usr filesystem
The best thing to do is extend /usr into unused vg00 extents. Second best, when you can't reboot the server and/or don't have OnlineJFS -- just my opinion -- *CAREFULLY* create a new filesystem in vg00 to hold some old stuff from /usr -- say, /usr/lib/X11. Move it from the original /usr to the new filesystem and install a link. Third choice, and you have to be even more CAREFUL, understanding what's needed during the boot process, etc -- create a new filesystem outside vg00 and move the stuff there -- say, /usr/lib/X11.
Your mileage may vary. These are kind of desperate tactics.
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 10:29 AM
03-08-2005 10:29 AM
Re: Cleaning up /usr filesystem
Thanks again...
Chet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 11:03 AM
03-08-2005 11:03 AM
Re: Cleaning up /usr filesystem
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 01:21 AM
03-09-2005 01:21 AM
Re: Cleaning up /usr filesystem
Michelle