ZM writes empty events folders to SMB share

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
melmak
Posts: 2
Joined: Wed May 16, 2018 8:18 am

ZM writes empty events folders to SMB share

Post by melmak » Wed May 16, 2018 8:28 am

Hello. I have zoneminder 1.30.4 runnin on virtual machine which has limited disc space (20 GB). Therefore, naturally i would like zoneminder to save events data on a separate drive (which is on the same windows server that hosts ubuntu vm + zm).
I followed this guide:
https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive

windows share is mounted and accessible by zoneminder. But it creates only empty folders on the SMB share, not actual events are saved.
Has anyone experienced the same problem? What could cause that?

mikb
Posts: 354
Joined: Mon Mar 25, 2013 12:34 pm

Re: ZM writes empty events folders to SMB share

Post by mikb » Wed May 16, 2018 4:39 pm

What is the file system type on this "SMB Share" -- if it's FAT (DOS-Windows) based then it will not work, as it does not understand symbolic links as used by ZoneMinder -- you need a proper file system (ext2/3/4) that has all the Unixy features.

Also permission can be a pain on some SMB/FAT style shares, as there is only the vaguest notion of "readonly" and "system file", and not much about which user owns the file etc.

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

Re: ZM writes empty events folders to SMB share

Post by bbunge » Wed May 16, 2018 7:38 pm

You are better off using systemd to mount the share:
https://wiki.zoneminder.com/Common_Issu ... ive_or_NAS

Once you get a "nix" based file system that is. Many NAS use a Linux file system that you can mount via SMB.

mikb
Posts: 354
Joined: Mon Mar 25, 2013 12:34 pm

Re: ZM writes empty events folders to SMB share

Post by mikb » Thu May 17, 2018 4:14 pm

@bbunge it's not necessarily an actual NAS -- note the OP says "running in a virtual machine" and "save on a drive on the server ..." which could be the same machine, just outside the VM's little 20GB play-pen :)

melmak
Posts: 2
Joined: Wed May 16, 2018 8:18 am

Re: ZM writes empty events folders to SMB share

Post by melmak » Thu May 17, 2018 6:10 pm

mikb wrote:
Wed May 16, 2018 4:39 pm
What is the file system type on this "SMB Share" -- if it's FAT (DOS-Windows) based then it will not work, as it does not understand symbolic links as used by ZoneMinder -- you need a proper file system (ext2/3/4) that has all the Unixy features.

Also permission can be a pain on some SMB/FAT style shares, as there is only the vaguest notion of "readonly" and "system file", and not much about which user owns the file etc.
File system is NTFS

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

Re: ZM writes empty events folders to SMB share

Post by bbunge » Thu May 17, 2018 8:07 pm

Well NTFS will not work as storage.

mikb
Posts: 354
Joined: Mon Mar 25, 2013 12:34 pm

Re: ZM writes empty events folders to SMB share

Post by mikb » Fri May 18, 2018 4:18 pm

Agreed. :(

Either there should be a massive warning on ZoneMinder's documentation: "Do not use half-baked file systems", or ZM should pro-actively test what kind of filesystem you are using and send you a clear message, saying "This is never going to work" :)

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

Re: ZM writes empty events folders to SMB share

Post by bbunge » Fri May 18, 2018 5:57 pm

As stated in the forum for ZM 1.31.x it seems that NTFS may work. I have my test ZM PC set up with a USB2 NTFS external drive and the events are being saved to it. Had this running for four hours successfully. Wiped everything and started over with a fresh ZM install on Bionic LAMP with a freshly formatted NTFS drive. SO far it is working. Will let it get some time on it to see what happens.
Stay tuned...

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

Re: ZM writes empty events folders to SMB share

Post by bbunge » Sat May 19, 2018 2:20 pm


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests