Hi,
Installed ZM on ubuntu on virtual box long time back. Getting back into it. Run into Disk: 100% all the time and ZM goes into stopped state. This is what I did trying to solve it:
1) Activated PurgeWhenFull > 90% filter to run in background. For some reason I still run into 100% disk space. Also added a filter PurgeByAge -7 days. No success either.
2) Cleared syslog with sudo -i, > /var/log/syslog. Found this somewhere on the web. Only helps a little bit and in no time back to 100%
3) Cleared ZM log with mysql -uroot -ppassword zm, truncate table Logs. After a little while space goes to 83%. Too high, I would like to not be a 'space alert' situation all the time
It's not the disk assigned in VB. It's 8GB and only 5.25 is used. /var/log does not show any files with an extraordinary size.
I guess my questions are:
1) What does the ZM "Disk:" percentage exactly represent? That what it represents, can I (easily) increase its size?
2) What is the 83% being used for? Where can I look/what can I do to decrease it?
Thanks for any help.
Mike
ps. Linux novice (as you can probably see from the above)
Disk space question
Re: Disk space question
First off running on a VM is fine to test. Long term you are better with a PC with an OS on it.
What version of Ubuntu? How much RAM do you give the VM? are you storing events on an external drive?
Besides the number if events stored you have to consider the size of the MySQL database. Not uncommon for this to get up to 1 GB with a lot of events.
Try setting the filter to 80% to see what happens but you will have to wait a while as events are not deleted right away.
What version of Ubuntu? How much RAM do you give the VM? are you storing events on an external drive?
Besides the number if events stored you have to consider the size of the MySQL database. Not uncommon for this to get up to 1 GB with a lot of events.
Try setting the filter to 80% to see what happens but you will have to wait a while as events are not deleted right away.
Re: Disk space question
Experimenting still. Motion detect does not yet deliver the quality I would like to see.
Ubuntu 15.10. RAM is 3GB. The hard disk is in the same machine as VB and ZM. Since I'm still trying I continuously delete all events. Disk is still at 83% then. Syslog and ZM log (db) are empty then as well.
And, like I said, the VB .vdi still has 2.5GB free space.
Ubuntu 15.10. RAM is 3GB. The hard disk is in the same machine as VB and ZM. Since I'm still trying I continuously delete all events. Disk is still at 83% then. Syslog and ZM log (db) are empty then as well.
And, like I said, the VB .vdi still has 2.5GB free space.
Re: Disk space question
Issue is likely that the OS is not seeing the space on your second drive. We've done a procedure that uses systemd to mount another volume/device. The write up is in the WIKI under Ubuntu: https://wiki.zoneminder.com/Common_Issu ... _on_Ubuntungauruhoe wrote: ↑Thu Aug 03, 2017 8:38 pm Experimenting still. Motion detect does not yet deliver the quality I would like to see.
Ubuntu 15.10. RAM is 3GB. The hard disk is in the same machine as VB and ZM. Since I'm still trying I continuously delete all events. Disk is still at 83% then. Syslog and ZM log (db) are empty then as well.
And, like I said, the VB .vdi still has 2.5GB free space.
You may have to upgrade to 16.04 to use it. Has been a while since I worked with 15.10 and I do not remember if it used systemd. Anyway it is time to upgrade to 16.04...
Re: Disk space question
Ok, I upgraded to Ubuntu 16.04, installed webmin and followed the instructions here https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS.
With one exception. I created the file system and mount point with Webmin.
The result is:
"Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user" when I try to start the ZM web interface.
In the syslog I find:
I also find in syslog:
I lack the knowledge to determine if this is caused by an auth problem (gui message) or that the real root cause is the earlier 'dependency' message. If it is auth, where should I look? Below shows dir lists of /var/cache and /var/cache/zoneminder:
If I look in webmin I notice that /mnt/sda3 is 'not in use'. I assume that's because the above mount failure. I also cannot find /var/cache/zoneminder in Webmin's filesystem view.
Any clues? Thanks!
With one exception. I created the file system and mount point with Webmin.
The result is:
"Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user" when I try to start the ZM web interface.
In the syslog I find:
Code: Select all
Aug 22 20:38:21 GuardianServer systemd[1]: Mounting /mnt/sda3...
Aug 22 20:38:21 GuardianServer systemd[1]: Mounted /mnt/sda3.
Aug 22 20:38:21 GuardianServer kernel: [ 1.586514] sda: sda1 sda2 < sda5 > sda3
Aug 22 20:38:21 GuardianServer kernel: [ 13.043911] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opt s: (null)
Aug 22 20:54:44 GuardianServer systemd[1]: [/etc/systemd/system/mnt-sda3.mount:5] Failed to add dependency on zonemi nder, ignoring: Invalid argument
Aug 22 20:56:46 GuardianServer systemd[1]: mnt-sda3.mount: Job mnt-sda3.mount/start failed with result 'dependency'.
Aug 22 21:00:44 GuardianServer systemd[1]: [/etc/systemd/system/mnt-sda3.mount:5] Failed to add dependency on zonemi nder, ignoring: Invalid argument
Aug 22 21:03:50 GuardianServer systemd[1]: [/etc/systemd/system/mnt-sda3.mount:5] Failed to add dependency on zonemi nder, ignoring: Invalid argument
Aug 22 21:06:20 GuardianServer kernel: [ 1.600146] sda: sda1 sda2 < sda5 > sda3
Aug 22 21:07:45 GuardianServer systemd[1]: mnt-sda3.mount: Job mnt-sda3.mount/start failed with result 'dependency'.
Aug 22 21:09:47 GuardianServer systemd[1]: mnt-sda3.mount: Job mnt-sda3.mount/start failed with result 'dependency'.
Code: Select all
Aug 22 21:26:29 GuardianServer zma_m1[1840]: ERR [Can't make events/1: Permission denied]
Aug 22 21:26:29 GuardianServer zma_m1[1840]: FAT [Can't symlink '1' to 'BoskantVoor': Permission denied]
Code: Select all
skywalker@GuardianServer:/mnt/sda3$ cd /var/cache/zoneminder
skywalker@GuardianServer:/var/cache/zoneminder$ ls -la
total 28
drwxr-xr-x 7 www-data www-data 4096 Aug 22 21:04 .
drwxr-xr-x 11 root root 4096 Aug 8 22:16 ..
drwxr-xr-x 2 root root 4096 Aug 22 21:00 events
drwxr-xr-x 2 root root 4096 Aug 22 21:04 images
drwxr-xr-x 4 www-data www-data 4096 Jul 22 21:33 oldevents
drwxr-xr-x 2 www-data www-data 4096 Aug 3 12:09 oldimages
drwxr-xr-x 2 www-data www-data 4096 Feb 5 2016 temp
skywalker@GuardianServer:/var/cache/zoneminder$ cd /var/cache
skywalker@GuardianServer:/var/cache$ ls -la
total 44
drwxr-xr-x 11 root root 4096 Aug 8 22:16 .
drwxr-xr-x 14 root root 4096 Aug 8 22:17 ..
drwxr-xr-x 3 root root 4096 Feb 21 2016 apache2
drwxr-xr-x 2 root root 4096 Sep 3 2015 apparmor
drwxr-xr-x 3 root root 4096 Aug 22 20:39 apt
drwxr-xr-x 2 root root 4096 Aug 22 20:38 apt-show-versions
drwxr-xr-x 2 root root 4096 Aug 17 22:22 debconf
drwxr-xr-x 2 root root 4096 Aug 8 22:06 fontconfig
drwx------ 2 root root 4096 Aug 22 20:39 ldconfig
drwxr-sr-x 35 man root 4096 Aug 18 06:25 man
drwxr-xr-x 7 www-data www-data 4096 Aug 22 21:04 zoneminder
skywalker@GuardianServer:/var/cache$
Any clues? Thanks!
Re: Disk space question
Well, dived into systemctl syntax to try grasp dependencies and finally found it. Everything is easy if you know it or done it berfore.........
The problem was that I recreated the new file system because I later read it had to be type ext4 and webmin created ext3 by default. After recreating as ext4 I failed to update the systemd mount unit with the new uuid. Simple for a linux admin of course, but difficult for a novice like me. But I''m learning
Disk space back to 12%
Finally back to zoneminder to try set up some ipcam mgmt................
The problem was that I recreated the new file system because I later read it had to be type ext4 and webmin created ext3 by default. After recreating as ext4 I failed to update the systemd mount unit with the new uuid. Simple for a linux admin of course, but difficult for a novice like me. But I''m learning
Disk space back to 12%
Finally back to zoneminder to try set up some ipcam mgmt................