Upgrade 3.0.1.9 - Not enough diskspace

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

Upgrade 3.0.1.9 - Not enough diskspace

Post 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?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post 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.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post 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}'`))"
Version eFa 4.x now available!
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by Mr. Happy »

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 »

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: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Upgrade 3.0.1.9 - Not enough diskspace

Post by shawniverson »

Post Reply