No space left on device

Forum for questions and support relating to the 1.24.x releases only.
Locked
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

No space left on device

Post 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?
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

Post 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?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

Post 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.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

Post by freak »

ext3... yes that may be true about reiserfs but do not know for sure.
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

Post by freak »

Is reiserfs still being developed?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
freak
Posts: 112
Joined: Wed May 03, 2006 5:22 pm

Post by freak »

Wonder if they'll let him work on it from his cell?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Depends on what system he's in, he'd probably have to mail out code.
Locked