Page 1 of 1

Upgrade 3.0.1.9 - Not enough diskspace

Posted: 26 Mar 2017 15:46
by Mr. Happy
When I try to update I get the following error:

Code: Select all

Starting update to E.F.A. 3.0.1.9
Error:  Free space on /var not sufficient to safely upgrade to MariaDB
I have over 7GB freespace of the 14GB partition....
How much free space does it need?

Re: Upgrade 3.0.1.9 - Not enough diskspace

Posted: 26 Mar 2017 17:22
by shawniverson
14GB is not very much, even if 50% full.

An extra copy of the db needs to happen for safe upgrade. You must have enough space for that.

Re: Upgrade 3.0.1.9 - Not enough diskspace

Posted: 26 Mar 2017 17:28
by darky83
We need about 3 times the size of your mysql DB so you probably need to increase the disk size.

See: viewtopic.php?f=14&t=516

For a quick check you could run:

Code: Select all

sudo echo "Free Space: $(df -P /var | awk '{print $4}' | grep [0-9])"
sudo echo "Mysql Size: $(du -c /var/lib/mysql | grep total | awk '{print $1}')"
sudo echo "Needed: $((`du -c /var/lib/mysql | grep total | awk '{print $1}'` * 3))"
sudo echo "Difference: $((`df -P /var | awk '{print $4}' | grep [0-9]` - `du -c /var/lib/mysql | grep total | awk '{print $1}'`))"

Re: Upgrade 3.0.1.9 - Not enough diskspace

Posted: 26 Mar 2017 19:28
by Mr. Happy
Extended the partition and used lvextend to extend var and switch to MariaDB is running as we speak... :D
Thanks!

Re: Upgrade 3.0.1.9 - Not enough diskspace

Posted: 12 May 2017 08:34
by jossi
Can you please post whole comand i need to use to extend /var partition? I extend size of virtual disk from 30 to 40 GB in vcenter vsphere.
Thanks!

Re: Upgrade 3.0.1.9 - Not enough diskspace

Posted: 14 May 2017 12:33
by shawniverson