My proxmox install used two drives in a zfs pool as the storage system, but one drive was starting to fail. I bought a new, larger drive, backed up the VMs and copied /etc/pve. I swapped out the dying drive for the new one, and reinstalled proxmox. Then things went south.
I added the second drive to an LVM pool with the first drive. I copied the old /etc/pve/* files back onto the new system and then tried qmerestore to restore the old VMs. This gave me errors that “local-zfs” storage doesn’t exist (and that the VMs already existed). That was the old storage setup which was pooled zfs. So I used the qmerestore ‘—force 1’ and ’—storage local’ flag. This got the restore to work, but the VMs failed to boot.
So this is where I’m stuck. I don’t understand the proxmox storage options well enough to regenerate the system exactly as it was previously, nor, alternately, how to manage qmerestore in a system where the storage has been changed up.
If it helps, this is my original /etc/pve/storage.cfg:
I added the second drive to an LVM pool with the first drive. I copied the old /etc/pve/* files back onto the new system and then tried qmerestore to restore the old VMs. This gave me errors that “local-zfs” storage doesn’t exist (and that the VMs already existed). That was the old storage setup which was pooled zfs. So I used the qmerestore ‘—force 1’ and ’—storage local’ flag. This got the restore to work, but the VMs failed to boot.
So this is where I’m stuck. I don’t understand the proxmox storage options well enough to regenerate the system exactly as it was previously, nor, alternately, how to manage qmerestore in a system where the storage has been changed up.
- Given two 1TB SSDs, what is the best practices for setting my system up? Pool them with LVM or ZFS for flexibility? Keep them separate so that the VMs and local backups can live on different physical drives for robustness?
- How do I restore the VMs from backups on this system? Should I try to replicate the original storage configuration, or is there a way to restore the VMs onto an updated storage setup?
If it helps, this is my original /etc/pve/storage.cfg:
dir: local
path /var/lib/vz
content iso,backup,vztmpl
prune-backups keep-daily=4,keep-hourly=4,keep-last=4,keep-monthly=4,keep-weekly=4,keep-yearly=4
shared 0
zfspool: local-zfs
pool rpool/data
content images,rootdir
sparse 1
pbs: remote_bkp
# …