Can I expand the size of Default storage.

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
jprainey
Posts: 7
Joined: Thu May 30, 2019 3:44 am

Can I expand the size of Default storage.

Post by jprainey »

Hi all,

I have an installation of ZM running on an Ubuntu 18.04 VM. When I did the initial setup, I allocated 100GB of a ~225GB SSD to the VM.

I have been adding cameras and learning about ZM ever since. (and enjoying it immensely)

I seen to have hit a little bump.

I am running 4 cameras, and have set them up to MOCORD with a 5 day filter. Everything doing well, except that I am pushing the limits of storage, using about 86% in storing events. To address this, I expanded the VM disk allocation to 200GB, and expanded /dev/sda2 partition to include the expanded space. I was surprised when ZM did not change ... it is still showing 86% usage in default (84.28GB of 97.93GB 67.13GB used by events.

Spent the last 2 hours searching for an explanation and/or a solution.

My question: Is there any way to expand Default Storage to use all of the available space in the partition?

Thanks in advance,

Jack Rainey
gbkersey
Posts: 1
Joined: Wed Jul 17, 2019 2:27 pm

Re: Can I expand the size of Default storage.

Post by gbkersey »

You expanded the partition, but did you expand the file system? If you are using the ext4 file system (the most common), do this....

resize2fs /dev/sda2

That will expand the file system to the size of the partition.
jprainey
Posts: 7
Joined: Thu May 30, 2019 3:44 am

Re: Can I expand the size of Default storage.

Post by jprainey »

Thank you gbkersey!

Worked perfectly, although I thought I had already done that.

Jack
Post Reply