A Comprehensive Journey: From Proxmox Boot Disk Backup to Proxmox Backup Server Configuration

Proxmox Backup and Restore Process in a modern server room with digital backup systems.

Proxmox Backup and Restore: A Comprehensive Journey

In the realm of virtualization and server management, safeguarding your configuration and data is paramount. My journey began with the quest to back up Proxmox boot disks and essential configuration files. As the conversation evolved, we delved into crafting a robust backup script, exploring Proxmox Backup Server, and configuring PCI passthrough for efficient resource management. Here’s a detailed account of this journey, highlighting the key steps and lessons learned.

Table of Contents

Introduction

Managing a Proxmox environment demands meticulous attention to backup strategies, ensuring quick recovery in case of failures. This journey illustrates how I navigated through various challenges, ultimately optimizing the backup and recovery process for my Proxmox server.

Initial Steps: Boot Disk Backup

The journey began with a simple goal: to create a backup of my Proxmox boot disk and essential configuration files. The intention was to facilitate quick recovery by reinstalling Proxmox and restoring configurations from a backup. Here’s a quick overview of the initial steps:

  1. Identify Important Configuration Files:
    • /etc/pve/
    • /etc/network/interfaces
    • /etc/hosts
    • /etc/resolv.conf
  2. Create Backup Directories:
    mkdir -p /mnt/backup/proxmox_config
  3. Use Rsync for Backup:
    
    rsync -avz /etc/pve/ /mnt/backup/proxmox_config/pve/
    rsync -avz /etc/network/interfaces /mnt/backup/proxmox_config/
    rsync -avz /etc/hosts /mnt/backup/proxmox_config/
    rsync -avz /etc/resolv.conf /mnt/backup/proxmox_config/
            

Crafting a Robust Backup Script

To automate the backup process, a comprehensive script was developed. This script incorporated essential steps such as creating backup directories, using rsync to copy files, and implementing monitoring and alerting mechanisms.

Backup Script Example


#!/bin/bash

# Define backup directories
CONFIG_DIRS=("/etc/pve/" "/etc/network/interfaces" "/etc/hosts" "/etc/resolv.conf")
BACKUP_DIR="/mnt/backup/proxmox_config"

# Create backup directories
mkdir -p $BACKUP_DIR

# Rsync configuration files
for DIR in "${CONFIG_DIRS[@]}"; do
    rsync -avz $DIR $BACKUP_DIR
done

# Add monitoring and alerting
# (Placeholder for monitoring logic)
    

Troubleshooting NAS Access Issues

Midway through the process, I encountered access issues with the NAS. This required revisiting the NAS configuration, ensuring proper permissions, and verifying network connectivity. Key troubleshooting steps included:

  1. Verify NAS Mount Points:
    df -h
  2. Ensure Correct NAS Configuration in /etc/fstab:
    //192.168.xxx.xxx/Proxmox/Makewin /mnt/TrueNAS_Makewin cifs credentials=/etc/samba/credentials,iocharset=utf8,sec=ntlm 0 0
  3. Reconfigure Mount Points and Test Connectivity:
    
    umount /mnt/TrueNAS_Makewin
    mount -a
            

Exploring Proxmox Backup Server

Discovering the Proxmox Backup Server opened a new avenue for efficient and comprehensive backup management. The steps to configure the backup server included:

  1. Install Proxmox Backup Server:
    
    apt update
    apt install proxmox-backup-server
            
  2. Create a Datastore:
    proxmox-backup-manager datastore create TrueNAS_Makewin /mnt/TrueNAS_Makewin
  3. Set Up Backup Jobs:
    proxmox-backup-manager backup-job create TrueNAS_Makewin --schedule "daily" --store TrueNAS_Makewin

Configuring PCI Passthrough

To optimize resource management, PCI passthrough was configured, allowing TrueNAS to directly manage disks connected to a specific SATA controller. Here’s a brief overview of the steps:

  1. Enable IOMMU in BIOS:
    • For Intel: Enable VT-d
    • For AMD: Enable AMD-Vi
  2. Configure IOMMU in Proxmox:
    nano /etc/default/grub

    Add intel_iommu=on or amd_iommu=on to GRUB_CMDLINE_LINUX_DEFAULT.

  3. Update Kernel Modules:
    nano /etc/modules

    Add:

    
    vfio
    vfio_iommu_type1
    vfio_pci
    vfio_virqfd
            

    Update initramfs:

    update-initramfs -u -k all
  4. Add PCI Device to VM: Through the Proxmox web interface, navigate to the VM, go to “Hardware”, add “PCI Device”, and select the SATA controller.

Conclusion

This journey from backing up Proxmox boot disks to configuring Proxmox Backup Server and PCI passthrough has been both educational and rewarding. By following these steps, you can ensure a robust and efficient backup and recovery process for your Proxmox environment, enhancing overall system reliability and performance.

Recommended Products

1. USB 2.5G Ethernet Adapter


UGREEN USB to Ethernet Adapter 2.5Gb, Ethernet to USB Adapter, Aluminum, USB 3.0 to RJ45 Computer Network Internet LAN Ethernet Dongle for laptop, Compatible for MacBook Air/Pro, XPS, Windows, macOS

Enhance your network speed with this USB 2.5G Ethernet Adapter. Ideal for users looking to upgrade from 1Gbit to 2.5Gbit without changing the entire network infrastructure.

2. USB-C 2.5G Ethernet Adapter


UGREEN USB C to Ethernet Adapter 2.5G, Ethernet Adapter for Laptop, Aluminum, Type C (Thunderbolt 4/3) to Rj45 Network Internet LAN Adapter, Compatible for NAS, MacBook Air/Pro, XPS, iPhone 15 Pro/Max

Enhance your network speed with this USB 2.5G Ethernet Adapter. Ideal for users looking to upgrade from 1Gbit to 2.5Gbit without changing the entire network infrastructure.

3. PCIe 10G Network Card


10G PCI-E Network Card with 10Gbps Dual RJ45 Ports, Intel X540-T2 Controller, VIMIN 10Gb Ethernet Adapter Card Compatible with PCI Express X8, X16, Support Windows/Windows Server/Linux/VMware

For those requiring higher network speeds, the PCIe 10G Network Card is perfect. It provides reliable and fast data transfer rates, suitable for intensive network tasks.

4. Network Switch with 10G Uplinks


8 Port 2.5G PoE Switch Unmanaged with 8 x 2.5Gb Base-T PoE+@120W + 10G SFP Uplink, 2.5Gbe IEEE802.3af/at Power Over Ethernet Switch, Support WiFi6 AP, NAS, 4K PoE Camera NVR.

This network switch supports multiple ports with 10G uplinks, allowing for a versatile and scalable network setup. Ideal for environments with mixed network speeds.

5. High-Speed Ethernet Cable (Cat 6a)


Rapink Patch Cables Cat6a 1ft (10 Pack) Slim, Cat6a Ethernet Patch Cable 10G Support, Snagless Cat 6 Patch Cable for Patch Panel to Switch, Flexible Cat 6a Ethernet Cable with Gold Plated

Ensure your network operates at optimal speeds with Cat 6a Ethernet Cables. These cables support higher bandwidths and faster data transfer rates.

6. Network Performance Monitoring Tool


Klein Tools VDV526-200 Cable Tester, LAN Scout Jr. 2 Ethernet Cable Tester for CAT 5e, CAT 6/6A Cables with RJ45 Connections

Monitor your network performance and troubleshoot issues effectively with this Network Performance Monitoring Tool. Essential for maintaining optimal network health.

Appendix: Command Reference

Here is a quick reference for the commands used throughout this guide:


# List all installed kernels
dpkg --list | grep linux-image

# Remove old kernels
apt-get remove --purge linux-image-

# Clean temporary files
rm -rf /var/tmp/*
rm -rf /tmp/*

# Manage log files
find /var/log -type f -exec du -sh {} + | sort -rh | head -n 10
> /var/log/large-log-file.log

# Clean old journal logs
journalctl --vacuum-time=1d

# Configure log rotation
nano /etc/logrotate.d/proxmox-logs

# Remove unnecessary packages and cache
apt-get autoremove
apt-get clean

# Clean Docker resources
docker system prune -a
docker volume prune
docker network prune

# Regular disk usage monitoring
crontab -e
0 0 * * * df -h | mail -s "Daily Disk Usage Report" moc.elpmaxeobfsctd@liame-ruoy

# Proxmox Backup Server commands
proxmox-backup-manager datastore create  
proxmox-backup-manager backup-job create  --schedule  --store 
                    

Why Support Matters

Creating valuable free content is a significant part of our mission but requires resources to maintain and grow. While we are dedicated to providing these resources without charging, they do incur costs. Your support is crucial in helping us continue offering this content. Here’s how you can help:

  • Use Affiliate Links: I earn from qualifying purchases as an Amazon Associate. Using our affiliate links for your purchases, you help us earn small commissions that contribute to covering our operational costs, at no extra cost to you.
  • Engage and Share: Engage with our content by liking, commenting, and sharing it with others. This increases our reach and attracts more visitors who might support us financially, allowing us to continue providing valuable content.
  • Provide Direct Support: Consider donating or subscribing to support the content you value. Even small contributions can make a significant difference and help us sustain our efforts.

Your engagement and support are vital to keeping this content available and accessible. Thank you for being part of our community and for helping us continue to grow and improve.

Disclaimer

As an Amazon Associate, I earn from qualifying purchases. This means I may earn a commission from qualifying purchases made through affiliate links, at no extra cost to you.

Stay Connected and Updated

For exclusive updates, training tips, fitness advice, and more, follow us across all our platforms through one easy link.

👉 Stay Connected for Exclusive Martial Arts & Fitness Tips

Join our community and never miss an update!

Return to the home section.

0

Your Cart Is Empty

No products in the cart.