continuous 1:1 backup from NVME to SSD

qhash

New Member
Mar 13, 2024
12
0
1
I have a small N305 device that I want to install proxmox on and run some VMs (also a routing instance, i.e. OPNSense). My box has one x2 PCIE3.0 NVME port and a SATA port. I do not want to do ZFS RAID1 from them because of the drop in performance. Is there any way/tool to copy/backup the whole contents of the NVME drive to SATA SSD drive constantly so that in case NVME fails, I can reboot using SATA SSD?
 
There are several ways to do this, however none inside the GUI. The GUI has a replication feature with which you can replicate vm disks from a local zfs storage to a zfs storage on a different host. This uses zfs send/receive feature under the hood but doesn't work with different local disks.
But this feature of zfs could be used to achieve your usecase:
Setup zfs on both disks. Write yourself a shellscript, which syncs everything from the NVME to the SATA ssd. Afterwards setup a cron job or systemd timer to run this script on a fixed time schedule (e.G. every 15 minutes/hourly/daily/whatever).

Another option could be to use the native backup function of PVE to backup the VMs to the SATA ssd. In case of an NVME failure you would then restore the VMs from the backup and relaunch them. if you partition the SATA SSD that you have one partition for another install of PVE and another one for the data you should be able to have a minimal downtime.

In any case you should als have backups outside the N305, at least one offsite
 
Thanks. Guess I wont be able to write a scipt in the nearest future, so I will go with second option. Must investigate a backup of a complete network host config as well so that downtime is not long.
 

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!