LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-26-2009, 04:04 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102
Question wierd problem - Disk Utilization


Hi All,

I gave a interview yesterday. I did well on all files / server configuration etc.

I could not answer few questions, one of them is :-



We have a partition say /tmp of 2 GB, in df -kh command it is showing all utilized i.e. 100 % disk utilization.
BUT when we fire command du -sk /tmp, it is showing only 1 GB. How will you trouble shoot this.



Pls help me with this.

Thanks in advance.
 
Old 02-26-2009, 04:18 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 37
You could use lsof.
 
Old 02-26-2009, 04:44 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Question

Quote:
Originally Posted by kentyler View Post
You could use lsof.
Could you please explain a bit. How would lsof help me. It will only show me which all files are being used at that point of time.
 
Old 02-27-2009, 06:43 AM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Exactly, and sizes of files that are currently being written to, or, are open for writing, do not always reflect actual size on disk.

Use lsof to determine what process(es) are using the file, then either wait for the process to finish, or somehow, terminate the process, then look again at the file size.
 
Old 02-27-2009, 09:02 AM   #5
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 37
Yes it would have showed files that are not viewable also, like in the instance of oracle which uses space but creates no visible file.

Oh, also it may be out of inodes because they don't always take up all the disk space but will give the error the file system is full because there is a limit to 'how many' files may be on a file system as well.

You could delete loads of small files that were not needed to cure the problem.
 
Old 02-28-2009, 08:03 AM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks to all, I should have though that ways
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sending alert if CPU or RAM or Disk reaches 90% utilization dhanju Linux - Server 2 08-18-2008 11:07 AM
Hard Disk utilization gyropk Linux - Hardware 1 07-08-2008 02:15 PM
Linux desktop GUI tool for CPU utilization and bandwidth utilization karimasif Linux - Software 4 03-03-2008 02:09 PM
wierd characters in external disk name after Gnome automount nsk078 Linux - General 0 11-27-2004 06:32 PM
disk/processsor utilization oscillation tbirch Linux - General 1 06-20-2003 10:40 PM

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

All times are GMT -5. The time now is 09:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration