resize online LVM partition (PV)

General support questions
Post Reply
zio_mangrovia
Posts: 40
Joined: 2015/06/11 08:34:13

resize online LVM partition (PV)

Post by zio_mangrovia » 2017/09/27 06:43:51

I have disk /dev/sdb (160 GB) and it has only the primary partition 1 (/dev/sdb1 - type 8e LVM Linux) which includes the whole disk.
/dev/sdb is VMware virtual disk and /dev/sdb1 is LVM physical volume.
My scope is to increase PV size without reboot, so I followed these steps:

-I increased Vmware virtual disk size to 200 GB
-I run fdisk to delete /dev/sdb1 and I recreated it with the available first/last cylinder.
-I changed partition to 8e type.
-I saved changes

I'd like to resize PV online with no reboot I tried to run:

"echo 1 > /sys/class/scsi_device/x:x:x:x/device/rescan"
hdparm ... ,
partx
partprobe -s

fstab output shows right dimension but
I run pvresize /dev/sdb1 but my physical volume continue to be the old size.

Suggestions please?

Post Reply