resize LVM partition on VM

0

I don't know the steps which ended up in this position, but I currently have some extra space from resizing the virtual volume in VMWare. I think we tried using fdisk or parted on an ubuntu VM. But I am currently seeing this when I 'print' from 'parted'

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   295GB  295GB  extended
 5      257MB   133GB  133GB  logical                lvm

How can I get the extra space from the 295GB extended partition to show up in the lvm? Here is the fstab:

/dev/mapper/cmail-root /               ext4    errors=remount-ro 0       1
UUID=2518f444-6a6d-4fff-8c42-da640ad95655 /boot           ext2    defaults,acl        0       2
/dev/mapper/cmail-swap_1 none            swap    sw              0       0

Here is the fdisk -l dump:

Disk /dev/sda: 295.3 GB, 295279001600 bytes
255 heads, 63 sectors/track, 35898 cylinders, total 576716800 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 identifier: 0x0003893e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   576716799   288107521    5  Extended
/dev/sda5          501760   260046847   129772544   8e  Linux LVM

Disk /dev/mapper/cmail-root: 118.1 GB, 118111600640 bytes
255 heads, 63 sectors/track, 14359 cylinders, total 230686720 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 identifier: 0x00000000

Disk /dev/mapper/cmail-root doesn't contain a valid partition table

Disk /dev/mapper/cmail-swap_1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders, total 2097152 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 identifier: 0x00000000

Disk /dev/mapper/cmail-swap_1 doesn't contain a valid partition table

You can see the non-valid partition tables on 2 volumes. Any diagnosis about this? Thanks.

partitioning
lvm
asked on Stack Overflow Oct 12, 2020 by Dustin Yoder

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0