Boot vm from live iso to re-partition the vm


Recommended Posts

I have a 16.04.2 Ubuntu Server running in a VM on my 6.5.2 unRAID Server.  The VM was formally set at a 50G cap but I figured out how to expand that on the webgui to 200G.  Now the Ubuntu VM is still complaining about not having enough space so I need to re-partition the drive in the VM to utilize the added space.  The partitioned needing to be expanded is set up as LVM if that matters.

 

I know a drive needs to be unmounted before it can be re-partitioned so is there a way to boot a live iso, such as the GParted Live bootable image, in unRAID like there is in virtualBox for example?

 

I don't know what all to list here so I can provide information about the VM and partitions as needed.

 

Thanks

Link to comment

You shouldn't need to. In pseudo code:

  • create a new partition on the disk
  • reboot
  • pvcreate <new partition>
  • vgextend <volgroup> <new partition>
  • lvresize <lvm>

the reboot is necessary because you resized your disk image, and now need to add a partition

If you added a new vdisk, you can skip step#2

Link to comment
21 hours ago, ken-ji said:

You shouldn't need to. In pseudo code:

  • create a new partition on the disk
  • reboot
  • pvcreate <new partition>
  • vgextend <volgroup> <new partition>
  • lvresize <lvm>

the reboot is necessary because you resized your disk image, and now need to add a partition

If you added a new vdisk, you can skip step#2

Thank you! That helped me out!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.