I am running zoneminder version 1.24.2-1. One of my cameras seems to be faulty and is filling the hard drive really fast. Purgewhenfull didn't do it's job, so now the server's hard drive is completely packed and the server won't do it's job.
How can I delete some of the video footage via SSH so that the server can get back up and running again?
Where is the footage stored and how should I go about deleting it?
Hard drive packed to the brim, plz help
Re: Hard drive packed to the brim, plz help
Mine are stored in /var/www/events/snarlbuckle wrote:I am running zoneminder version 1.24.2-1. One of my cameras seems to be faulty and is filling the hard drive really fast. Purgewhenfull didn't do it's job, so now the server's hard drive is completely packed and the server won't do it's job.
How can I delete some of the video footage via SSH so that the server can get back up and running again?
Where is the footage stored and how should I go about deleting it?
There should be directories in there which correspond to your monitors. Then there will be a TON of folders in each one. You may need to use the "rm -rf /var/www/events/[monitor]/[number]" command.
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
Not sure if this still applies,
If you want to make sure your purge when full filter is going to work, adjust it as follows.
-- ZM DISK SPACE - AUTOMATIC PURGE WHEN FULL --
login to http://(your host name) as an admin user
click "Filters"
for "Use Filter:" select "PurgeWhenFull"
set options to include
"Archive Status" "Unarchived Only"
"and" "Disk Percent" "greater than or equal to" "95"
"Sort by" "Id" "Asc" "Limit to first" "5" "results only"
then click "Save" up at the top ("Submit" will not save your options)
on the next screen, place a check next to "Run filter in background", then click "Save"
this will now be set to delete the first 5 events (the oldest 5 events) in the ZM database when disk usage reaches 95%
the filter will keep deleting events in increments of 5 events until disk usage is under 95%
-
- Posts: 3
- Joined: Tue Sep 14, 2010 4:07 pm
Re: Hard drive packed to the brim, plz help
Mine are stored in /var/www/events/btrotter wrote:snarlbuckle wrote:I am running zoneminder version 1.24.2-1. One of my cameras seems to be faulty and is filling the hard drive really fast. Purgewhenfull didn't do it's job, so now the server's hard drive is completely packed and the server won't do it's job.
How can I delete some of the video footage via SSH so that the server can get back up and running again?
Where is the footage stored and how should I go about deleting it?
There should be directories in there which correspond to your monitors. Then there will be a TON of folders in each one. You may need to use the "rm -rf /var/www/events/[monitor]/[number]" command.[/quote
Thanks for the help.
However, I don't see an events folder in /var/www.
I'll keep looking for a directory containing the events, but you've certainly given me a good start.
Oh, and newvisionantenna, thanks for the help with purgewhenfull.
-
- Posts: 3
- Joined: Tue Sep 14, 2010 4:07 pm
Problem fixed.
The files were stored under zoneminder/events. I deleted a few, which gave the server some room to breathe. I turned off motion detect and fast delete. Purgewhenfull ran and the disk space stabilized. Motion detect has been turned back on, and so far everything looks good.
Thanks for your help.
The files were stored under zoneminder/events. I deleted a few, which gave the server some room to breathe. I turned off motion detect and fast delete. Purgewhenfull ran and the disk space stabilized. Motion detect has been turned back on, and so far everything looks good.
Thanks for your help.