Le 19/11/2016 à 11:28, Jorge Expósito a écrit :
I've extended the virtual drive on VMware from 7 Gb to 8 Gb.
Rebooted my guest Debian with Gparted and extended the drive with the 1
extra Gb successfuly.
Rebooting again and starting my virtualized Debian I make a fdisk -l and
it seems that the extra Gb is actually there.
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 16777215 16275458 7,8G 5 Extended
/dev/sda5 501760 16777215 16275456 7,8G 8e Linux LVM
But if I run df -h it seems that it is not.
S.ficheros Tamaño Usados Disp Uso% Montado en
/dev/dm-0 6,3G 4,8G 1,1G 82% /
(...)
What's the problem?
The problem is that the installation uses LVM. At best, you only
extended the "physical volume" (LVM container) in /dev/sda5. At worst
you only extended the partition /dev/sda5.
Steps :
1) Extend the PV to the new partition size (will do nothing if not needed) :
pvresize /dev/sda5
2) Check available space in the "volume group" :
vgscan
3) Display "logical volumes" :
lvscan
4) Extend logical volume(s) as desired (assuming extN) :
lvextend -L <size> /dev/<vg>/<lv>
5) Resize filesystem(s) :
resize2fs /dev/<vg>/<lv>