VMware Communities
enoch85
Contributor
Contributor
Jump to solution

Fail to lvextend -L +2000G

Hi!

I have just expanded my disk (in VMware Workstation 9) from 450GB to 2TB. The expand part worked fine with no errors. Now I want to expand the drive in my Ubuntu 12.04 guest OS and I fail. I don´t have any clue on what is wrong. I did the exact same procedure from 450GB to 600GB with no errors, but now it don´t work.

I used this commands:

ls -al /dev/sda*

fdisk /dev/sda

n

p

3

w

--reboot--

ls -al /dev/sda*


pvcreate /dev/sda3

vgextend owncloud /dev/sda3

vgdisplay

lvextend -L +2000G /dev/owncloud/root (failed due to no space left)

resize2fs /dev/owncloud/root (failed)

Here are some different outputs after i tried to extend:

root@owncloud:~# pvdisplay

  --- Physical volume ---

  PV Name               /dev/sda5

  VG Name               owncloud

  PV Size               459.76 GiB / not usable 2.00 MiB

  Allocatable           yes (but full)

  PE Size               4.00 MiB

  Total PE              117698

  Free PE               0

  Allocated PE          117698

  PV UUID               YCBU4V-qACb-y62A-9lM4-C9e3-5xv2-BECulg

  --- Physical volume ---

  PV Name               /dev/sda3

  VG Name               owncloud

  PV Size               1023.00 KiB

  Allocatable           NO

  PE Size               4.00 MiB

  Total PE              0

  Free PE               0

  Allocated PE          0

  PV UUID               GyhF8l-EPT1-M0kc-giIN-vcu3-5hx0-TWMLF9

root@owncloud:~# vgdisplay

  --- Volume group ---

  VG Name               owncloud

  System ID

  Format                lvm2

  Metadata Areas        2

  Metadata Sequence No  4

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                2

  Open LV               2

  Max PV                0

  Cur PV                2

  Act PV                2

  VG Size               459.76 GiB

  PE Size               4.00 MiB

  Total PE              117698

  Alloc PE / Size       117698 / 459.76 GiB

  Free  PE / Size       0 / 0 (should be ~2TB)

  VG UUID               UlERiU-lyJT-ZcYR-ykMW-aooB-dVr0-XVWVfi

root@owncloud:~# df -h

Filesystem                 Size  Used Avail Use% Mounted on

/dev/mapper/owncloud-root  451G  384G   45G  90% /

udev                       1.5G  4.0K  1.5G   1% /dev

tmpfs                      594M  300K  594M   1% /run

none                       5.0M     0  5.0M   0% /run/lock

none                       1.5G     0  1.5G   0% /run/shm

/dev/sda1                  228M  148M   68M  69% /boot

root@owncloud:~# ls -al /dev/sda*ls -al /dev/sda*

ls: cannot access /dev/sda*ls: No such file or directory

brw-rw---- 1 root disk 8, 0 Aug 12 00:09 /dev/sda

brw-rw---- 1 root disk 8, 1 Aug 12 00:09 /dev/sda1

brw-rw---- 1 root disk 8, 2 Aug 12 00:09 /dev/sda2

brw-rw---- 1 root disk 8, 3 Aug 12 00:09 /dev/sda3

brw-rw---- 1 root disk 8, 5 Aug 12 00:09 /dev/sda5

root@owncloud:~#


What is wrong here? Please help me. I just spent my entire weekend on trying to get this to work properly.

Cheers

0 Kudos
1 Solution

Accepted Solutions
enoch85
Contributor
Contributor
Jump to solution

I solved the problem by doing the process again and make a /dev/sda4 instead.

View solution in original post

0 Kudos
1 Reply
enoch85
Contributor
Contributor
Jump to solution

I solved the problem by doing the process again and make a /dev/sda4 instead.

0 Kudos