On 2025-06-06, Frans Schneider <fchschnei...@gmail.com> wrote:
> Newbie here! I recently started using OpenBSD, primarily as a central
> file server. So far, I am very pleased with it!
>
> The problem I am encountering is that when I mount files on a Linux
> system via NFS and then open them with LibreOffice, LibreOffice
> hangs. This is likely related to the locking of the target file and
> seems to be a known issue. A proposed solution is to start LibreOffice
> without file locking (SAL_ENABLE_FILE_LOCKING), but that seems more like
> a workaround than a solution to the actual problem.
>
> On the OpenBSD 7.7 file server (tp2), I installed NFS according to the
> instructions in https://www.openbsd.org/faq/faq6.html#NFS. (Note:
> Initially, I was running OpenBSD 7.6 but have since upgraded to 7.7.) I
> can mount an NFS share from a Linux box with mount -onodev,nosuid -tnfs
> tp2:/home/fs /home/fs/nfs, but I still encounter the problem as
> described above.
>
> I then tried to use NFS v4 for better handling of locks. However, when I
> now mount with mount -onodev,nosuid -tnfs4 tp2:/home/fs /home/fs/nfs, I
> receive the message mount.nfs4: Protocol not supported. It seems that
> the OpenBSD file server does not support NFS v4.
>
>  From the documentation on OpenBSD, I had more or less gathered that
> OpenBSD does support NFS version 4.
>
> My questions are:
>
>      Does OpenBSD support NFS v4? If so, how do I install and configure
>      it?

No, it does not.

>      If NFS v4 is not the solution for the locking issue, how can I get
>      locking to work with NFS v3?

It may possibly help to enable rpc.statd(8) / rpc.lockd(8) on the
OpenBSD nfs server ("rcctl enable statd lockd")

-- 
Please keep replies on the mailing list.

Reply via email to