How to backup OS files when remplace actuel SSD drive by another

cyberfrk

Active Member
Aug 30, 2017
1
0
41
23
Hi everybody,

Sorry for my english…

I need to replace the present SSD drive who is old by another one. But I don't know how to do it quickly and wich files to backup and restore in the new SSD. All the Vms are stocked on a share

Here is my config :
HP Gen8, debian 9, proxmox 5.0-23 on SSD 120Go.
Vms : Disk on the 1st rack (dev/sdb1)
Backups Vms : NFS storage on my Synology.

Wich files must be backuped before change SSD drive ?
/etc/pve/nodes/proxmox/qemu-server/*.conf
/etc/fstab
/etc/hostname
/etc/hosts
/etc/network/interfaces
According this page, some files are essential to backup and restore :
https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs)

Thks a lot
 
as guletz said, if the new SSD is the same size, or bigger, than just clone it.
CloneZilla, or even plain old "dd" should work. Clonzilla gives you nice UI dd is CLI only
but first and foremost do the /etc backup.

also you may want to look into (and please everyone do not jump on me here :-) )
setting up the OS on 2 SSD with raid-1
this way you could possibly replace the drives easily one by one and if hardware permits on live and running system.
I know it works since I had my home lab setup like this. for years.