Page 1 of 1

How to change storage location

Posted: Mon Jan 06, 2025 7:08 pm
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?

Re: How to change storage location

Posted: Tue Jan 07, 2025 3:12 am
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.

Re: How to change storage location

Posted: Tue Jan 07, 2025 2:00 pm
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!