Ask Your Question
0

var low on disk space, again

asked 2018-02-17 09:01:26 -0500

Orriginal gravatar image

Just a few weeks after install Fedora27 I have started getting "low on disk space /var" and it currently has 0Mb of space. I have also seen that seems to be because of pakageKit

My question is, can I just change the line in fstab that reads /dev/mapper/fedora-var /var ext4 defaults 1 2 to pint towards another disk that I make a var folder on ? Could I do this by Diskuuid/var /var ext4 default 1 2 ( obviously assuming the disk is an ext4

Or do I need to create a partition in that new disk out of free space and name that var ? And if I do that, again, do I just use the uuid to point towards it in fstab ?

Are there any other things that may still point to the old var paertition? For instance, will packagekit automatically find the new one because of the statement in fstab ?

Thanks in advance

edit retag flag offensive close merge delete

Comments

If you are using LVM you can extend /var over the new storage, even better, assuming it's a big new disk, you can extend /root an /home as well.

fcomida gravatar imagefcomida ( 2018-02-17 09:22:14 -0500 )edit

How can I do that ? A huge question lol...but I just want to move /var really

Orriginal gravatar imageOrriginal ( 2018-02-18 02:36:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-18 00:53:04 -0500

cmurf gravatar image

updated 2018-02-18 00:56:08 -0500

There's no negative to doing

rm -rf /var/cache/PackageKit/*
dnf clean all

The caches for both will rebuild.

edit flag offensive delete link more

Comments

Thats a Good short stop solution and thank you but do have any suggestions for what I asked in the original post...as if the cache just rebuilds, I will have the same problem repeatable..........

Orriginal gravatar imageOrriginal ( 2018-02-18 02:35:31 -0500 )edit

If it's been a few weeks and it's already full, I'd say your selected size for /var is suboptimal. Either resize it or reinstall if you don't know how. Also, it's non-standard in Fedora to have a separate /var, usually it's just a directory on rootfs so it all shares the same space. Feel free to post the output of

sudo parted -l u s p
df -h
cmurf gravatar imagecmurf ( 2018-02-18 12:33:28 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-02-17 09:01:26 -0500

Seen: 555 times

Last updated: Feb 18 '18