Page 1 of 1

No space left on device

Posted: Fri Jul 31, 2009 1:15 pm
by freak
Using 1.24.2 I am getting the following error messages on the login screen...

Code: Select all


Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_7ba05ea4db7bbe1921d930392da0b431, O_RDWR) failed: No space left on device (28) in /var/www/index.php on line 77

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/index.php:77) in /var/www/index.php on line 77

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/index.php:77) in /var/www/index.php on line 77

Warning: Cannot modify header information - headers already sent by (output started at /var/www/index.php:77) in /var/www/index.php on line 82
ZoneMinder Login
Username 	
Password 	

Warning: Unknown: open(/var/lib/php5/sess_7ba05ea4db7bbe1921d930392da0b431, O_RDWR) failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
I seem to have space...

Code: Select all

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             73742752  62215612   7781188  89% /
tmpfs                  1003432         0   1003432   0% /lib/init/rw
varrun                 1003432        80   1003352   1% /var/run
varlock                1003432         0   1003432   0% /var/lock
udev                   1003432      2784   1000648   1% /dev
tmpfs                  1003432         0   1003432   0% /dev/shm
lrm                    1003432      2000   1001432   1% /lib/modules/2.6.27-7-generic/volatile
I haven't changed anything and it was working fine. I have purgewhenfull set to 90%. Any ideas?

Posted: Fri Jul 31, 2009 1:44 pm
by freak
Ahhh....

df -i shows....

Code: Select all

Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda1            4685824 4685824       0  100% /
tmpfs                 223477       3  223474    1% /lib/init/rw
varrun                223477      43  223434    1% /var/run
varlock               223477       3  223474    1% /var/lock
udev                  223477    5021  218456    3% /dev
tmpfs                 223477       1  223476    1% /dev/shm
lrm                   223477      17  223460    1% /lib/modules/2.6.27-7-generic/volatile
Any ideas on how to recover from this?

Posted: Fri Jul 31, 2009 8:10 pm
by coke
You could try manually deleting some events (rm) then running zmaudit.pl manually. Where your events are stored depends on installation and whether or not deep storage is being used, but if you find them, this usually does the trick.

Posted: Fri Jul 31, 2009 8:25 pm
by freak
I manually deleted them, then was able to log in, and then changed purgewhenfull to 75%. That worked. Looks like you really have to plan ahead on the inodes. AFAIK there is no easy way to change the count.

Posted: Fri Jul 31, 2009 10:42 pm
by coke
What filesystem is the partition? I'm under the vague impression that you wouldn't have this issue with Reiserfs, it allocates them dynamically.

Posted: Sat Aug 01, 2009 1:30 am
by freak
ext3... yes that may be true about reiserfs but do not know for sure.

Posted: Sat Aug 01, 2009 1:30 am
by freak
Is reiserfs still being developed?

Posted: Mon Aug 03, 2009 12:38 pm
by coke
Googling will lead to a variety of news about Reiserfs, good and bad. Many worry about the further development of the filesystem, given the imprisonment of Hans Reiser and such. Personally, it seems to work fine for my purposes as is.

Posted: Mon Aug 03, 2009 5:10 pm
by freak
Wonder if they'll let him work on it from his cell?

Posted: Mon Aug 03, 2009 8:12 pm
by coke
Depends on what system he's in, he'd probably have to mail out code.