Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disk full by empty files [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Sheri255
n00b
n00b


Joined: 15 Apr 2006
Posts: 29

PostPosted: Sat May 05, 2007 1:01 pm    Post subject: Disk full by empty files [SOLVED] Reply with quote

This is not the first topic I posted about the problems with my server, but hopefully the last.
I am using sessions on a tmpfs-drive, then (suddenly?) apache goes crazy and uses all my processor cycles. I found the following error by php:

Quote:
Warning: session_start() [function.session-start]: open(/var/www/localhost/sessions//sess_c1cf6f5add9576cbd9ff3a50d59d8558, O_RDWR) failed: No space left on device (28) in /var/www/localhost/htdocs/include/bittorrent.php on line 23


df -h reports:
Quote:
none 512M 2.3M 510M 1% /var/www/localhost/sessions


There were 32785 files in that folder, most of them empty. Does this mean I can't use my whole space?


Last edited by Sheri255 on Sat May 05, 2007 1:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Sat May 05, 2007 1:05 pm    Post subject: Reply with quote

You could have run out of inodes, try df -i

Hth
Back to top
View user's profile Send private message
Sheri255
n00b
n00b


Joined: 15 Apr 2006
Posts: 29

PostPosted: Sat May 05, 2007 1:07 pm    Post subject: Reply with quote

Quote:
none 32786 1575 31211 5% /var/www/localhost/sessions

Seems to be right. Can I do anything about that?
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Sat May 05, 2007 1:13 pm    Post subject: Reply with quote

Increase the number of inodes when you create the filesystem, e.g. -N with mke2fs
Back to top
View user's profile Send private message
Sheri255
n00b
n00b


Joined: 15 Apr 2006
Posts: 29

PostPosted: Sat May 05, 2007 1:15 pm    Post subject: Reply with quote

I create it at bootup, and it's tmpfs:
Quote:
none /var/www/localhost/sessions tmpfs defaults,size=512m 0 0
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Sat May 05, 2007 1:19 pm    Post subject: Reply with quote

nr_inodes=#####

See man mount
Back to top
View user's profile Send private message
Sheri255
n00b
n00b


Joined: 15 Apr 2006
Posts: 29

PostPosted: Sat May 05, 2007 1:21 pm    Post subject: Reply with quote

Thank you very much! Problem solved :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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