Connecting NFS Share to Two Subnets on Proxmox Cluster for Backup

fordmin24

New Member
Aug 28, 2024
1
0
1
I'm working on setting up a network with two Proxmox nodes in a cluster and a TrueNAS server hosting an NFS share. This is the setup:
Proxmox Node 1 (prox1) is on the 10.0.30.0 subnet
Proxmox Node 2 (prox2) is on the 10.0.31.0 subnet
Both nodes are directly connected to the TrueNAS server via separate 10Gbps NICs.
The issue I'm facing is that the Proxmox cluster only allows me to connect the NFS share to one subnet at a time. I need both Proxmox nodes to access the NFS share simultaneously, but I can't figure out how to configure this. Has anyone encountered a similar situation or have any suggestions on how to make this work?
I've included basic network config info below, let me know if you need more info.

Code:
# cat /etc/exports
/mnt/STORAGE/ProxMox -alldirs -quiet -maproot="root":"builtin_administrators" -network 10.0.30.0/24
/mnt/STORAGE/ProxMox -alldirs -quiet -maproot="root":"builtin_administrators" -network 10.0.31.0/24
---------------------------------------------------
root@prox1:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

auto eno4
iface eno4 inet static
address 10.0.99.30/24
#Cluster

auto enp131s0f0
iface enp131s0f0 inet manual

iface enp131s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.0.20.30/24
gateway 10.0.20.1
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 10.0.30.100/24
bridge-ports enp131s0f0
bridge-stp off
bridge-fd 0
---------------------------------------------------
root@prox2:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

auto eno4
iface eno4 inet static
address 10.0.99.40/24
#Cluster

auto enp131s0f0
iface enp131s0f0 inet manual

iface enp131s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.0.20.40/24
gateway 10.0.20.1
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 10.0.31.100/24
bridge-ports enp131s0f0
bridge-stp off
bridge-fd 0
---------------------------------------------------
root@prox2:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,iso,vztmpl

zfspool: local-zfs
        pool rpool/data
        content rootdir,images
        sparse 1

nfs: ProxNAS
        export /mnt/BES_STORAGE/ProxMox
        path /mnt/pve/ProxNAS
        server 10.0.31.1
        content images,backup,snippets,rootdir,iso,vztmpl
        prune-backups keep-all=1
---------------------------------------------------
 
Last edited:
i read this a couple times before i understood you.
you have an unusual config here. i don't understand why you built it this way.

truenas doesn't care what nic or IP that data comes in on.
it presents the same shares.

make a secondary interface on the truenas.
it needs IPs on 10.0.30.0/24 and 10.0.31.0/24.
(there's a couple ways to do this, depending on your hardware.)

set them up as two different storages in the pve cluster.
ProxNAS1 - 10.0.30.1
ProxNAS2 - 10.0.31.1
 
Last edited:

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!