G
G
gogorsh2021-04-15 17:43:58
linux
gogorsh, 2021-04-15 17:43:58

How to increase Physical volumes (LVM) when the disk is already divided into 4 partitions?

Good afternoon.

There is VMware and guest CentOS 7.
It is necessary to increase the disk in the guest OS, but this has already been done before me.
And I ran into 4 partitions on the disk

A disk divided into 4 partitions can no longer be...

[[email protected] ~]# fdisk -l

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 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 label type: dos
Disk identifier: 0x00010b53

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    33554431    16264192   8e  Linux LVM
/dev/sda3        33554432    41943039     4194304   8e  Linux LVM
/dev/sda4        41943040  1005859375   481958168    5  Extended
/dev/sda5        41945088  1005859375   481957144   8e  Linux LVM

Disk /dev/mapper/centos-root: 512.7 GB, 512745275392 bytes, 1001455616 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/centos-swap: 1719 MB, 1719664640 bytes, 3358720 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

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Dmitry, 2021-04-16
@q2digger

add another disk to the virtual machine, make it PV , add it to VG and then increase the required partition

R
Ruslan Fedoseev, 2021-04-16
@martin74ua

so what's the problem then? well expand the last section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question