<div dir="ltr">Since I had a similar post earlier, this is what I found to work:<br><div><br></div><div><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px"><b>On your Gluster system:</b></p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">gluster volume set volumename storage.owner-gid 0 (0 on CentOS is the ID for root)</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">gluster volume set volumename nfs.volume-access read-write</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">gluster volume set volumename nfs.rpc-auth-allow x.x.x.x</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px"><b>On your Windows system</b>:</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Install NFS services for Windows</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Start Registry Editor</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS \CurrentVersion\Default </p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Create two DWORD values named AnonymousUid and AnonymousGid</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Set these values to the UID and GID of the Unix user you would like this NFS client to masquerade as. i.e. root&#39;s Unix ID on CentOS 7 is 0</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">Run cmd</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">mount -o anon x.x.x.x:/volumename G:</p><p style="margin:11px 0px 0px;padding:0px;border:0px;outline:0px;font-size:13px;font-family:Helvetica,Arial,Geneva,sans-serif;vertical-align:baseline;color:rgb(86,86,86);line-height:18px">After doing the steps listed above, I can read and write to the Gluster volume from a Windows system over NFS. The only strange thing I can&#39;t figure out is why Windows still shows a line through the mount point when a) its mounted and b) can be read and written to.</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 12, 2015 at 8:13 PM, Jarvis, Jeremy <span dir="ltr">&lt;<a href="mailto:jeremy.jarvis@hexagongeospatial.com" target="_blank">jeremy.jarvis@hexagongeospatial.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ben, Thanks for the quick reply. I&#39;m using windows 2008 r2, it&#39;s deploying to AWS so we&#39;re not tied to the OS version if there are issues. The NFS version is 3. The mount seems fine for access through file explorer and apps run from command line, I only see the failure when it&#39;s an IIS application.<br>
<br>
-----Original Message-----<br>
From: Ben Turner [mailto:<a href="mailto:bturner@redhat.com">bturner@redhat.com</a>]<br>
Sent: Thursday, 12 March 2015 10:24 PM<br>
To: Jarvis, Jeremy<br>
Cc: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
Subject: Re: [Gluster-users] NFS gluster mount on Windows<br>
<br>
Hi Jeremy.  A couple things first, as of today gluster only supports NFS v3 so make sure you are using v3 and tcp mounts.  I haven&#39;t personally tested Windows NFS with gluster, which version of Windows are you using?  I would be happy to setup a test in our lab in hopes of helping get this working, I have seen issues with other OSs mounting gNFS that had to be resolved, maybe we are hitting something similar here.<br>
<br>
-b<br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Jeremy Jarvis&quot; &lt;<a href="mailto:jeremy.jarvis@hexagongeospatial.com">jeremy.jarvis@hexagongeospatial.com</a>&gt;<br>
&gt; To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; Sent: Thursday, March 12, 2015 3:57:00 AM<br>
&gt; Subject: [Gluster-users] NFS gluster mount on Windows<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I’m trying to use Windows Services for NFS to expose a gluster node<br>
&gt; and access this folder with an Application Pool Identity. I can map<br>
&gt; the drive correctly and read access works but I can’t get write working.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The procedure I’m using is:<br>
&gt;<br>
&gt; Set the DefaultApplicationPoolIdentity to use user “CustomUser”<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Set the following environment variables to 0 (for root)<br>
&gt;<br>
&gt; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS<br>
&gt; \CurrentVersion\Default\AnonymousUid<br>
&gt; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS<br>
&gt; \CurrentVersion\Default\AnonymousGid<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Open a cmd with “CustomUser”<br>
&gt;<br>
&gt; mount -o nolock &lt;ip-of-gluster&gt;:/datapoint Z:<br>
&gt;<br>
&gt; SUCCESS<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Then the iis application is supposed to write log files out to Z:\ but<br>
&gt; always fails. I wrote a small test app that stats the folder and I can<br>
&gt; successfully stat the directory with “CustomUser”. Right click &gt;<br>
&gt; Properties&gt;NFS Attributes shows RWX for all and the NFS Mount Options<br>
&gt; shows UID 0 Primary GID 0.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I can’t think of anything else that would be standing in the way. Any<br>
&gt; advice is greatly appreciated.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks, Jeremy.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div><br></div>