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

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*