In this video, we erase our RAID-1 array 😱 and do a full restore from Veeam backup using the free Veeam Recovery Media for Linux.
See my previous video on installing and running Veeam: • Home NAS Linux: backup with Veeam
The relevant web pages for Veeam are the following (you will need to create an account):
https://www.veeam.com/products/physic...
https://helpcenter.veeam.com/docs/age...
You will need to download the Veeam Recovery Media for Linux ISO file and create a thumb drive using Rufus for Windows or Ventoy for Linux.
In case the USB disk containing the backup cannot be mounted in the tool (it's a common bug), the commands to manually mount it are:
lsblk
sudo mkdir -p /media/backup
sudo mount -t ntfs /dev/sdd1 /media/backup
sudo veeamconfig backup import --path /media/backup/debian-nas-box/BackupJob1/BackupJob1.vbm
veeamconfig backup list --all
sudo veeam
Obviously you will to adapt these commands to your particular needs.
EDIT regarding the swap partition:
The third partition containing the swap partition could not be restored from backup and had to be re-created as described below.
For some reason the swap partition created with Webmin in the video disappeared after a reboot so I had to recreate it using the command line:
open parted
sudo -i
parted /dev/md126
(parted) unit s print free
some lines are not show here, what is important are the start and end for free space:
Start End Size File system
1463144627s 1465143262s 1998636s Free Space
(parted) mkpart swap linux-swap 1463144627s 1465143262s
(parted) quit
If you get a warning about alignment such as 1463144627s % 2048s != 0s, you need to calculate the closest number that is a multiple of 2048, in this case it is 1463146496, and use this as start.
create swap file system and activate it
mkswap /dev/md126p3
swapon -a
make sure that /etc/fstab has the correct entry
/dev/md126p3 swap swap defaults 0 0
minor adjustment to avoid "gave up waiting for suspend/resume" message at bootup:
Run lsblk -o NAME,FSTYPE,MOUNTPOINT,UUID and note the UUID of the swap partition
Replace the UUID in /etc/initramfs-tools/conf.d/resume, with this UUID
Run update-initramfs -u
That's it!
-------------------------
00:00 Erase and re-create the RAID-1 array
02:44 Start Veeam Recovery Media
04:39 Initialize RAID-1 array as GPT disk
06:24 Manually mount USB drive
09:25 Restore volumes
12:25 fix swap partition in Webmin (see EDIT in description!)
-------------------------