Skip to content

Proxmox Tips & Tricks

Cluster

  1. Never start a node in the same network that has been removed from the cluster. The node will try to join a cluster corrupting the cluster state(node was removed). This may bring the whole cluster down.

VM

  1. When creating a vm on a thin-pool storage, make sure to enable discard option to take advantage of thin pool( vm disk will not take full space). Run fstrim as root user on vm disk with discard option to reclaim unused space. (fstrim -v \)
  2. Remove any iso images that were attached during installation if the VM is setup for HA. (HA fails if ISO is attached because ISO is not on shared storage)
  3. Enable QEMU agent when creating VM.
  4. If HA is setup on a VM and VM start at boot option is not checked, VM will still start.
  5. VMs take the RTC time from the host at boot, afterwards they will use their own kernel based time which is not reliable. Time drift can happen on VMs after a few days on running. This can cause multiple issues. Its good to install NTP on the VM to sync time, use chrony sudo apt install chrony for better time sync.

Storage

  1. When creating ZFS, check thin-pool to take advantage of over allocation.
  2. High Availability ZFS vs Ceph
    • ZFS
      • Faster Disk IO.
      • Slow HA (Can take a few mins for failover).
      • Need to setup relication for HA to work.
    • Ceph
      • Slower Disk IO (IO happens on all ceph nodes via network).
      • Fast HA.
      • Storage is distributed by default, no replication needed.

High Availability

  1. Disabling Memory ballooning Device helps with HA. (VM may fail after migration with kernel panic memory error if ballooning device is enabled)
  2. When using external NFS server, add delay to VM start at boot to avoid VM failover due to NFS server not ready. This can be done in two ways:

      1. Add delay from the GUI, vm options -> Start/Shutdown order -> Start delay.
      1. Run pvenode config set --startall-onboot-delay 300 to set delay for all VMs.

Option 2 is preferred as it will set delay for all VMs and appears to be working when HA is enabled.

The content provided is generated with the help of artificial intelligence (AI) and may contain inaccuracies or outdated information due to the limitations of AI. While I strive to review and validate the content, some errors or inaccuracies may still be present in the final output. Please use this content as a general guide only and verify any critical information through reputable sources before relying on it. I appreciate your understanding and feedback in helping us improve the accuracy and quality of our AI-generated content."