I have a VM which is running ZoneMinder (v1.36.35). The VM runs debian 12 (6.1.0-37-amd64).
We have 4 cameras, therefore I attached 4x750GB disks for ZM (besides the OS disk), to use as event storage.
Here are the disk info:
Code: Select all
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sr0 11:0 1 1024M 0 rom
vda 254:0 0 50G 0 disk
├─vda1 254:1 0 49G 0 part /
├─vda2 254:2 0 1K 0 part
└─vda5 254:5 0 975M 0 part [SWAP]
vdb 254:16 0 750G 0 disk
└─vdb1 254:17 0 750G 0 part /srv/CAM1
vdc 254:32 0 750G 0 disk
└─vdc1 254:33 0 750G 0 part /srv/CAM2
vdd 254:48 0 750G 0 disk
└─vdd1 254:49 0 750G 0 part /srv/CAM3
vde 254:64 0 750G 0 disk
└─vde1 254:65 0 750G 0 part /srv/CAM4
Code: Select all
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 5.9G 0 5.9G 0% /dev
tmpfs 1.2G 1.3M 1.2G 1% /run
/dev/vda1 48G 40G 6.4G 87% /
tmpfs 5.9G 214M 5.7G 4% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
/dev/vdc1 738G 28K 700G 1% /srv/CAM2
/dev/vdd1 738G 28K 700G 1% /srv/CAM3
/dev/vdb1 738G 28K 700G 1% /srv/CAM1
/dev/vde1 738G 28K 700G 1% /srv/CAM4
tmpfs 1.1G 60K 1.1G 1% /run/user/112
tmpfs 1.1G 52K 1.1G 1% /run/user/1000
The permissions should be fine:
Code: Select all
# ls -la /mnt
total 24
drwxr-xr-x 6 root root 4096 Jul 3 13:24 .
drwxr-xr-x 19 root root 4096 Jun 24 12:29 ..
drwxr-xr-x 3 www-data www-data 4096 Jul 3 14:19 CAM1
drwxr-xr-x 3 www-data www-data 4096 Jul 3 14:21 CAM2
drwxr-xr-x 3 www-data www-data 4096 Jul 3 14:21 CAM3
drwxr-xr-x 3 www-data www-data 4096 Jul 3 14:24 CAM4
Edit: it's rather suspicious, that all disks show the same available disk space as the default storage, however I have no idea why. All cameras are setup to use their corresponsive storages, and the storage path are set to the mounted disks...