Boot up with an Fedora Live USB stick.
- Run
vgs
to check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0
- If there is you can just run:
lvresize -L +5G --resizefs /dev/mapper/fedora-root
NB: Remember to check where your fedora root
and home
partition is mounted by running fdisk -l
.
- If you don't have any free
VFree
space, you can shrink yourhome
partition and then extend yourroot
partition afterwards.
To scrink your home
partition run:
lvresize -L -10G --resizefs /dev/mapper/fedora-home
And then to extend your root
partition run:
lvresize -L +10G --resizefs /dev/mapper/fedora-root
Thanks! Similar issue faced while upgrading my server from fedora 29 to 30.
Downloading failed due to root partition was 100% full after downloading 1.4G our of 1.9G. I was stuck in middle.
I had space available and simply executed the below command my problem was fixed.
[kmehta@dev ~]$ date
Sat May 11 19:28:42 IST 2019
[root@dev ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.4G 0 1.4G 0% /dev
tmpfs 1.5G 0 1.5G 0% /dev/shm
tmpfs 1.5G 1.2M 1.5G 1% /run
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/mapper/fedora00-root 15G 15G 45M 100% /
tmpfs 1.5G 32K 1.5G 1% /tmp
/dev/sda1 976M 205M 705M 23% /boot
/dev/sdb5 150G 70M 149G 1% /mnt/nas001
/dev/sdc1 1.9T 99G 1.8T 6% /mnt/nas000
tmpfs 288M 0 288M 0% /run/user/1000
[root@dev ~]# lvresize -L +5G --resizefs /dev/mapper/fedora-root
Volume group "fedora" not found
Cannot process volume group fedora
[root@dev ~]# vgs
VG #PV #LV #SN Attr VSize VFree
fedora00 1 2 0 wz--n- <148.05g 130.11g
[root@dev ~]# lvresize -L +35G --resizefs /dev/mapper/fedora00-root
[root@dev ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.4G 0 1.4G 0% /dev
tmpfs 1.5G 0 1.5G 0% /dev/shm
tmpfs 1.5G 1.2M 1.5G 1% /run
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/mapper/fedora00-root 50G 15G 36G 30% /
tmpfs 1.5G 32K 1.5G 1% /tmp
/dev/sda1 976M 205M 705M 23% /boot
/dev/sdb5 150G 70M 149G 1% /mnt/nas001
/dev/sdc1 1.9T 99G 1.8T 6% /mnt/nas000
tmpfs 288M 0 288M 0% /run/user/1000
Thanks once again.
Regards
Kamal Mehta
https://www.smiansh.com