import type { Metadata } from "next" import { HardDrive } from "lucide-react" import CopyableCode from "@/components/CopyableCode" export const metadata: Metadata = { title: "ProxMenux Post-Install: Storage Settings", description: "Comprehensive guide to Storage Settings in the ProxMenux post-install script for optimizing Proxmox VE storage performance and configuration.", openGraph: { title: "ProxMenux Post-Install: Storage Settings", description: "Comprehensive guide to Storage Settings in the ProxMenux post-install script for optimizing Proxmox VE storage performance and configuration.", type: "article", url: "https://macrimi.github.io/ProxMenux/docs/post-install/storage", images: [ { url: "https://macrimi.github.io/ProxMenux/storage-settings-image.png", width: 1200, height: 630, alt: "ProxMenux Post-Install Storage Settings", }, ], }, twitter: { card: "summary_large_image", title: "ProxMenux Post-Install: Storage Settings", description: "Comprehensive guide to Storage Settings in the ProxMenux post-install script for optimizing Proxmox VE storage performance and configuration.", images: ["https://macrimi.github.io/ProxMenux/storage-settings-image.png"], }, } function StepNumber({ number }: { number: number }) { return (
{number}
) } export default function StorageSettingsPage() { return (

Storage Settings

The Storage Settings category optimizes storage configuration and performance in Proxmox VE. These optimizations are essential for efficient storage operations in virtualized environments where multiple VMs and containers share storage resources.

Available Optimizations

Increase vzdump Backup Speed

This optimization configures vzdump to enhance backup speed by adjusting bandwidth limits and I/O priority.

Why it's beneficial: Faster backups reduce the impact on system performance during backup operations and allow for more frequent backups, improving data protection. This is particularly important in environments with large amounts of data or tight backup windows.

This adjustment automates the following commands:

> /etc/vzdump.conf # Configure I/O priority sed -i '/^#*ionice:/d' /etc/vzdump.conf echo "ionice: 5" >> /etc/vzdump.conf `} />

Install and Configure ZFS Auto-snapshot

This optimization installs the zfs-auto-snapshot package and configures automatic ZFS snapshots at various intervals.

Why it's beneficial: Automatic ZFS snapshots provide a robust and efficient method for point-in-time recovery, protecting against data loss or corruption. This is especially useful in virtualized environments where quick recovery options are crucial.

This adjustment automates the following commands:

Optimize ZFS ARC Size

This optimization adjusts the ZFS Adaptive Replacement Cache (ARC) size based on the system's available memory.

Why it's beneficial: Properly tuned ZFS ARC can significantly improve storage performance by caching frequently accessed data in RAM. This optimization ensures that ZFS uses an appropriate amount of memory based on the system's resources, balancing between storage performance and leaving enough memory for other processes.

This adjustment automates the following commands:

/etc/modprobe.d/99-zfsarc.conf # ZFS tuning options zfs zfs_arc_min=$MY_ZFS_ARC_MIN options zfs zfs_arc_max=$MY_ZFS_ARC_MAX # Enable prefetch method options zfs l2arc_noprefetch=0 # Set max write speed to L2ARC (500MB) options zfs l2arc_write_max=524288000 options zfs zfs_txg_timeout=60 EOF `} />

Automatic Application

All of these optimizations are automatically applied when selected in the Storage section. This automation ensures that these beneficial settings are applied consistently and correctly, saving time and reducing the potential for human error during manual configuration.

) }