0

I have a filesystem directly on an LV without a partition table. I want to create a partition table and add my filesystem to it with testdisk, which means I need more space before the filesystem. I have an extra PV, but it isn't big enough to contain the filesystem. How can I add the extra space to the beginning of the PV, to make room for a partition table?

1
  • Where do you want to create the partition table? In an LV, or on a disk? – Stephen Kitt Feb 12 '20 at 7:43
0

After clarification it is possible to do it. Generally speaking there is "begin" and "end" of VG. So first you should shrink the VG by removing free PV. Then you should remove the partition of this PV.

And create partition for your new installation. If you want to have the free space on the begin of the harddisk you should boot from live CD/DVD and move the partitions one by one to the end of the disk (to make the free space on the begin)

2
  • The VG is composed of several 500G PVs. I already have a free PV. I need to add space to an LV at the beginning rather than the end. – josephsmendoza Feb 12 '20 at 7:15
  • I have edited my question to make it more clear – josephsmendoza Feb 12 '20 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.