Backup PVE Host and Restore to new disk?

1liminal1

Member
Aug 5, 2022
40
0
11
Hey guys,

The SSD of one of my hosts is failing. How can I take an image of the running host to my attached storage so I can image a new SSD?

Thanks :)
 
Thanks for that, but this seems to be something would require me to attach a monitor to the host, which is not very feasible right now. Is there something else that can take a running image?
 
Backing up a mounted filesystem is always problematic. That why you boot into clonezilla instead of installing it as a package. If you want consistent backup of a running system you would need to snapshot that entire system and then create a backup based on that snapshot.
 
yeah, ive decided to go the clone zilla way. But how do you boot into it LOL?

I can boot into it on my laptop, but it does not appear in the GRUB boot loader that comes up on the host? Should it?

**EDIT


All good, I was at the wrong layer :)
 
Last edited:
Ok, so clonezilla didn't work. I have an old Mac Pro for the host and the drive is actually 500GB not the made up 500GB that most disk makers say their drives are.

So I guess now, I have to find another way to do it.

I'm very surprised that Proxmox does not have a recommended way to do this. hosts must fail from time to to time right LOL?
 
I also had not much luck with clonezilla.
The way I did it, was to setup a SystemRescue usb (https://www.system-rescue.org/), ssh is enabled, with password set in 100-defaults.yaml, then I simply insert usb drive in host machine and reboot, ssh in to host, and all drives will then be unmounted. Next I use dd (handle with care!) to make an image of host to another drive which I mount.
The whole process is pretty seamless and headless.
Good luck. Go to the above site at SystemRescue, and its pretty well documented.
 
I'm very surprised that Proxmox does not have a recommended way to do this. hosts must fail from time to to time right LOL?
Thats why you ...:
A.) ... should run raid with mirrors or parity data. SSDs/HDDs are consumables and will fill sooner or later, so you should run at least a raid1 for redundancy. Then it doesn't really matter if one of your disks is failing, as everything will continue running normally, except that you will have to pay for a new one.
B.) ... could run a cluster, so it's no problem, even when a whole server fails. Everything will continue working while you replace the dead server with new one.
C.) ... should have recent host, guest and data backups. Then you could always restore a backup from a day or hour ago in case A and B are for some reason failing.
 
Thanks for the info

A. Totally agree with you, but this is just a home server. I'm not made of money or electricity HAHA
B. I am running a cluster actually, I've moved my workloads to the other host. So no issue there
C. All backed up.


Its just a matter of all the configs, I have certs set up. Bonded NICs If I just create a new host in the cluster, how can I backup and restore those configs? I guess thats the solution?
 
A. Totally agree with you, but this is just a home server. I'm not made of money or electricity HAHA
You get a new enterprise grade SSD (Samsung PM883 240GB), perfectly fine as a ZFS mirror for your PVE installation, for 37€ only. That one idles at 1.3W, so one of them running 24/7, at expensive 0,40€/kWh electricity price, would just be 0,37€ per month. So costs shouldn't be a problem. You probably already spend way more for that host ;)

Its just a matter of all the configs, I have certs set up. Bonded NICs If I just create a new host in the cluster, how can I backup and restore those configs? I guess thats the solution?
You can't just overwrite all the config files. But a backup of "/etc" (especially "/etc/pve") still helps to set up a new node. Another option would be to backup the system disk on block level using something like clonezilla. Another possibility would be to backup the config.db (which mounts the PMXCFS in /etc/pve).
 
  • Like
Reactions: BamaTechster
thanks for taking the time to help me get it here. I do appreciate it.

Ok. So I’m back to clonezilla then (though I probably could have just done it from scratch now

Is there a way. Or can you point me to a post that can adjust for this issue.
 

Attachments

  • IMG_5919.jpeg
    IMG_5919.jpeg
    754.2 KB · Views: 22
Ok, I found some answers. It’s not going to work. So I’ll just rebuild from scratch

Thanks again
 

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!