Upgrading XCP-ng host hardware
-
Hi All,
I am new to XCP-ng.
I initially installed XCP-ng onto a machine with an AMD X470 motherbard and 250GB SSD.
I have some storage connected by SR via NFS mounts.
I want to upgrade the host to an AMD 570 motherboard, a different CPU and a 500GB NVME (to replace the SSD).
What is the preferred way to do this?Could I just take the SSD and transplant it across to the new machine and then (somehow?) replace the SSD with the NVME?
Please that note my setup is just 1 host (not clustered).Thanks in advance.
-
At first sight, I would probably install a fresh XCP-ng on the other host, backup the pool metadata on the old one, shutdown that old host, and restore those metadata on the new one.
-
@olivierlambert Thank you for this. So on the new host, I assume that I would need to set up all the SR's before restoring the metadata?
From your reply this is how I understand it.
- Build new host (as a new installation)
- Backup metadata on old host and then shut it down.
- Configure SR's on new host (the same as they were on the old host).
- Restore metatdata backup on new host.
- I should be good to go ..
Have I go the steps right?
-
- You shouldn't configure anything. Metadata restore should reconnect to every existing SRs and such.
-
@olivierlambert Okay ... But to restore your metadata backup, surely you need to connect to a SR (where the backup is stored) or am I misunderstanding. I have never done this type of restore before.
How would you restore the backup? From the command line or XCP-ng Centre? -
@dartec Hi All. I am still trying to work this out.
Where should I back up the metadata to? My backup SR is on a NFS share.
I don't understand how I can restore the metadata from a backup without adding the SR.
Am I missing something here?
I assume that the best way to restore the metadata via xsconsole on the new machine?TIA
-
In Xen Orchestra, metadata backup is done in the backup repository (BR, also called "remote").
To restore, after you installed your fresh XCP-ng, connect to it in Xen Orchestra, and then go to "Restore"/"Metadata" and select the fresh connected XCP-ng pool/host, and validate. Then, the host will just get all the metadata back and reconnect to all SRs and so on.
-
@olivierlambert Thank you.
Now I think I see my problem .... my Xen Orchestra instance is a VM on that host ...
I assume it would be best to have the XO instance on another machine? -
It doesn't matter: if your XO dies, you can re-import a fresh one and reconnect to the backup repo, and restore metadata.