Re: How to free up space on the / filesystem

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

 



On Sun, Nov 10, 2024 at 07:20:58AM -0500, Terry Hurlbut wrote:
Answers to Will's questions:

The message, which was the output of dnf system-upgrade download
--releasever=41 --allowerasing, ended with:

Error summary:

Disk Requirements:

At least 4437 MB more space required on the / filesystem.

Output of lsblk:

NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
  [snip]
sda                               8:0    0 111.8G  0 disk
├─sda1                            8:1    0     1G  0 part /boot
└─sda2                            8:2    0 110.8G  0 part
├─fedora_localhost--live-root 253:0    0    50G  0 lvm  /
├─fedora_localhost--live-swap 253:1    0   7.9G  0 lvm  [SWAP]
└─fedora_localhost--live-home 253:2    0  52.9G  0 lvm  /home
sdb                               8:16   0 931.5G  0 disk
├─sdb1                            8:17   0   128M  0 part
└─sdb2                            8:18   0 931.4G  0 part /crypt
  [snip]
Output of df -h:
ilesystem                               Size  Used Avail Use% Mounted on
/dev/mapper/fedora_localhost--live-root   49G   47G  396M 100% /
  [snip]
/dev/sdb2                                916G  313G  557G  36% /crypt
/dev/sda1                                974M  358M  549M  40% /boot
/dev/mapper/fedora_localhost--live-home   52G  1.7G   48G   4% /home
  [snip]

Both LV's swap and home have sufficient space for your 5GB needs.
I can envision 2 approaches:

1) reallocate LV swap extents to LV root:
   - create an 8GB file on /home and use it a swap
   - stop using the LV swap as swap and return its extents
     to the VG pool
   - lvresize (or lvextend) the LV root and resize the root fs

2) shrink LV home and reallocate the extents to LV root
   - copy the contents of /home (< 2GB) to somewhere on /crypt
   - reduce the home filesystem by what, ?10,20,30GB? Your choice
   - resize the LV home to match (I think lvresize can do both)
   - enlarge the LV root and the root fs to match (again I think
     lvresize can do both)
--
Jon H. LaBadie                  jonfu@xxxxxxxxxx
--
_______________________________________________
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