Page 1 of 1

Can I expand the size of Default storage.

Posted: Sat Jul 06, 2019 9:43 pm
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

Re: Can I expand the size of Default storage.

Posted: Wed Jul 17, 2019 2:30 pm
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.

Re: Can I expand the size of Default storage.

Posted: Sun Jul 21, 2019 10:57 pm
by jprainey
Thank you gbkersey!

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

Jack