How to increase lvm size ( partitions already messed up )
hi all i have two partitions one is used for f20 , and another is ntfs. i didn't know that gparted
should not be used any more, and system-config-lvm
has retired and not in repo anymore, so i boot up with live usb, and use gparted to resize ntfs partition and add free space to my fedora partition ( absurdly slow .. is this the correct way of doing it ? ). but the free space is not showing, so i ran the following command in live usb
lvextend -l 100%FREE /dev/mapper/fedora-root
after rebooting, the free space shown in df ~ or gparted is 100% , did i mess it up ?
current gparted chart:
[root@localhost liveuser]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 fedora lvm2 a-- 195.11g 0
[root@localhost liveuser]# vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 2 0 wz--n- 195.11g 0
[root@localhost liveuser]# lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
root fedora -wi-a----- 191.11g
swap fedora -wi-ao---- 4.00g
[root@localhost liveuser]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 3.9G 3.1G 753M 81% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 84K 2.0G 1% /dev/shm
tmpfs 2.0G 992K 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sdb1 3.8G 1.5G 2.4G 39% /run/initramfs/live
tmpfs 2.0G 16K 2.0G 1% /tmp
varcacheyum 2.0G 0 2.0G 0% /var/cache/yum
vartmp 2.0G 0 2.0G 0% /var/tmp
[root@localhost liveuser]# vgdisplay
--- Volume group ---
VG Name fedora
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 195.11 GiB
PE Size 4.00 MiB
Total PE 49949
Alloc PE / Size 49949 / 195.11 GiB
Free PE / Size 0 / 0
VG UUID GDeYpW-7cmv-40j9-GnDZ-SpAG-K3yQ-vjcC7X
[root@localhost liveuser]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name fedora
PV Size 195.11 GiB / not usable 1.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 49949
Free PE 0
Allocated PE 49949
PV UUID eSMc5f-35PH-UGTV-v0zM-32W4-ZR2u-Zp0cfo
[root@localhost liveuser]# lvdisplay
--- Logical volume ---
LV Path /dev/fedora/swap
LV Name swap
VG Name fedora
LV UUID nwrMog-WQhJ-UlJm-psg3-VQ6C-xHzj-kFTc0d
LV Write Access read/write
LV Creation host, time localhost, 2013-07-14 01:27:54 -0400
LV Status available
# open 2
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Path /dev/fedora/root
LV Name root
VG Name fedora
LV UUID jsJ8VY-NEMc-SKt3-yeNz-hcDo-aZDt-RR7Otz
LV Write Access read/write
LV Creation host, time localhost, 2013-07-14 01:28:13 -0400
LV Status available
# open 1
LV Size 191.11 GiB
Current LE 48925
Segments 1
Allocation inherit
Read ahead ...