[SOLVED] Migrate PVE to a new drive

win9

New Member
May 6, 2024
14
1
3
I'm getting a new drive and want to install PVE on it instead of the current drive. My question is if I install PVE on the new one, will the storages (for VM disk images and other stuff) on the old drive still be recognizable and usable in the new installation?
 
If both resident on the same drive (PVE & VMs): no. A new install will wipe everything. If you have no separate drive for VMs you‘ll have to backup them first (USB, SMB/CIFS, etc.) and restore them afterwards. You could also clone your old drive to the new one and resize the partitions. In any case, a backup is advisable, even with a separate drive. VM configs are located on your boot drive/PVE system.
 
  • Like
Reactions: win9
Do you mean installing PVE on a newly added drive erases every other connected drives?
No, but you‘ll loose your configs from your VMs. If you leave the old drive you can use it as additional drive/space.
 
ok I got it
backup them first (USB, SMB/CIFS, etc.) and restore them afterwards
so this seems the only correct method to take. everything of a VM is preserved and VMs can be directly fully recovered

thanks for your help
 
  • Like
Reactions: cwt
another option is to clone the drive.
this should work well if the new drive is the same type of drive as the old one (i.e. Sata/SAS, NVMe, etc) and the same size.

if the new drive is bigger, cloning would still work, but you would have a lot of empty and unused space at the end of the disk (which can be made usable using cli).

just wanted to throw this out there, as i did this when i started with pve last year and quickly found my 512gb nvme too small for my purposes, so i cloned it to a 1tb nvme and later expanded the logical volumes to use the extra space.
 
Yes this may also be an option. But it seems more error prone and a bit inflexible, since with backups you can use other storages located elsewhere and this can be set through the recovering UI. much more convenient IMO
I'm planning to do so. to use a much smaller drive for PVE and move VM disks elsewhere
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!