0

I just copied a 50 GB disk image using dd for bit copying to a new harddisk with 200 GB storage. On the disk is LVM including the system partition EXT4 and a swap partition (both LVs).

Well the copy is running and works great. Now I would like to expand the whole LVM VG, and LV and also the underlying EXT4 to use the whole disk.

At the moment it still claims to have 50 GB only. I would like to extend it not at a second disk to the Volume Group. What would be the best way to do it?

TheMAn
  • 31

1 Answers1

0

Well so far I found the solution on my own. http://bhaisaab.org/logs/lvm-cloning/ posted a HowTo to obtain the desired result.

For me, everything from pvdisplay up to the end was absolutely clear and should be save. I just did not know, that it is possible to use fdisk to delete the partition first and after that just to create a new one with the full size to get the correct partition table without loosing your data.

Well so far it works great. Don't ask me if it is very safe to follow that guide :)

TheMAn
  • 31