[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 29 10:48:32 UTC 2023


German:

Thank you.

Unfortunately, I dont' know how to set up a NFS proxy and/or how well/how poorly it would interact with NFSoRDMA.

I think that I'll just leave it for now.

I appreciate your help.

Thank you.

Sincerely,
Ewen

________________________________
From: German Maglione <gmaglione at redhat.com>
Sent: May 29, 2023 6:08 AM
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?



On Sun, May 28, 2023 at 3:27 PM Ewen Chan <alpha754293 at hotmail.com<mailto:alpha754293 at hotmail.com>> wrote:
German:

I finally got around to testing this and unfortunately, I am still getting the stale file handle error.

Here is the command that I used for virtiofsd (which is embedded inside a startup script file in Proxmox).

nohup /usr/lib/kvm/virtiofsd --syslog --daemonize --socket-path=/var/run/shared-fs.sock -o source=/export/myfs/ -o cache=none &> /dev/null  &

If you have any other suggestions, that would be greatly appreciated.


Sadly no, since FUSE does not support persistent file handles, I don't think it would work
(I know the NFsv4 protocol defines volatile file handles, but idk if that is currently implemented or even if it would solve the problem)

Maybe you could try with a nfs proxy


Thank you.

Sincerely,
Ewen
________________________________
From: German Maglione <gmaglione at redhat.com<mailto:gmaglione at redhat.com>>
Sent: May 14, 2023 1:06 PM
To: Ewen Chan <alpha754293 at hotmail.com<mailto:alpha754293 at hotmail.com>>
Cc: virtio-fs at redhat.com<mailto:virtio-fs at redhat.com> <virtio-fs at redhat.com<mailto: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


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


More information about the Virtio-fs mailing list