Issues with storage

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
lorenjz
Posts: 40
Joined: Fri Feb 28, 2020 12:25 am

Issues with storage

Post by lorenjz »

I have two issues that may or may not be related.

The first is that I am using freenas to store all of the footage from zoneminder and followed this tutorial from the wiki: https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS

When the VM boots the storage fails to mount. When I looked at systemctl status this is what returned:

Code: Select all

Sep 04 06:47:31 zimmzones mount[895]: mount error(2): No such file or directory
Sep 04 06:47:31 zimmzones mount[895]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Sep 04 06:47:21 zimmzones systemd[1]: mnt-xvda2.mount: Directory /mnt/xvda2 to mount over is not empty, mounting anyway.
Sep 04 06:47:21 zimmzones systemd[1]: Mounting systemd mount unit for ZoneMinder event storage...
Sep 04 06:47:28 zimmzones systemd[1]: mnt-xvda2.mount: Mount process exited, code=exited, status=32/n/a
Sep 04 06:47:28 zimmzones systemd[1]: mnt-xvda2.mount: Failed with result 'exit-code'.
Sep 04 06:47:28 zimmzones systemd[1]: Failed to mount systemd mount unit for ZoneMinder event storage.

I did go through and double check to make sure that all of the storage configuration information that I had entered was correct.

I've been making sure that I mount the storage right after the vm boots and then start zoneminder. After zoneminder starts I get this warning for most if not all of my cameras 1 minute apart:

Code: Select all

DiskSpace: Event does not exist at /var/cache/zoneminder/events/4/2020-08-20/7224:ZoneMinder::Event: AlarmFrames => 10 AvgScore => 50 Cause => Linked DefaultVideo => 7224-video.mp4 EndTime => 2020-08-20 14:17:04 Frames => 51 Height => 1920 Id => 7224 Length => 10.60 MaxScore => 50 MonitorId => 4 Name => Event- 7224 Notes => Linked: Small Room Sub Orientation => ROTATE_0 SaveJPEGs => 3 Scheme => Medium StartTime => 2020-08-20 14:16:54 StateId => 2 TotScore => 500 Width => 2560
I've double checked the storage tab for each source and they all list "default" as the storage destination. There aren't any other storage options configured. Also alarms are recorded and playback without any issues.

I'm happy to provide additional info that would help troubleshoot the issues. Any suggestions on how I could resolve all of this would be greatly appreciated.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Issues with storage

Post by Magic919 »

It sounds a bit like ZM has been run without the storage mounted. Then /mint/xvda2 started to be populated on the local drive.

Delete all the events in ZM to keep it tidy. Stop ZM and clear anything created under the mount point. Mount it by hand as a test, then run ZM.
-
lorenjz
Posts: 40
Joined: Fri Feb 28, 2020 12:25 am

Re: Issues with storage

Post by lorenjz »

This error has popped up again. I have tried the suggestions made by Magic919 in the previous post without any luck. Any thoughts as to what the next step might be?
Post Reply