Missing something here

Discussion in 'HOWTO-Related Questions' started by unsichtbare, Feb 8, 2018.

  1. unsichtbare

    unsichtbare Member HowtoForge Supporter

    Hi all,
    I feel kinda stupid here, but I am having trouble growing an Ubuntu 16.04 partition running on VMware.
    1. I grew the virtual disk with VMware (was:200GB, now 250GB)
    2. I extended the Extended partition (/dev/sda2) to fill the disk (now 250GB)
    3. I ran: lvextend -l +100%FREE /dev/mapper/my--webserver--vg-root (got a little, but only about 4MB)
    4. I ran: resize2fs /dev/mapper/cloud001--webserver--vg-root (got a little, but only about 4MB)
    5. Still have not used the 50GB I added. What am I missing?
    What I can't seem to get through my head is extending /dev/sda5 inside the extended partition -THX in ADV!

    Code:
    Disk /dev/sda: 250 GiB, 268435456000 bytes, 524288000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xaa90b2c0
    
    Device     Boot   Start       End   Sectors   Size Id Type
    /dev/sda1  *       2048    999423    997376   487M 83 Linux
    /dev/sda2       1001470 524287999 523286530 249.5G  5 Extended
    /dev/sda5       1001472 419428351 418426880 199.5G 83 Linux
    
    
    Disk /dev/mapper/sda5_crypt: 199.5 GiB, 214232465408 bytes, 418422784 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/my--webserver--vg-root: 195.5 GiB, 209937498112 bytes, 410034176 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/my--webserver--vg-swap_1: 4 GiB, 4290772992 bytes, 8380416 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    root@my-webserver:~#
    
     

Share This Page