How to change storage location

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
KaptanFranje
Posts: 9
Joined: Thu Aug 22, 2024 1:13 pm

How to change storage location

Post by KaptanFranje »

My main server has only a small SSD (512 gig) so I decided to add a 4TB disk to it. Intention was that it will be used as the main storage for zoneminder events. I mounted the new drive (sdb1), and it is seemingly OK:
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1,6G 1,4M 1,6G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 456G 340G 97G 78% /
tmpfs 7,8G 185M 7,6G 3% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
/dev/sdb1 3,6T 36K 3,4T 1% /mnt/hdd_WD_4TB_NVR
/dev/sda2 2,0G 182M 1,7G 10% /boot
tmpfs 1,6G 20K 1,6G 1% /run/user/1000
And then I changed storage location in options/storage to this location. And then I restarted zoneminder (even restarted the ubuntu linux), but it is still saving to the old location. Here is my new location:
kapetan@serveronevallo:~$ sudo ls -l /mnt/hdd_WD_4TB_NVR/zoneminder/events
total 0
kapetan@serveronevallo:~$ sudo ls -l /mnt/hdd_WD_4TB_NVR/zoneminder
total 4
drwxr-x--- 2 www-data www-data 4096 jan 6 19:49 events
What do I miss?
User avatar
Andyrh
Posts: 300
Joined: Sat Oct 28, 2017 3:55 am

Re: How to change storage location

Post by Andyrh »

What you did looks correct, but if ZM cannot use a storage pool it will try another one.
Perhaps there is a small typo in the path of the storage pool.
Andy
o||||o

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

Re: How to change storage location

Post by mikb »

Also check the permissions one level up from what you posted with :-

Code: Select all

sudo ls -l /mnt/hdd_WD_4TB_NVR
... to make sure there is access available there. It would be annoying to grant permission to the ZM and ZM/events dir, but be blocked at the mount point not allowing ZM to even see in!
Post Reply