LinuxQuestions.org
Help answer threads with 0 replies.
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, 03:04 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
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, 03:18 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

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

Original Poster
Rep: Reputation: 107Reputation: 107
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, 05: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, 08:02 AM   #5
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
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, 07:03 AM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
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 10:07 AM
Hard Disk utilization gyropk Linux - Hardware 1 07-08-2008 01:15 PM
Linux desktop GUI tool for CPU utilization and bandwidth utilization karimasif Linux - Software 4 03-03-2008 01:09 PM
wierd characters in external disk name after Gnome automount nsk078 Linux - General 0 11-27-2004 05:32 PM
disk/processsor utilization oscillation tbirch Linux - General 1 06-20-2003 09:40 PM

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

All times are GMT -5. The time now is 04:39 PM.

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