Upgrade 3.0.1.9 - Not enough diskspace

Report bugs and workarounds
Post Reply
Mr. Happy
Posts: 31
Joined: 03 Jan 2014 17:07

Upgrade 3.0.1.9 - Not enough diskspace

Post by Mr. Happy » 26 Mar 2017 15:46

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?

User avatar
shawniverson
Posts: 2880
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by shawniverson » 26 Mar 2017 17:22

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.
Version eFa 4.0.0 now available!

User avatar
darky83
Site Admin
Posts: 531
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by darky83 » 26 Mar 2017 17:28

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}'`))"
Version eFa 4.0.0 now available!

Mr. Happy
Posts: 31
Joined: 03 Jan 2014 17:07

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by Mr. Happy » 26 Mar 2017 19:28

Extended the partition and used lvextend to extend var and switch to MariaDB is running as we speak... :D
Thanks!

jossi
Posts: 2
Joined: 12 May 2017 08:29

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by jossi » 12 May 2017 08:34

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!

User avatar
shawniverson
Posts: 2880
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by shawniverson » 14 May 2017 12:33

Version eFa 4.0.0 now available!

Post Reply