how can change storage in zoneminder to synology nas

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

how can change storage in zoneminder to synology nas

Post by alhaddar »

Hi
how can change storage in zoneminder to synology nas
I have tried but to no avail as I am a beginner in this field
I hope someone with experience will put the method in steps
thank you in advance
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how can change storage in zoneminder to synology nas

Post by bbunge »

alhaddar wrote: Mon Nov 07, 2022 5:00 pm Hi
how can change storage in zoneminder to synology nas
I have tried but to no avail as I am a beginner in this field
I hope someone with experience will put the method in steps
thank you in advance
Need to know what you are running Zoneminder on. Linux distro and version. Might be good to know the Synology Diskstation version as well.
Maximo1970
Posts: 97
Joined: Sun May 28, 2017 4:29 pm

Re: how can change storage in zoneminder to synology nas

Post by Maximo1970 »

Here are the basics.

1. Create a shared folder on your NAS
2. Update the NFS permissions for the share
3. Stop both ZoneMinder & Apache/Nginx
4. Mount the NFS share against /var/lib/zoneminder/events - you'll need to do this in /etc/fstab
5. Restart Apache/Nginx & Apache

Any existing events will not be available, so the assumption is you haven't started using ZoneMinder yet.
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

Re: how can change storage in zoneminder to synology nas

Post by alhaddar »

Hi
Thank you all for the help

this my fstab

none /proc proc defaults 0 0
/dev/root / ext4 defaults 1 1
/dev/mapper/cachedev_0 /volume2 btrfs auto_reclaim_space,ssd,synoacl,relatime,nodev 0 0
/dev/mapper/cachedev_1 /volume1 btrfs auto_reclaim_space,ssd,synoacl,relatime,nodev 0 0


how can change storage

this the my new path

/volume2/drv/zoneminder/data/events
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how can change storage in zoneminder to synology nas

Post by bbunge »

Slow down a bit. Fooling with fstab can ruin the system if you make a mistake!

I asked what you are using for an OS for a reason and that is to give you specifics. Simply mapping a share on a remote device can cause problems if Zoneminder tries to start before the share is connected.

Some time ago we published a way to add storage in the WIKI. Here is a link to that procedure: https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS

This procedure was written to replace the existing storage space but can be modified to just mount the NAS to the ZM server. Using the systemd mount procedure will allow the NAS to be mounted before Zoneminder starts. My procedure was written for Ubuntu or Debian. I remember there was also a procedure for Red Hat versions somewhere.

If you are not in a hurry I can set up a test machine and work up a procedure to mount to my Synology NAS. I have some "training" and home repair projects that have to be done first.
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

Re: how can change storage in zoneminder to synology nas

Post by alhaddar »

I am grateful for your help and I am in no hurry
Please someone working on your Synology system and explaining to me how to host a storage space in it
I am grateful to you again
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how can change storage in zoneminder to synology nas

Post by bbunge »

alhaddar wrote: Fri Nov 11, 2022 6:05 pm I am grateful for your help and I am in no hurry
Please someone working on your Synology system and explaining to me how to host a storage space in it
I am grateful to you again
OK, but what version of Linux are you using?
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

Re: how can change storage in zoneminder to synology nas

Post by alhaddar »

bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how can change storage in zoneminder to synology nas

Post by bbunge »

alhaddar wrote: Sat Nov 12, 2022 10:41 am Version: 7.1.1-42962 Update 2


https://www.synology.com/en-global/rele ... er_42962-2
Not the Diskstation version. What Linux distro and version are you using to run Zoneminder?

You are not trying to run Zoneminder on the NAS I hope.
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

Re: how can change storage in zoneminder to synology nas

Post by alhaddar »

Hi

I run Zoneminder on docker in the portainer on Synology NAS
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how can change storage in zoneminder to synology nas

Post by bbunge »

alhaddar wrote: Sat Nov 12, 2022 7:14 pm Hi

I run Zoneminder on docker in the portainer on Synology NAS
Sorry I got your hopes up. I do not believe in running Zoneminder in a docker and I will not help you with your request.
alhaddar
Posts: 6
Joined: Wed Oct 26, 2022 6:44 pm

Re: how can change storage in zoneminder to synology nas

Post by alhaddar »

Thank you for trying to help me with that I hope you have a good time and I'll give it a try
Maximo1970
Posts: 97
Joined: Sun May 28, 2017 4:29 pm

Re: how can change storage in zoneminder to synology nas

Post by Maximo1970 »

I've not done much with docker/containers so can't help much either. From what I've seen of other applications that use docker you'll struggle to get it working with an NFS mount. The whole point of docker is to make things more manageable and repeatable.

Your best bet would be to jump over to the support pages for the docker your using to see if they have any advice.
Post Reply