Hi all,
i have recently (attempted) a move to NFS for my CTs. for this post i will be referencing my b0rked CT, but i have numerous others with identical issues.
I am using BTRFS. My files are shared via NFS from a "Fedora-Server" VM. Fedora VM is 2nd to come up after my router VM. so in a perfect world should always be present before and after CT boots/shutdowns. during all of my headaches the server is up and present (confirmed with "showmount -e <Fedora-Server IP>" from any given CT)
CT is running Proxmox Debian 12 Template (worthy of note because my Debian 11 CTs dont appear to have this issue)
Server /etc/exports:-
CT /etc/fstab:-
CT "mount" command from CLI:-
i am seeing a 6 minute shutdown/reboot time of CT. Where as unmounting the NFS share will result in a <5sec shutdown.
i am unsure as to why as i believe a "timeo=600" is actually a 60 sec timeout (because "deci-seconds").
scrolling through manpages doesnt really clear the air for me as im a little confused as to why "mount" has so many additional options compared to exports/fstab.
"mount" gives "hard" option. which i think its best to be used with "intr" but im not 100% sure if i should set it on client or server side, if at all.
i have seen i *may* need to edit the systemd with "Before=mnt-<share>.mount" and "Required=mnt-<share>.mount"
but with other CTs i have not had much joy with this being the resolution.
i am happy to spool up "Test CTs" if needed, rather than working on my live kit and report findings
Any advice is warmly recieved, and greatly appreciated because im kind of scratching my head at this point.
i have recently (attempted) a move to NFS for my CTs. for this post i will be referencing my b0rked CT, but i have numerous others with identical issues.
I am using BTRFS. My files are shared via NFS from a "Fedora-Server" VM. Fedora VM is 2nd to come up after my router VM. so in a perfect world should always be present before and after CT boots/shutdowns. during all of my headaches the server is up and present (confirmed with "showmount -e <Fedora-Server IP>" from any given CT)
CT is running Proxmox Debian 12 Template (worthy of note because my Debian 11 CTs dont appear to have this issue)
Server /etc/exports:-
Code:
/mnt/btrfs/Media *(rw,no_subtree_check,no_root_squash)
CT /etc/fstab:-
Code:
Fedora-Server:/mnt/btrfs/Media /mnt/media nfs _netdev,rw 0 0
CT "mount" command from CLI:-
Code:
Fedora-Server:/mnt/btrfs/Media/ on /mnt/media/ type nfs4 (rw,relatime,vers=4.2,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=<CT IP>,local_lock=none,addr=<Fedora-Server IP>,_netdev)
i am seeing a 6 minute shutdown/reboot time of CT. Where as unmounting the NFS share will result in a <5sec shutdown.
i am unsure as to why as i believe a "timeo=600" is actually a 60 sec timeout (because "deci-seconds").
scrolling through manpages doesnt really clear the air for me as im a little confused as to why "mount" has so many additional options compared to exports/fstab.
"mount" gives "hard" option. which i think its best to be used with "intr" but im not 100% sure if i should set it on client or server side, if at all.
i have seen i *may* need to edit the systemd with "Before=mnt-<share>.mount" and "Required=mnt-<share>.mount"
but with other CTs i have not had much joy with this being the resolution.
i am happy to spool up "Test CTs" if needed, rather than working on my live kit and report findings
Any advice is warmly recieved, and greatly appreciated because im kind of scratching my head at this point.
Last edited: