- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /tmp filling up problems
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
04-29-2005 04:23 AM
04-29-2005 04:23 AM
/tmp filling up problems
Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 04:30 AM
04-29-2005 04:30 AM
Re: /tmp filling up problems
fstyp -v /dev/vg00/lvol1
f_frsize=8192
f_bsize is the default value
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 04:32 AM
04-29-2005 04:32 AM
Re: /tmp filling up problems
From Robert-Jan's response in this thread, I believe your block size is most likely 1024K:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=866780
Not sure how you'd check it, though.
As far as your /tmp filling up, I would set up a nightly cron job to clean every thing older than so many days:
01 01 * * 01 /usr/bin/find /tmp -type f -mtime +10 -exec rm {} \;
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 04:50 AM
04-29-2005 04:50 AM
Re: /tmp filling up problems
For my / filesystem:
# fstyp -v /dev/vg00/lvol3
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 143360
f_bfree: 23970
f_bavail: 22728
f_files: 9864
f_ffree: 5992
f_favail: 5992
f_fsid: 1073741827
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 7
f_size: 143360
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 07:24 AM
04-29-2005 07:24 AM
Re: /tmp filling up problems
The f_frsize is the actual blocksize of the filesystem. In your case 1024.
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 10:20 AM
04-29-2005 10:20 AM
Re: /tmp filling up problems
you should find out what is creating these files, are they log files or data files?
Ideally though you should think about creating a new filesystem and mounting /tmp on it as this will prevent root filling up to 100% which will cause numerous system problems/
Lawzo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 10:27 AM
04-29-2005 10:27 AM
Re: /tmp filling up problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 03:01 PM
04-29-2005 03:01 PM
Re: /tmp filling up problems
/tmp is not for use by applications. The correct location (for the last 10 years or so) is /var/tmp.
/tmp is not normally part of the root filesystem. If you type bdf /tmp, does it report /tmp or just / at the end of the line?
The / filesystem is static and only root user can write to it. So if the DBAs have root privileges, take it away. Then analyze / using du:
du -kx / | sort -rn | head -20
This will show the biggest directories at the top. The largest directories will be /sbin and /etc. Anything else is a problem. The root filesystem doesn't change size.
The blocksize does not control the minimum storage size, it is the frag size. However, today's disks are so big, worrying about hundreds of small files is unimportant. You find the largest directories first, then look in those directories to see why they are so big.
Post the above du list and we can probably find the problem very quickly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2005 05:43 PM
04-29-2005 05:43 PM
Re: /tmp filling up problems
->Thank you all for your help. Please close this thread.
It is not advised to close threads untill your problem is resolved.
Moreover, threads open by you can be closed by you. When you see your own threads having logged in to itrc, it will provide you the option of closing the thread. It is also advised to assign points to all the replies according to relevance while closing the thread. The option to assign points is also available when you view your own threads.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 08:51 AM
05-01-2005 08:51 AM
Re: /tmp filling up problems
to add that detail about how much space is occupied by one of those small files:
- your file system block size is really 1024 byte/block (fr_size)
- the VxFS allocates 8 blocks by default to each to each new files - that makes 8KB/per file, even though only one block is currently used
- be careful about hundreds or even thousands of files within one directory: UN*X reads and writes directories always completly. So, if your directory's size if bigger than a few KB, this will slow down your system!
FWIW,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 04:29 AM
05-10-2005 04:29 AM
Re: /tmp filling up problems
Thank you for your advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 04:52 AM
05-10-2005 04:52 AM
Re: /tmp filling up problems
Let's say last reboot was in November, I'll do something like:
pwd (to make sure I'm in the right directory)
ll | grep -v -e Nov -e Dec -e Jan -e Feb -e Mar -e May -e Apr > useme
awk -f '{print "rm -r ",$NF}' < useme > useme2
chmod +x useme2
./useme2
I use this especially when a lot of the stuff is old vi temp files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 06:49 AM
05-10-2005 06:49 AM