[Virtio-fs] Is there a way to get NFS and/or NFSoRDMA to play nice with Virtio-FS?

Ewen Chan alpha754293 at hotmail.com
Mon May 15 01:55:31 UTC 2023


German:

Yes, that is correct.

(The background motivation for this vs. running NFS on Proxmox itself is because CentOS supports NFSoRDMA whereas Proxmox, being Debian based, does not.)

I will have to test the "--cache=none" option out in a few days.

Thank you.

Sincerely,
Ewen
________________________________
From: German Maglione <gmaglione at redhat.com>
Sent: May 14, 2023 1:06 PM
To: Ewen Chan <alpha754293 at hotmail.com>
Cc: virtio-fs at redhat.com <virtio-fs at redhat.com>
Subject: Re: [Virtio-fs] Is there a way to get NFS and/or NFSoRDMA to play nice with Virtio-FS?

Hi Ewen,

On Sun, May 14, 2023 at 9:49 AM Ewen Chan <alpha754293 at hotmail.com<mailto:alpha754293 at hotmail.com>> wrote:
To Whom It May Concern:

I'm using Proxmox 7.3-4 and I have a CentOS 7.7.1908 VM that's able to share data/files via Virtio-FS. That part is working fine.

However, if I try to export that VirtIO-FS "target" as a NFS export, whenever my other computers connect to that NFS share, it will say that the folders have stale NFS handles.

Is there a way to fix/resolve this?

Here is the output for /etc/exports:

/export *(rw,async,no_root_squash,no_all_squash,no_subtree_check,fsid=4)

I have tried rebooting the clients multiple times, along with mounting/unmounting said NFS share and it doesn't appear to make any difference.


Just to confirm, you want to share a folder using virtiofs with a VM, and then that VM running as an NFS server sharing that same folder over nfs, am I right?

If that is the case, it's not possible (*) the NFS server requires persistent file handles that FUSE does not support.

(*) I'm not sure, but IIRC Miklos said it could work if you disable the cache, so you can try running virtiofsd with `--cache=none` (let me know if that work).



Your help is greatly appreciated.

Thank you.

Sincerely,
Ewen
_______________________________________________
Virtio-fs mailing list
Virtio-fs at redhat.com<mailto:Virtio-fs at redhat.com>
https://listman.redhat.com/mailman/listinfo/virtio-fs


--
German
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20230515/59c707b7/attachment-0001.htm>


More information about the Virtio-fs mailing list