Page 1 of 1

ZM seems to not see new partion size after moving events

Posted: Wed Nov 30, 2016 5:01 pm
by tiripon
Hi everyone,

I moved the events folder from a 1TB to a 4TB.

After moving, ZM still shows disk 9% on the top left corner as it was when on the 1TB.
And I can see that it is actually at 5% when I do "df -h" on the server.
After deleting the whole events folder it dropped at 5% but it shoudl show 1%.

Everything looks OK but I am concerned about if ZM really sees that there is much more space available to record events.
Is there a field somewhere that would have the wrong info about the size of that partition?

Here is how I moved it:

1- I stopped zm
2- I mv /var/cache/zoneminder/events/ /var/cache/zoneminder/events_old/
Which renamed the events folder
3- I added in the /etc/fstab file /dev/sda1 /var/cache/zoneminder/events ext4 defaults 0 0
(The original events folder was on sdb1 (1TB) and now the /var/cache/zoneminder/events folder is mounted on sda1 (4tb) when I boot up the server.
4- I rebooted and stopped ZM again
So when I "df -h" I can see that the folder events is indeed on sda1
5- I cp -a /var/cache/zoneminder/events_old/* /var/cache/zoneminder/events/
Which copied the content of the original events folder to the new one. Everything works fine
6- And finally I rm -rf /var/cache/zoneminder/events_old
Which deleted the original events folder from the 1TB drive.

Re: ZM seems to not see new partion size after moving events

Posted: Thu Dec 01, 2016 3:03 pm
by tiripon
I think I know what is happening.

I think that what I am seeing as Disk % is not free space available on my second drive (4td) but the total % of available space on both drives. Which, I think, makes more sense.

What do you guys think?

Re: ZM seems to not see new partion size after moving events

Posted: Thu Dec 01, 2016 9:39 pm
by alabamatoy
"the total % of available space on both drives" - that's how I have been interpreting that value on the console, and the math works based on my df output.