Bind mounts for existing NFS share
Posted: Mon Jan 30, 2023 6:48 am
I'm wondering if anyone has had similar issues:
I've installed a new VM with Ubuntu 22.04, NGINX, and zoneminder 1.36. I have an NFS share that I had previously been using with 1.34 on 18.04.
I can mount the NFS share with the same systemd mount unit that I had used previously, but the bind mount units won't mount for the events and images mounts at /var/cache/zoneminder/events and /images
I'm wondering if this is a permissions issue? There is this bind mount issue that was reportedhttps://bugs.launchpad.net/ubuntu/+sour ... ug/1979952, but looks like it was fixed.
I've installed a new VM with Ubuntu 22.04, NGINX, and zoneminder 1.36. I have an NFS share that I had previously been using with 1.34 on 18.04.
Code: Select all
# Mount /mnt/nfs mount point
# Should be stored in /etc/systemd/system/mnt-nfs.mount
[Unit]
Description=Zoneminder NFS mount
After=networking.service
Before=zoneminder
[Mount]
What=192.168.20.15:/Zoneminder/Cams
Where=/mnt/nfs
Type=nfs
Options=
# Make 'systemctl enable mnt-nfs.mount' work:
[Install]
WantedBy=multi-user.target
Code: Select all
# systemd bind mount unit for ZoneMinder event storage
[Unit]
Description=systemd bind mount unit for ZoneMinder event storage
After=mnt-nfs.mount
Requires=mnt-nfs.mount
[Mount]
What=/mnt/nfs/zoneminder/events
Where=/var/cache/zoneminder/events
Type=none
Options=bind
[Install]
WantedBy=local-fs.target