(newbie question) TrueNAS NFS not mounted automatically inside Proxmox after reboot

onsmike

New Member
Dec 31, 2024
3
0
1
hi all,

I am new to Proxmox but have spent the last 2 weeks setting up a Proxmox-based NAS and media server with some success. Thanks for all the guides available on this forum, I managed to set up:

TrueNAS (VM), a set of ARR stacks (LXC via tteck scripts), Emby with hardware accelerations, etc.,

While I am still fine-tuning it, there is one issue I cannot resolve, and I seek your help.

Currently, I have set up a ZFS pool inside TrueNAS (id: 101) and exported as NFS. Proxmox (id:100) serves as a NFS client. The NFS seen in Proxmox is in term mounted to each LXC as a mount point in their config file:

mp0: /mnt/NAS_NFS/,mp=/mntNAS_NFS

and each LXC sees the same NFS share. TrueNAS is set to boot 1st, and each LXC is set to boot after TrueNAS.

Everything works, except that, after rebooting the entire computer, the NFS is *not* mounted automatically to Proxmox. I have to manually, after TrueNAS is fully booted, to issue the command "mount -a" inside Proxmox.

I suspect this is because Proxmox mounts the NFS share *before* TrueNAS is fully booted, and did not try to mount it again after the initial attempt.

So my question is: is there a way to force Proxmox to mount an NFS export after TrueNAS is fully booted automatically?


regards,
 
Try in pve fstab with this additional options defined in the /mnt/NAS_NFS line : "_netdev,bg,hard"
otherwise if doesn't work you need to do a systemd unit which mount the truenas when it's up also.
 
  • Like
Reactions: Johannes S

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!