ZM seems to not see new partion size after moving events

Forum for questions and support relating to the 1.30.x releases only.
Locked
tiripon
Posts: 34
Joined: Fri Aug 12, 2016 4:06 pm

ZM seems to not see new partion size after moving events

Post 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.
tiripon
Posts: 34
Joined: Fri Aug 12, 2016 4:06 pm

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

Post 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?
alabamatoy
Posts: 349
Joined: Sun Jun 05, 2016 2:53 pm

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

Post 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.
Locked