View previous topic :: View next topic |
Author |
Message |
Sheri255 n00b
Joined: 15 Apr 2006 Posts: 29
|
Posted: Sat May 05, 2007 1:01 pm Post subject: Disk full by empty files [SOLVED] |
|
|
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 (2 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 |
|
|
neysx Retired Dev
Joined: 27 Jan 2003 Posts: 795
|
Posted: Sat May 05, 2007 1:05 pm Post subject: |
|
|
You could have run out of inodes, try df -i
Hth |
|
Back to top |
|
|
Sheri255 n00b
Joined: 15 Apr 2006 Posts: 29
|
Posted: Sat May 05, 2007 1:07 pm Post subject: |
|
|
Quote: | none 32786 1575 31211 5% /var/www/localhost/sessions |
Seems to be right. Can I do anything about that? |
|
Back to top |
|
|
neysx Retired Dev
Joined: 27 Jan 2003 Posts: 795
|
Posted: Sat May 05, 2007 1:13 pm Post subject: |
|
|
Increase the number of inodes when you create the filesystem, e.g. -N with mke2fs |
|
Back to top |
|
|
Sheri255 n00b
Joined: 15 Apr 2006 Posts: 29
|
Posted: Sat May 05, 2007 1:15 pm Post subject: |
|
|
I create it at bootup, and it's tmpfs:
Quote: | none /var/www/localhost/sessions tmpfs defaults,size=512m 0 0 |
|
|
Back to top |
|
|
neysx Retired Dev
Joined: 27 Jan 2003 Posts: 795
|
Posted: Sat May 05, 2007 1:19 pm Post subject: |
|
|
nr_inodes=#####
See man mount |
|
Back to top |
|
|
Sheri255 n00b
Joined: 15 Apr 2006 Posts: 29
|
Posted: Sat May 05, 2007 1:21 pm Post subject: |
|
|
Thank you very much! Problem solved |
|
Back to top |
|
|
|