Re: How to free up space on the / filesystem

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

 





On 11 Nov 2024, at 01:38, Jon LaBadie <jonfu@xxxxxxxxxx> wrote:

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

On modern Fedora using a disk swap file is no longer the normal setup.

You can use the zram swap instead.

Once you have the zram swap setup then you can delete the swap LV and add its
space to your root.

You may already have zram setup.

What do these report:

sudo swapon
sudo zramctl 

For example this is what I see:

$ sudo swapon
NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition   8G   0B  100
$ sudo zramctl
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle         8G   4K   80B   12K      20 [SWAP]

On an older system I see both disk and ram swap:

$ sudo swapon
NAME       TYPE      SIZE USED PRIO
/dev/dm-3  partition 7.8G   0B   -2
/dev/zram0 partition   8G 256K  100

First you would need to remove swap from your /etc/fstab and reboot.
Then you should be able to delete the swap partition and grow your root
partition.

Barry

-- 
_______________________________________________
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