Dedicated events partition on OpenSuse Leap 15.0

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
giosi
Posts: 6
Joined: Thu Sep 28, 2017 6:10 pm

Dedicated events partition on OpenSuse Leap 15.0

Post by giosi »

Hi.
I need dedicated events partition on OpenSuse Leap 15.0 for ZM v1.32.3.
Of course I read all documentation about it:
https://zoneminder.readthedocs.io/en/st ... drive.html
Note that I cannot follow exactly above istruction because OpenSuse has a different structure.
This is what I do:
  • 1) I make new partition /dev/sdc1 on dedicated drive, formatted it with ext4 fs, and mouted on /ipcam directory.
    For all these job I used Yast Partitioner and I assumed that it use systemd method
    2) In /etc/fstab I read:
    UUID=5c86a7ff-c11b-4aa3-b768-b8dee60babed swap swap defaults 0 0
    UUID=689b20a6-e784-4462-b182-80ee1debaab2 swap swap defaults 0 0
    UUID=5015e8d0-12db-49c3-b129-40d1e001e8b3 / ext4 acl,user_xattr 1 1
    UUID=2357fa9e-9c80-49f9-9d3b-248967961eb9 /home xfs defaults 1 2
    UUID=440979e7-4dbd-4a54-a599-612d37afe0d8 /ipcam ext4 acl,user_xattr 1 2
    3) make "/events" and "/image" directory in /ipcam
    4)

    Code: Select all

     sudo systemctl stop zoneminder
    5)

    Code: Select all

     sudo chown -R wwwrun:www /ipcam/events
     sudo chown -R wwwrun:www /ipcam/images
    6) Under already existing /etc/zm.conf I have add 2 row:

    Code: Select all

    ZM_DIR_EVENTS=/ipcam/events
    ZM_DIR_IMAGES=/ipcam/images
    7) sudo systemctl start zoneminder
    8) There are no errors in Log window
But ZM continue to use old directory /var/lib/zoneminder/events.
I also tried to change the path in Option > Storage with the new one but still don't work.
Where is my mistake?

Thanks in advance
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Dedicated events partition on OpenSuse Leap 15.0

Post by rockedge »

in each monitors configuration window there is an option for Storage Area...what do have set there?

in Options->Storage do you have the correct path to the storage you want to use?
giosi
Posts: 6
Joined: Thu Sep 28, 2017 6:10 pm

Re: Dedicated events partition on OpenSuse Leap 15.0

Post by giosi »

Hi rockedge.
In Monitor >Storage Area there is nothing to indicate the path of storage, whereas in Option > Storage I have add new storage
NewStorage /ipcam/events local Medium NewStorage 1.04GB of 73.23GB
I am confused
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Dedicated events partition on OpenSuse Leap 15.0

Post by rockedge »

Hello giosi

when you open the configuration window for a monitor under the tab General...there is the setting to which storage that monitor will save it's events. So just to check what do you have set there?
Screenshot(16).png
Screenshot(16).png (55.2 KiB) Viewed 1881 times
this corresponds to your settings in Options->Storage
giosi
Posts: 6
Joined: Thu Sep 28, 2017 6:10 pm

Re: Dedicated events partition on OpenSuse Leap 15.0

Post by giosi »

Great rockedge,
now it's works fine!
However now zmfilter.pl shows many of these errors:
DiskSpace: Event does not exist at /ipcam/events/2/2019-04-29/181:ZoneMinder::Event: Cause => Continuous DefaultVideo => 181-video.mp4 EndTime => 2019-04-29 19:07:54 Frames => 2546 Height => 720 Id => 181 Length => 257.97 MonitorId => 2 Name => Event- 181 Scheme => Medium StartTime => 2019-04-29 19:03:36 StateId => 1 Videoed => 1 Width => 1280 z
Any ideas?
Thanks a lot
Post Reply