LinuxQuestions.org
Review your favorite Linux distribution.
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 03-24-2011, 12:15 PM   #1
abdullin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Disk space lost in home on ext3 (roughly 66% disappeared)


I have suddenly lost a lot of free on my new Fedora 14 install.

To keep the story short, here's what disk usage looks like on my home: image

As you can see, home takes 100% but only 34% are actually occupied.


When entered as a root du | sort -nr > out.txt

Code:
81126756	.
28141892	./VirtualBox VMs
21462488	./VirtualBox VMs/Win7
5244308	./VirtualBox VMs/WinXP
268288	./landor
128424	./work
// skipped

Numbers just don't add up. 77GB-26GB-fewGB=50GB missing.

Any ideas, what could've gone wrong? I've spent last few hours googling without much success...


some more details. Linux Fedora 14 on SSD with encrypted LVM and ext3 for home. /etc/fstab:

Code:
/dev/mapper/vg_rinatrev4-lv_root /                       ext4    defaults,noatime        1 1
UUID=... /boot                   ext4    defaults        1 2
/dev/mapper/vg_rinatrev4-lv_home /home                   ext3    defaults,noatime        1 2
/dev/mapper/vg_rinatrev4-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
# temp files
tmpfs    /var/log tmpfs                   defaults                    0 0
tmpfs    /tmp tmpfs                       defaults                    0 0
tmpfs    /var/tmp tmpfs                   defaults                    0 0
tmpfs    /home/rinat/.cache/google-chrome defaults,size=200M,noatime  0 0
 
Old 03-24-2011, 01:08 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
All that picture tells me is that there's a lot of space taken directly in "rinat" and not a subfolder.

What does "df -h" say?

You may have file that have been deleted but are still in use. In that case, stopping the program that has the files open, or a reboot, will make df and du match again.

Last edited by AlucardZero; 03-24-2011 at 01:09 PM.
 
Old 03-24-2011, 01:15 PM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,318

Rep: Reputation: 124Reputation: 124
First question: is /home really filled up, or is it just a faulty report?
What does "df -h" give?
 
Old 03-24-2011, 01:37 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Home is not 100% full - 100% of home = 77.4GB
Out of that, around 27GB is in use.

The root of any tree in those reports is always 100% because that's how it reports the maximum available space. So rinat is 77.4GB which is the maximum available space on that partition, logical volume, whatever.

That disk usage analyzer is rubbish IMHO.

Also it would be useful to know how big the disk is, and how big each LV is.

[edit]

This is why I hate this tool.
I've just been trying to understand it and I've now come to the conclusion that the top figure of 100% is the product of everything under it.
So in your image, the figures only disagree by around 4GB.

But because you are not showing the root of the drive, We can't tell what else is sharing it.

Last edited by smoker; 03-24-2011 at 01:59 PM.
 
Old 03-24-2011, 01:43 PM   #5
abdullin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
df -h was saying pretty much the same - 0% available for the /home, given it's total capacity of 77GB.


However after a few reboots, the problem cleared itself up - I've got 50GB of free space now. I wish I knew what happened. Suspecting some sort of file system corruption, that was fixed by OS on startup.

Weird.
 
Old 03-24-2011, 02:07 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
You probably had files that were deleted but still in use. This is how Linux works: the disk space is not actually freed until all programs holding the file open, stop.
 
Old 04-05-2011, 12:13 PM   #7
abdullin
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
You probably had files that were deleted but still in use. This is how Linux works: the disk space is not actually freed until all programs holding the file open, stop.
The problem actually came back again. All of a sudden - absolutely no free space. That's what df-h shows:



Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_rinatrev4-lv_root
                       20G  3.2G   16G  17% /
tmpfs                 3.9G  180K  3.9G   1% /dev/shm
/dev/sda1             485M   49M  412M  11% /boot
/dev/mapper/vg_rinatrev4-lv_home
                       83G   78G 1000M  99% /home
tmpfs                 3.9G   20K  3.9G   1% /tmp
tmpfs                 3.9G   24K  3.9G   1% /var/tmp
tmpfs                 200M  2.9M  198M   2% /home/rinat/.cache/google-chrome
I should have roughly 40GB of free space (in addition to ext3 reservation). Rebooting and rechecking disk didn't help much.

An ideas on what could've went wrong?
 
Old 07-28-2011, 05:12 AM   #8
The 9th bit
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian and SUSE
Posts: 1

Rep: Reputation: Disabled
I have the same problem, but on two SLES 11 SP1 installations: one uses LVM+reiserfs, and the other one, LVM+ext3. In both cases, my /home logical volumes (which are larger than 150 GB) suddenly run out of disk space ("df" reports nearly 100% of disk usage), while, by means of "du", I know there is 90 GB of free disk space at least... In any case, the space lost appears after system reboot. fschk does not report any problem.

It is strange that it always happen to /home logical volume. One could think that this problem could be related to the large amount of I/O operations this volume supports, but I have other volumes with the same I/O traffic (maybe higher) which do not suffer this problem.

Any ideas?
 
Old 07-28-2011, 01:36 PM   #9
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,318

Rep: Reputation: 124Reputation: 124
Here's a wild guess:
If this happens to LVM-partitions only, maybe there's something wrong with one or more disks/partitions used for lvm?
Check the logs for errors regarding lvm!
 
  


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
disk space lost jone kim Linux - Hardware 3 09-02-2010 06:11 PM
ext3 lost space??? Fordor Linux - General 15 07-10-2005 01:09 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
ext2 and ext3 use way more disk space then the other filesystems Necronomicom Linux - General 0 08-15-2004 11:06 PM
lost disk space HELP kjell1979 Linux - Software 3 08-08-2001 05:34 PM


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