So, I'm planning an upgrade from version 3.4 to 7.2
It would seem the best way to do this is by backing up all the VMs to a remote storage, shutting down the machine and then simply installing the most recent ISO, wiping all the old data.
And then restoring the backups.
I just want to make sure that would work.
Especially considering this:
https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)
On newer versions I'm seeing the output of `lsblk` showing a pve per VM under the /dev/mapper/data directory. In the old version, these are images under /var/lib/vz somewhere.
In particular: this storage is an on SSD. For faster I/O. And several VMs are specifically on that one, because of this fact.
I can back those up, but if I want to restore them, how will I add them to the data directory? Do I extend the data volume? If so, how? I saw it has 2 subgroups in lsblk, so that has me a bit confused.
So, just wanted to confirm this strategy of backup -> restore will work across such a big gap in versions. If snapshot is ok or it's better to stop them all and do a backup then.
And ask what to do about this mount.
It would seem the best way to do this is by backing up all the VMs to a remote storage, shutting down the machine and then simply installing the most recent ISO, wiping all the old data.
And then restoring the backups.
I just want to make sure that would work.
Especially considering this:
https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)
Rich (BB code):
For Proxmox VE versions up to 4.1, the installer creates a standard logical volume called “data”, which is mounted at /var/lib/vz.
Starting from version 4.2, the logical volume “data” is a LVM-thin pool, used to store block based guest images, and /var/lib/vz is simply a directory on the root file system.
On newer versions I'm seeing the output of `lsblk` showing a pve per VM under the /dev/mapper/data directory. In the old version, these are images under /var/lib/vz somewhere.
A potential issue
The old machine has a mount that was added as extra storage. It's called /mnt/extrastorage and has an images folder, with the numbers of the VMs and their images under it. It is mounted from /etc/fstabIn particular: this storage is an on SSD. For faster I/O. And several VMs are specifically on that one, because of this fact.
I can back those up, but if I want to restore them, how will I add them to the data directory? Do I extend the data volume? If so, how? I saw it has 2 subgroups in lsblk, so that has me a bit confused.
So, just wanted to confirm this strategy of backup -> restore will work across such a big gap in versions. If snapshot is ok or it's better to stop them all and do a backup then.
And ask what to do about this mount.
Last edited: