LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-07-2011, 07:49 AM   #1
rvaede
LQ Newbie
 
Registered: Feb 2011
Posts: 20

Rep: Reputation: 0
file system question


There is a file system and there isn't actually 20 GB of disk space in there.

/dev/sdb1 20G 17G 1.9G 91% /var/tomcat

when I do a du -sh on /var/tomcat I only get:
du -sh
312M .

The file system keeps running out of space.
Does any one know whats happening?

vgscan:

Reading all physical volumes. This may take a while...
Found volume group "vg00" using metadata type lvm2


--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 8
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size 19.88 GB
PE Size 32.00 MB
Total PE 636
Alloc PE / Size 636 / 19.88 GB
Free PE / Size 0 / 0
VG UUID 2cAcZd-cvD4-3Wl2-tdNl-2Fkn-MqpB-7SFTtG

--- Physical volume ---
PV Name /dev/sda2
VG Name vg00
PV Size 19.89 GB / not usable 19.49 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 636
Free PE 0
Allocated PE 636
PV UUID f7LuT2-MqJI-npun-uk4A-EdhK-Vna2-rj3bZK
 
Old 03-07-2011, 09:01 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
So your problem is that "df" is showing 17G used and "du" is only showing 300M?

This happens when there are files still held open by processes, but that have been deleted.

Assuming that only Tomcat is using /var/tomcat, and restart of Tomcat should clear it up. As a last resort, a reboot should clear it up. If even a reboot doesn't fix it, then you should unmount /var/tomcat (perhaps in single user mode) and fsck it.
 
Old 03-07-2011, 09:29 AM   #3
rvaede
LQ Newbie
 
Registered: Feb 2011
Posts: 20

Original Poster
Rep: Reputation: 0
Yes the answer to your question about the different size in the file system /var/tomcat.
Thanks let me look into this.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file system question jraclarke Linux - Newbie 5 02-15-2011 12:35 PM
Total Noob Question (Operating System vs File System) fuzzy1 Linux - Newbie 14 02-06-2009 10:33 AM
File System Question spaceballs Slackware 30 07-02-2008 01:10 PM
file system question mokku Linux - Newbie 7 10-09-2007 06:21 AM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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