LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-22-2014, 02:18 PM   #1
bk.satish
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
Disk space issue


All,

My output shows -

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@deluslabvi002 ~]#
[root@deluslabvi002 ~]# df -kh /opt/opsware
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol05
15G 14G 983M 94% /opt/opsware
[root@deluslabvi002 ~]# du -sh /opt/opsware
5.7G /opt/opsware
[root@deluslabvi002 ~]#
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Where did the rest of 9 GB go in opt/opsware directory? Could someone please help? Any help is much appreciated.
 
Old 09-22-2014, 02:30 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,667

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Files which are still open but deleted use space and don't show in du. Same for blocks which were lost due to an ungraceful shutdown. A third possibility is that du may not be going into some hidden directories. Try it again with:

Code:
cd /opt/opsware
du -sh
 
Old 09-22-2014, 02:32 PM   #3
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
df looks at the entire filesystem of the folder you are requesting. du, on the otherhand, only looks at the file/folder you are requesting the size of.
 
  


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
[SOLVED] Disk Space issue sandeep002gupta Linux - Server 6 06-20-2014 09:13 AM
Disk Space Issue nbjayme Linux - General 5 02-21-2004 08:25 AM
Odd VMware issue. (disk space recognition) ferreter Linux - General 1 08-31-2003 07:45 AM
Disk Space Issue. jesterwhite Linux - General 3 03-08-2003 12:41 PM
Mandrake 8.1 disk space management issue lhoff Linux - Distributions 5 11-21-2002 10:23 AM


All times are GMT -5. The time now is 09:39 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