Not enough space for updates [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Not enough space for updates [Solved]

Postby Honeyman » Tue Jun 18, 2013 4:33

Hi all,

I just ran equo update && equo upgrade --ask and was notified that there was allegedy not enough disk space available:

Code: Select all
[email protected]# equo upgrade --ask
.....
>>  @@ Packages needing to be installed/updated/downgraded: 327
>>  @@ Packages needing to be removed: 0
>>  @@ Packages needing to be installed: 0
>>  @@ Packages needing to be reinstalled: 0
>>  @@ Packages needing to be updated: 327
>>  @@ Packages needing to be downgraded: 0
>>  @@ Download size: 1142.4MB
>>  @@ Freed disk space: 106.0MB
>>  @@ You need at least: 2178.7MB of free space
>>  !!! Attention
>>  !!! Attention
>>  !!! You don't have enough space for the installation. Free some space into: /var/tmp/entropy
>>  !!! Attention
>>  !!! Attention
     Would you like to continue ? [Yes/No] No


So I checked whether that was really the case:
Code: Select all
[email protected]:~# df -PhT | sort -nk6
cgroup_root                       tmpfs      10M     0   10M   0% /sys/fs/cgroup
Filesystem                        Type      Size  Used Avail Use% Mounted on
udev                              devtmpfs   10M     0   10M   0% /dev
none                              tmpfs     1.5G  1.2M  1.5G   1% /run
none                              tmpfs     1.5G  360K  1.5G   1% /dev/shm
tmpfs                             tmpfs     1.5G  360K  1.5G   1% /dev/shm
tmp                               tmpfs     1.5G  952K  1.5G   1% /tmp
vartmp                            tmpfs     1.5G   13M  1.5G   1% /var/tmp
/dev/sda1                         ext3      485M  127M  334M  28% /boot
/dev/mapper/VG_Sabayon-LogVolHOME btrfs     277G  165G  111G  60% /home
/dev/mapper/VG_Sabayon-LogVolROOT ext4       28G   20G  6.8G  75% /

Looks just fine to me. What is entropy actually complaining about?

Code: Select all
Free some space into: /var/tmp/entropy

What kind of files am I supposed to move to that directory?

Thanks for your help
Last edited by Honeyman on Tue Jun 18, 2013 21:58, edited 1 time in total.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Not enough space for updates

Postby joost » Tue Jun 18, 2013 11:41

You can remove the downloaded file by running equo cleanup.
Code: Select all
df -h /var/tmp

Now run this:
Code: Select all
equo cleanup

And again:
Code: Select all
df -h /var/tmp
joost
Sagely Hen
 
Posts: 2566
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Not enough space for updates

Postby Honeyman » Tue Jun 18, 2013 13:14

joost wrote:You can remove the downloaded file by running equo cleanup.


Maybe my original post was somewhat unclear, there is no specific file I want to remove, I'm only told to free some space 'into /var/tmp/entropy' I assume that means I should clean up that directory?

I did:
Code: Select all
df -h /var/tmp
Filesystem      Size  Used Avail Use% Mounted on
vartmp          1.5G   14M  1.5G   1% /var/tmp


joost wrote:Now run this:
Code: Select all
equo cleanup



Then:
Code: Select all
equo cleanup
>> Cleaned: 4 files and directories


Then again:

Code: Select all
df -h /var/tmp
Filesystem      Size  Used Avail Use% Mounted on
vartmp          1.5G   14M  1.5G   1% /var/tmp


I do not see that the cleanup made any difference.

Code: Select all
df -h /var/tmp/entropy
Filesystem      Size  Used Avail Use% Mounted on
vartmp          1.5G   14M  1.5G   1% /var/tmp


and

Code: Select all
ls -al /var/tmp/entropy
total 0
drwxrwxr-x 2 pascal entropy 40 Jun 18 12:57 .
drwxrwxrwt 4 root   root    80 Jun 18 11:54 ..


Still entropy is complaining about insufficient disk space when I tell it to upgrade. I get the same message:

Code: Select all
>>  !!! You don't have enough space for the installation. Free some space into: /var/tmp/entropy


What am I doing wrong here or is there something I do not understand?

Thanks for your help joost
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Not enough space for updates

Postby joost » Tue Jun 18, 2013 15:22

Looks just fine to me. What is entropy actually complaining about?

It doesn't look fine to me.

You have this:
Code: Select all
vartmp                            tmpfs     1.5G   13M  1.5G   1% /var/tmp

1.5G free.
Code: Select all
>>  @@ You need at least: 2178.7MB of free space


Did you for some reason create a seperate partition and mounted it as /var/tmp?
If that is the case, perhaps you could change this behaviour in /etc/fstab and NOT do that. Since you do have more then enough space on the root filesystem anyway.

Maybe I'm wrong, but please check and confirm that there is an entry in /etc/fstab for /var/tmp

edit: Or maybe you did something like this: http://superuser.com/questions/306407/w ... tmp-to-tmp
joost
Sagely Hen
 
Posts: 2566
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Not enough space for updates

Postby Honeyman » Tue Jun 18, 2013 19:53

You are correct, I followed this tutorial: http://wiki.sabayon.org/index.php?title=How_to_optimize_and_accelerate_your_system#Ram_Drive_using_tmpfs

In the section Ram Drive using tmpfs there is the recommendation to append these two lines to /etc/fstab:

Code: Select all
tmp     /tmp      tmpfs rw,mode=1777 0 0
vartmp  /var/tmp  tmpfs rw,mode=1777 0 0


Thus /var/tmp and /tmp get mounted on a separate partitions. I should have thought of that. Will comment out the two lines and then reboot. That should solve the issue.

Actually I do not know by how much this tweak really speeds up the system. Although having implemented all those recommendations made itself really felt via a faster system. Maybe a comment should be added to this tutorial warning the unsuspecting, unexperienced newbie (like me for example) that this might cause some non-negligible issues when updating.

I really appreciate your support, it would have taken me ages to figure that out. I even overlooked the partition size for /var/tmp as being 'only' 1.5 GB.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Not enough space for updates [Solved]

Postby Honeyman » Tue Jun 18, 2013 22:01

Removing the two lines from the /etc/fstab file (or rather commenting them out) solved the issue! :mrgreen:

Having /var/tmp on a separate partition can cause problems when updating packages, now I know.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Re: Not enough space for updates [Solved]

Postby joost » Tue Jun 18, 2013 23:20

The wiki is wrong.
Because temp folders are cleared during shutdown, it is safe to place their storage locations in RAM


/var/tmp is designed to NOT do that at all!
http://en.wikipedia.org/wiki/Filesystem ... y_Standard

/var/tmp Temporary files to be preserved between reboots.
joost
Sagely Hen
 
Posts: 2566
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron