virtio-fs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Ewen Chan <alpha754293@hotmail.com>
To: German Maglione <gmaglione@redhat.com>
Cc: "virtio-fs@redhat.com" <virtio-fs@redhat.com>
Subject: Re: [Virtio-fs] Is there a way to get NFS and/or NFSoRDMA to play nice with Virtio-FS?
Date: Mon, 29 May 2023 10:48:32 +0000	[thread overview]
Message-ID: <SA1P221MB10182B6B2373A4448925BE25B54A9@SA1P221MB1018.NAMP221.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAJh=p+5bVCrxKcGWACpbYHyKohWe5o4CM8Cs0VAXYGd+UmF7tA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3325 bytes --]

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@redhat.com>
Sent: May 29, 2023 6:08 AM
To: Ewen Chan <alpha754293@hotmail.com>
Cc: virtio-fs@redhat.com <virtio-fs@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@hotmail.com<mailto:alpha754293@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@redhat.com<mailto:gmaglione@redhat.com>>
Sent: May 14, 2023 1:06 PM
To: Ewen Chan <alpha754293@hotmail.com<mailto:alpha754293@hotmail.com>>
Cc: virtio-fs@redhat.com<mailto:virtio-fs@redhat.com> <virtio-fs@redhat.com<mailto:virtio-fs@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@hotmail.com<mailto:alpha754293@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@redhat.com<mailto:Virtio-fs@redhat.com>
https://listman.redhat.com/mailman/listinfo/virtio-fs


--
German


--
German

[-- Attachment #2: Type: text/html, Size: 10649 bytes --]

      reply	other threads:[~2023-05-29 10:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-14  7:48 [Virtio-fs] Is there a way to get NFS and/or NFSoRDMA to play nice with Virtio-FS? Ewen Chan
2023-05-14 17:06 ` German Maglione
2023-05-15  1:55   ` Ewen Chan
2023-05-28 13:27   ` Ewen Chan
2023-05-29 10:08     ` German Maglione
2023-05-29 10:48       ` Ewen Chan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SA1P221MB10182B6B2373A4448925BE25B54A9@SA1P221MB1018.NAMP221.PROD.OUTLOOK.COM \
    --to=alpha754293@hotmail.com \
    --cc=gmaglione@redhat.com \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).