- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: filesystems filling up
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
08-12-2005 02:11 AM
08-12-2005 02:11 AM
filesystems filling up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 02:14 AM
08-12-2005 02:14 AM
Re: filesystems filling up
An easy way to track down heavy filesystem usage is to: -
change directory to the base of your filesystem, eg /opt
df -sk * | sort -n
this shows the size of the directory trees within so you can identify the largest one(s)
change directory to the largest and do the df again, until you find the largest single entity.
Post back your results and we may be able to help whether you can delete or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 02:15 AM
08-12-2005 02:15 AM
Re: filesystems filling up
du -skx /opt | sort -nk1
Will give you the list of the files that are using most of the space. Check those files and see why they are growing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2005 03:29 AM
08-12-2005 03:29 AM
Re: filesystems filling up
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=19566
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2005 10:16 AM
08-13-2005 10:16 AM
Re: filesystems filling up
Possibly log files are creating problems. To verify find the latest modified files. or else use
#find . -size +5000000c -xdev -exec ll {} \;
to find files larger than 5MB. This should help
Cheers !!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 06:00 AM
08-15-2005 06:00 AM
Re: filesystems filling up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 06:10 AM
08-15-2005 06:10 AM
Re: filesystems filling up
Try to find out the recent large files . The following script will help you.
#This script finds recenty created large files
#
#Author : Syam
#Version : 1.1
#Date : 26/01/2005
#
#
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
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 06:14 AM
08-15-2005 06:14 AM
Re: filesystems filling up
So don't bother extending /var. It's full of logfiles that first need to be read...you may have serious hardware failures and the logs are yelling at you to fix the problem. Start with analyzing the size of /var and see where most of the space is used:
du -kx /var | sort -rn | head -20
If you see that /var/adm is the largest subdirectory, look inside at the size of the files:
ll /var/adm | sort -rnk5 | head -20
Since there are dozens of logfiles, you'll need to post the names of the files. And always look at syslog on a regular basis (daily is good). /var/adm/syslog/syslog.log is the file. It may hundreds of megfs in size (that's bad and an indication that you have problems to fix). Look also at /var/adm/syslog/mail.log and if it is large, your email is misconfigured.
Or the largest directories are in some other location. Post the results of the du command above and we can suggest what to do.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 06:21 AM
08-15-2005 06:21 AM
Re: filesystems filling up
Check which applications that is installed and, where they are installed. /opt is normally used for binary files, and should change very little. /var may increase but, under normal conditions, also this volume should increase rather slow.
It is a common praxis, when installing more complex applications, to create separate volumes for the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2005 09:53 AM
08-15-2005 09:53 AM
Re: filesystems filling up
Hope this command will help you to find out the largest files and deciding to trim the filesystem or not , and what is filling up the space :
1]
# cd /filesystem
# ls -lR | sort +4 -5nr | more
----------
2]If there is a number of mountpoints on this directory use the -xdev argument with find option.
# cd /filesystem
# find . -type f -xdev -exec ls -l {} \; > output.txt ; cat output.txt | sort +4 -5nr > outfinal.txt ; rm output.txt
Check the final.txt for the largest files in serial order. And u can decide which is filling up the space, and can free up space.
Cheers,
R.Veri.
------