LVM increase disk space

step1

#fdisk /dev/sda

p

step2

d

2

step3

n

p

(default)

(default)

step4

t

2

8e

step5

#fdisk /dev/sda

p

step6

w

q

#reboot

step7

#pvresize /dev/sda2

step8

#vgdisplay

Mark the “Free PE / Size”

#lvdisplay

mark the “LV Name”

#pvdisplay

step9

#lvextend -l +{Free PE /Size} /dev/ol/root

step10

#lvdisplay

step11

#resize2fs /dev/ol/root

or

#xfs_growfs /dev/ol/root