I have server with 2TB disk, that someone initially partitioned like this:
- 300GB standard primary partition for operating system files(CentOS 7).
- 1.7TB LVM with some pretty big logical volumes - for other needs.
Since actual size of of operating system files turned out to be just around 400GB, later it's been moved to it's own logical volume on LVM, so this 300GB partition at beginning of disk become unused.
So, I removed this partition, and now want somehow to move start position of PV to beginning of disk, so it will utilize whole disk space. But i can't find any tools to do so - pvextend
can only extend PV to end of disk, not to beginning.
Yes I know that I can just add that old partition to VG as another PV, but having multiple PV's on single disk look's like something pretty weird.
Also I know that I can copy partitions to some external device or cloud storage, and then just recreate physical disk partitioning from scratch. But I don't want this because of long server downtime.
So, is there any way to just quickly extend PV to beginning of disk?