Re: How to free up space on the / filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 10 Nov 2024 at 20:48, Terry Hurlbut <temlakos@xxxxxxxxx> wrote:
Output of sudo yum clean all
988 files removed

And now, using Dolphin, I find that the / LV no longer has that
concerning red line, and is showing 5.6 GiB free.

Have I just freed up the space I need?

Do you still have ~3GiB of stuff in /var/lib/dnf/system-upgrade/fedora-7efbab3c1dbcd0d4 (or ~5.6GiB in 5762344 /var/lib/dnf/system-upgrade?)

If so you could retry " dnf system-upgrade download --releasever=41 --allowerasing"

... and just see if you still get the warning/error.

How would you advise reclaiming some of the space I allocated to /home
without needing to? (The /home partition mostly contains symlinks
referring to directories that I store on /crypt. The /crypt petition
is a 1 TB SDD with plenty of space; that's for data only.)

If I can have a walk-through to manage readjusting between / and /home
without using parted or GParted, somebody could do me a really big
favor. (I already know NOT to use fdisk!)

This process is literally in the link here: https://unix.stackexchange.com/questions/213245/increase-root-partition-by-reducing-home#213417 (and more briefly here: https://unix.stackexchange.com/a/309723)

In the linked example:
1. Replace /dev/mapper/VolGroup-lv_home with /dev/mapper/fedora_localhost--live-home
2. Replace /dev/mapper/VolGroup-lv_root for /dev/mapper/fedora_localhost--live-root

Your disks / devices are smaller, so 

# umount /home
# e2fsck -f  /dev/mapper/fedora_localhost--live-home
# resize2fs   /dev/mapper/fedora_localhost--live-home 10G
# lvreduce -L 10G   /dev/mapper/fedora_localhost--live-home
# lvextend -l +100%FREE   /dev/mapper/fedora_localhost--live-root
# resize2fs  /dev/mapper/fedora_localhost--live-root
# mount /home

Would move ~40GiB from /home to /. Obviously tweak the numbers to your liking

If you can't unmount /home, fuser or lsof can help identify what's holding files open.

If you're nervous messing with file systems and block devices... I've been doing this off and on for > 20 years and I still think carefully, measure twice, cut once and worry when it comes to disks. Unless I *really* don't give a crap about the machine or its data integrity because it's replaceable.

Backup anything valuable in the blast radius.

Practice on another machine, VM or cloud instance to ensure you're comfortable what's happening.






-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux