Resize root directory in Fedora 29 Server.
Cannot do updates because of no disk space in the root directory. Deleted the history of Firefox in Root user and deleted history in Chrome and Firefox in user rickhrkachjr. Root Directory Still shows red in Disk Usage Analyzer. The other trouble I am Having is knowing which device houses what files in order to know which device to increase and which to decrease. The following is what I mean:
/dev/sda3 ext4 /Boot 1gig /dev/sda4 Extended 926.73gig /dev/sda5 lvm2pv 926.73gig 22.85gig used gparted is not helping me to shrink where I think I need to shrink. |
I'm using KDE desktop in Fedora 29, KDE partition manager says I have 18.80GB of 18.80GB used up in lvm2pv, but everything works. Yours is showing only 22.85GB used out of 926.73GB in lvm2pv, which means you have lots of free space.
What does df command show, below is what mine shows, only 41% used: Code:
[jo@localhost ~]$ df |
Hers what I have
[root@HomeEG1 ~]# dnf clean packages
0 files removed [root@HomeEG1 ~]# df Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 4033112 0 4033112 0% /dev tmpfs 4048620 0 4048620 0% /dev/shm tmpfs 4048620 1716 4046904 1% /run tmpfs 4048620 0 4048620 0% /sys/fs/cgroup /dev/mapper/fedora_homeeg1-root 15718400 14398828 1319572 92% / tmpfs 4048620 48 4048572 1% /tmp /dev/sda3 999320 203620 726888 22% /boot tmpfs 809724 28 809696 1% /run/user/0 /dev/sdf1 3906983932 74522296 3832461636 2% /run/media/root/My Book One question comes to mind, how do I see hidden files? |
Let me try this again.
Code:
[root@HomeEG1 ~]# dnf clean packages |
Learning something new every day.
Learning something new every day.
|
Run this to see the worst space consumers - be patient, it will take a while. I find PackageKit to be a problem child.
Code:
sudo du / -xh | sort -hr | head |
This is what I got
Code:
[root@HomeEG1 ~]# du / -xh | sort -hr | head |
Quote:
I would look into /var/cache/PackageKit to see what can be cleaned up there. The 29 directory seems to be most of it (2.2G out of the 2.4G in total) and the metadata again is most of 29. On the other hand, your root seems to be in a LVM logical volume. Does the vg (Volume Group) have any free allocation units left? Read up about LVM and lv management if you don't understand this. But IF the vg has free space, it is easy to extend the root with lvextend. Note that afterwards the file system has to be extended too and that cannot be done while you're running from it, so you'll need a LIVE fs with LVM support to do so. |
Quote:
|
Since you're using LVM, what do the commands pvs, vgs, and lvs show?
|
Quote:
|
Don't close this ticket
This might take a little bit but I would like to post the fix.
|
Is this what you are looking for in those commands
Should I have used the format in the previous command?
Code:
[root@HomeEG1 ~]# pvs |
I am using Gnome as a GUI
Does using Gnome create more packages for the GUI environment or any of the alternate sites for packages?
|
So, you have more than 900GB available for extending /. You can use lvextend to add space to /.
The pvs command gives a summary of your physical volumes (that is the disks/partitions used by LVM). The vgs command gives a summary of the volume groups (that's the storage pool that is made up of the physical volumes). The lvs gives a summary of the logical volumes (that's how the storage is divided up). The vgs shows that the volume group is 926.73g, and there is still nearly 903.88g available for logical volumes. With lvextend you can give it the exact size you want the lv to be or you can add space. For example, the following command will extend / to 20G: Code:
# lvextend -L20G -r /dev/fedora_homeeg1/root This will add 5GB: Code:
# lvextend -L+5G -r /dev/fedora_homeeg1/root You should really read up on LVM to really get an idea of the different things you can do with it. It gives you a lot of flexibility, especially with servers, but I use on everything, including laptops. |
All times are GMT -5. The time now is 11:37 AM. |