I know there are probably alot of threads about lvm however they aren't addressing my problem.
I want to extend the PEs available in a VG. This VG already has LVs and those are active and mounted.
From what I read from the manpages of pvresize this should be perfectly possible.
pvresize resizes PhysicalVolume which may already be in a volume group and have active logical volumes allocated on it.
I did the following steps and wonder if anyone has the same issue. THe machine where I am talking about is an ESX VM.
1. Resized the vmdk in ESX (+1G)
2. Let the kernel reread the device geometry: echo 1 > /sys/block/sdc/device/rescan
3. fdisk shows me the new size... so far so good
4. I resize the partition using fdisk (remove, recreate) and gave it the 8e type (lvm)
5. wrote config to disk
6. executed partprobe
7. pvresize /dev/sdc
Here it goes wrong!
Pvresize says in the verbose output it sees the same size however at the end it says the pv has been resized.
I have seen when I put volumes "offline" using vgchange -a n vg on a test machine, and then try pvresize it seems to work ok.
:s this is against what is in the manual as it says pvresize should work on online mounted volumes.
Can anyone reproduce this or does anyone knows a fix for this?
Thanks in advance!