Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with full filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
sflinter
n00b
n00b


Joined: 17 Sep 2007
Posts: 2

PostPosted: Mon Sep 17, 2007 12:40 am    Post subject: Problems with full filesystem Reply with quote

On my installation of gentoo on a kurobox, I am experiencing weird behaviour on one of the filesystems:

Code:
kuro datafiles # df -h /datafiles
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda4             275G  262G     0 100% /datafiles
kuro datafiles #


In particular, the Available amount is 0, and usage is 100%. I can still create files on this file system, when logged in, but trying to create or update files via a subversion client returns an error of full file system.

Creating and deleting large (1GB) files, changes the used space reported, but does not change the available space.

Code:
kuro datafiles # dd if=/dev/zero of=/datafiles/1gb_0 bs=1024 count=1048576 &
kuro datafiles # dd if=/dev/zero of=/datafiles/1gb_1 bs=1024 count=1048576 &
kuro datafiles # dd if=/dev/zero of=/datafiles/1gb_2 bs=1024 count=1048576 &
kuro datafiles # dd if=/dev/zero of=/datafiles/1gb_3 bs=1024 count=1048576 &
kuro datafiles # dd if=/dev/zero of=/datafiles/1gb_4 bs=1024 count=1048576 &

kuro datafiles # ls -lh /datafiles/1gb*
-rw-r--r-- 1 root root 1.0G Sep 17 01:33 /datafiles/1gb_0
-rw-r--r-- 1 root root 1.0G Sep 17 01:33 /datafiles/1gb_1
-rw-r--r-- 1 root root 1.0G Sep 17 01:33 /datafiles/1gb_2
-rw-r--r-- 1 root root 1.0G Sep 17 01:33 /datafiles/1gb_3
-rw-r--r-- 1 root root 1.0G Sep 17 01:33 /datafiles/1gb_4
kuro datafiles # df -h /datafiles/
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda4             275G  267G     0 100% /datafiles
kuro datafiles # rm /datafiles/1gb*
kuro datafiles # df -h /datafiles/
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda4             275G  262G     0 100% /datafiles


As you can see, the Used amount is changing, but the Available isn't.

I've run lsof command to see if there are any open or undeleted files, but this hasn't corrected the problem. I've also tried to unmount and remount the file system, but this hasn't changed anything either.

Any ideas as to what the problem is, and how to correct it?

Thanks,

Steve
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Mon Sep 17, 2007 1:19 am    Post subject: Reply with quote

Some filesystems reserve a percentage for root (ext2/3 comes to mind) - maybe this is what you're seeing?

Also, don't create files full of zeros - they might get turned into sparse files that don't use any space at all (but I don't think the dd command does this).


Last edited by BradN on Mon Sep 17, 2007 1:24 am; edited 2 times in total
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Sep 17, 2007 1:19 am    Post subject: Reply with quote

Maybe to stop writing into a fs that is acting weirdly, umount'¡ng it, and doing a full fsck would be a better idea than to keep writing on it.

Knowing the filesystem and some info about how did you format it would be useful as well (for example, if you bypassed the default % reserved for root, which is always a cause for trouble).
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
sflinter
n00b
n00b


Joined: 17 Sep 2007
Posts: 2

PostPosted: Mon Sep 17, 2007 11:23 pm    Post subject: Reply with quote

BradN,

it looks like your suggestion was correct. Reducing the number of reserved blocks sorted the problem out.

Thanks for the pointer.

Steve
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Sep 18, 2007 8:39 pm    Post subject: Reply with quote

Keep in mind that running a partition > 90% full can start to severly impact performance, so probably the best solution is to upgrade your storage :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum