Zoneminder doesn't use full disk space

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Zsolo
Posts: 1
Joined: Mon Jul 07, 2025 10:35 am

Zoneminder doesn't use full disk space

Post by Zsolo »

Hi everyone!

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
As far as I can see, the four disks should be working fine (they are mounted in fstab via their UUIDs). However if I set them up for the 4 cameras (each camera uses one disk), ZM only sees ~48GB each:
zm_disk.png
zm_disk.png (20.99 KiB) Viewed 365 times
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
What might cause the issue? I formatted the disks with ext4 filesystem, the system sees them just fine.

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...
User avatar
Andyrh
Posts: 306
Joined: Sat Oct 28, 2017 3:55 am

Re: Zoneminder doesn't use full disk space

Post by Andyrh »

Maybe I am reading it wrong, but the drives are mounted at /srv/camX and the disk pools are pointing to /mnt/camX
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
mikb
Posts: 706
Joined: Mon Mar 25, 2013 12:34 pm

Re: Zoneminder doesn't use full disk space

Post by mikb »

Andyrh wrote: Mon Jul 07, 2025 2:31 pm Maybe I am reading it wrong, but the drives are mounted at /srv/camX and the disk pools are pointing to /mnt/camX
Good spot!

... and /mnt/CAMx (if it exists) would be on the root drive (/) so it would show the space for the root drive over and over, which appears to be the case :(

Once the volumes/partitions are mounted on the same place the storage tab is looking at, things should improve.
Post Reply