Hard drive packed to the brim, plz help

Forum for questions and support relating to the 1.24.x releases only.
Locked
snarlbuckle
Posts: 3
Joined: Tue Sep 14, 2010 4:07 pm

Hard drive packed to the brim, plz help

Post by snarlbuckle »

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?
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Re: Hard drive packed to the brim, plz help

Post by btrotter »

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?
Mine are stored in /var/www/events/

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.
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

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%
snarlbuckle
Posts: 3
Joined: Tue Sep 14, 2010 4:07 pm

Re: Hard drive packed to the brim, plz help

Post by snarlbuckle »

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?
Mine are stored in /var/www/events/

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.
snarlbuckle
Posts: 3
Joined: Tue Sep 14, 2010 4:07 pm

Post by snarlbuckle »

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.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

If fast deleat is on you must also have zmaudit on its a check box on the first settings page.
Locked