migrating to new boot drive

rjrbytes

Renowned Member
Mar 19, 2016
3
0
66
I'm running Proxmox VE 4.1-22 and would like to replace my system's boot drive (replacing 64GB SSD). I know the usual process is to back up your VMs to another disk and then import after a fresh install, but I don't have sufficient extra drives to back up all the VM storage (critical stuff yes, my Plex server files no). Since my VM storage is actually residing on disks that I'm going to be keeping, I'm wondering if it's feasible to leave those as-is and import the storage with its VM disks into a new install? There's nothing noteworthy about the VM configs as they're basic Linux VMs, so could I create new VMs on a fresh install and then change the disks they're pointed at? Thoughts?

-Robert
 
Hi,
if you know what you doing (and you use normal lvm on your systemdisk) you can migrate on the fly to the new disk.
In this case, you must have an free slot for the new disk.
Create the same partition layout, copy the efi/boot-partitions (dd), expand the pve-VG, use pvmove (perhaps you must shrink pve-data before?), remove the old pv and finaly update grub... this as short version.

Of course, you should have an valid backup before ;-)

Udo
 
Well, I've successfully moved to booting off the new disk, but I'm not sure what I'm missing to get the extra space to show up in Proxmox.
 
Okay. Got it figured out. I needed to do the lvresize and resize2fs stuff. :) Thanks for the assistance!