<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 28, 2023 at 3:27 PM Ewen Chan <<a href="mailto:alpha754293@hotmail.com">alpha754293@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-2999798650551694767">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
German:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I finally got around to testing this and unfortunately, I am still getting the stale file handle error.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Here is the command that I used for virtiofsd (which is embedded inside a startup script file in Proxmox).</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
nohup /usr/lib/kvm/virtiofsd --syslog --daemonize --socket-path=/var/run/shared-fs.sock -o source=/export/myfs/ -o cache=none &> /dev/null  &</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
If you have any other suggestions, that would be greatly appreciated.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br></div></div></div></blockquote><div><br></div><div>Sadly no, since FUSE does not support persistent file handles, I don't think it would work<br></div><div>(I know the NFsv4 protocol defines volatile file handles, but idk if that is currently implemented or even if it would solve the problem)</div><div><br></div><div>Maybe you could try with a nfs proxy</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-2999798650551694767"><div dir="ltr"><div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Sincerely,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Ewen<br>
</div>
<div id="m_-2999798650551694767appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2999798650551694767divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> German Maglione <<a href="mailto:gmaglione@redhat.com" target="_blank">gmaglione@redhat.com</a>><br>
<b>Sent:</b> May 14, 2023 1:06 PM<br>
<b>To:</b> Ewen Chan <<a href="mailto:alpha754293@hotmail.com" target="_blank">alpha754293@hotmail.com</a>><br>
<b>Cc:</b> <a href="mailto:virtio-fs@redhat.com" target="_blank">virtio-fs@redhat.com</a> <<a href="mailto:virtio-fs@redhat.com" target="_blank">virtio-fs@redhat.com</a>><br>
<b>Subject:</b> Re: [Virtio-fs] Is there a way to get NFS and/or NFSoRDMA to play nice with Virtio-FS?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Hi Ewen,<br>
</div>
<br>
<div>
<div dir="ltr">On Sun, May 14, 2023 at 9:49 AM Ewen Chan <<a href="mailto:alpha754293@hotmail.com" target="_blank">alpha754293@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
To Whom It May Concern:<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
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.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Is there a way to fix/resolve this?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Here is the output for /etc/exports:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
/export *(rw,async,no_root_squash,no_all_squash,no_subtree_check,fsid=4)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have tried rebooting the clients multiple times, along with mounting/unmounting said NFS share and it doesn't appear to make any difference.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>If that is the case, it's not possible (*) the NFS server requires persistent file handles that FUSE does not support.</div>
<div><br>
</div>
<div>(*) 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).</div>
<div><br>
</div>
<div><br>
</div>
<div> </div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Your help is greatly appreciated.<br>
<br>
Thank you.<br>
<br>
Sincerely,<br>
Ewen<br>
</div>
</div>
_______________________________________________<br>
Virtio-fs mailing list<br>
<a href="mailto:Virtio-fs@redhat.com" target="_blank">Virtio-fs@redhat.com</a><br>
<a href="https://listman.redhat.com/mailman/listinfo/virtio-fs" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/virtio-fs</a><br>
</div>
</blockquote>
</div>
<br clear="all">
<br>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">German<br>
</div>
</div>
</div>
</div>
</div>

</div></blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">German<br></div></div></div>