Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174882

Re: Extending Debian partition under VMware

From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.user
Subject Re: Extending Debian partition under VMware
Date 2016-11-19 14:50 +0100
Message-ID <sFebL-5xH-1@gated-at.bofh.it> (permalink)
References <sFbnA-3PN-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Extending Debian partition under VMware Jorge Expósito <jorgeska@gmail.com> - 2016-11-19 11:50 +0100
  Re: Extending Debian partition under VMware Dan Ritter <dsr@randomstring.org> - 2016-11-19 14:20 +0100
    Re: Extending Debian partition under VMware Jorge Expósito <jorgeska@gmail.com> - 2016-11-19 20:20 +0100
  Re: Extending Debian partition under VMware Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-11-19 14:50 +0100

csiph-web