Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174873 > unrolled thread
| Started by | Jorge Expósito <jorgeska@gmail.com> |
|---|---|
| First post | 2016-11-19 11:50 +0100 |
| Last post | 2016-11-19 14:50 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | Jorge Expósito <jorgeska@gmail.com> |
|---|---|
| Date | 2016-11-19 11:50 +0100 |
| Subject | Extending Debian partition under VMware |
| Message-ID | <sFbnA-3PN-17@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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% / udev 10M 0 10M 0% /dev tmpfs 202M 5,6M 196M 3% /run tmpfs 504M 4,0K 504M 1% /dev/shm tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 504M 0 504M 0% /sys/fs/cgroup /dev/sda1 236M 32M 192M 15% /boot What's the problem? Thank you very much for helping. -- -- Jorge --
[toc] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2016-11-19 14:20 +0100 |
| Message-ID | <sFdIK-5os-7@gated-at.bofh.it> |
| In reply to | #174873 |
On Sat, Nov 19, 2016 at 11:28:57AM +0100, Jorge Expósito wrote: > 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 These are the underlying partitions... > 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% / > udev 10M 0 10M 0% /dev > tmpfs 202M 5,6M 196M 3% /run > tmpfs 504M 4,0K 504M 1% /dev/shm > tmpfs 5,0M 0 5,0M 0% /run/lock > tmpfs 504M 0 504M 0% /sys/fs/cgroup > /dev/sda1 236M 32M 192M 15% /boot and these are the filesystems built inside those partitions. > What's the problem? The next step is to resize the filesystem to fill the partition. Each filesystem type has a specific tool to do that; for ext2/3/4, the tool is resize2fs. Some filesystem types are not resizable. Use `mount` to figure out what filesystem types are in use. -dsr-
[toc] | [prev] | [next] | [standalone]
| From | Jorge Expósito <jorgeska@gmail.com> |
|---|---|
| Date | 2016-11-19 20:20 +0100 |
| Message-ID | <sFjl7-Cm-3@gated-at.bofh.it> |
| In reply to | #174881 |
[Multipart message — attachments visible in raw view] — view raw
A I had done the first part throught gparted there were only two commands left for running: lvextend -L +1G /dev/mapper/j0003--vg-root resize2fs /dev/mapper/j0003--vg-root Thank you. 2016-11-19 14:15 GMT+01:00 Dan Ritter <dsr@randomstring.org>: > On Sat, Nov 19, 2016 at 11:28:57AM +0100, Jorge Expósito wrote: > > 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 > > These are the underlying partitions... > > > 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% / > > udev 10M 0 10M 0% /dev > > tmpfs 202M 5,6M 196M 3% /run > > tmpfs 504M 4,0K 504M 1% /dev/shm > > tmpfs 5,0M 0 5,0M 0% /run/lock > > tmpfs 504M 0 504M 0% /sys/fs/cgroup > > /dev/sda1 236M 32M 192M 15% /boot > > and these are the filesystems built inside those partitions. > > > What's the problem? > > The next step is to resize the filesystem to fill the partition. > > Each filesystem type has a specific tool to do that; for > ext2/3/4, the tool is resize2fs. Some filesystem types are not > resizable. > > Use `mount` to figure out what filesystem types are in use. > > -dsr- > -- -- Jorge --
[toc] | [prev] | [next] | [standalone]
| From | Pascal Hambourg <pascal@plouf.fr.eu.org> |
|---|---|
| Date | 2016-11-19 14:50 +0100 |
| Message-ID | <sFebL-5xH-1@gated-at.bofh.it> |
| In reply to | #174873 |
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>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web