LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2009, 07:17 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
How to check how much disk space left?


I have a iPlanet Web-Server installed on RH-Linux. Sometimes (not always) as I send WS-request to the application server via this Web-Server I got error message as follow:

Code:
...
Tue Sep  8 11:32:42 2009 Temp Post File name = [/tmp/_wl_proxy/_post__28832_77]
Tue Sep  8 11:32:42 2009 Could not open temp post file '/tmp/_wl_proxy/_post__28832_77' for POST of size 2306
Tue Sep  8 11:32:42 2009 *******Exception type [WRITE_ERROR_TO_FILE] (Cannot open TEMP file '/tmp/_wl_proxy/_post__28832_77' for POST of 2306 bytes
...
I guess maybe the maschine/server has little disk left. So I want to check it.
 
Old 09-09-2009, 07:52 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The "df" command will tell you.
 
Old 09-09-2009, 07:55 AM   #3
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
I guess du and df commands might work for you.

du - estimate file space usage
it usually tells you how big is a file, you can use it like du [file / folder]

df - report file system disk space usage
it tells you the usage and free space on a disk or file system.

Both are better with the -h option which makes it easier to read (MB instead of bytes for example).

Read the man pages for more info.

Last edited by RaptorX; 09-09-2009 at 07:56 AM.
 
Old 09-09-2009, 07:59 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
use
#df -h

thnks
 
Old 09-09-2009, 09:17 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by thomas2004ch View Post
I have a iPlanet Web-Server installed on RH-Linux. Sometimes (not always) as I send WS-request to the application server via this Web-Server I got error message as follow:

Code:
...
Tue Sep  8 11:32:42 2009 Temp Post File name = [/tmp/_wl_proxy/_post__28832_77]
Tue Sep  8 11:32:42 2009 Could not open temp post file '/tmp/_wl_proxy/_post__28832_77' for POST of size 2306
Tue Sep  8 11:32:42 2009 *******Exception type [WRITE_ERROR_TO_FILE] (Cannot open TEMP file '/tmp/_wl_proxy/_post__28832_77' for POST of 2306 bytes
...
I guess maybe the maschine/server has little disk left. So I want to check it.
Apparently your '/tmp' needs to be flushed. You need to find out what is eating your file space on '/tmp' when you attempt the request(s). Look at your logs.

If you are the admin for this system then the '/tmp' space allocation and reclamation is not setup properly.
 
Old 09-09-2009, 04:22 PM   #6
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Cool

Hi Onebuck,

In case if you just want to check the file size, then :
du -sh
will help you. It will show you the size of the directory/folder/drive.

But, if you want to check the memoru usage over the partitions, then :
df -h
will help you.

And in case, if you just wanna see the detailed memory figures, then :
free -mo
will help you.

Cheers,
Kapil
 
Old 09-09-2009, 05:36 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by kapilbajpai88 View Post
Hi Onebuck,

In case if you just want to check the file size, then :
du -sh
will help you. It will show you the size of the directory/folder/drive.

But, if you want to check the memoru usage over the partitions, then :
df -h
will help you.

And in case, if you just wanna see the detailed memory figures, then :
free -mo
will help you.

Cheers,
Kapil
Thanks! I'm aware of the commands you posted. The OP is the one with the '/tmp' space problem.
Apparently there are stale files filling the space.

I saw no reason to post commands that others had already posted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core dump is larger than file space left on disk? goodkodiak Linux - Software 2 01-24-2009 12:06 AM
How to find how much free space left on my hard disk? DataSheet Linux - Newbie 5 01-06-2007 10:35 PM
No space left on disk rtaft Linux - Software 5 12-27-2006 12:28 PM
Very newbie - no disk space left, help! tbob Linux - Software 5 11-15-2005 03:12 AM
easiest way to know how much disk space is left on partition el jue Linux - Newbie 2 04-07-2004 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration