<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'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'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"><<a href="mailto:jeremy.jarvis@hexagongeospatial.com" target="_blank">jeremy.jarvis@hexagongeospatial.com</a>></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'm using windows 2008 r2, it's deploying to AWS so we'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'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'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>
> From: "Jeremy Jarvis" <<a href="mailto:jeremy.jarvis@hexagongeospatial.com">jeremy.jarvis@hexagongeospatial.com</a>><br>
> To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
> Sent: Thursday, March 12, 2015 3:57:00 AM<br>
> Subject: [Gluster-users] NFS gluster mount on Windows<br>
><br>
><br>
><br>
> Hi,<br>
><br>
><br>
><br>
> I’m trying to use Windows Services for NFS to expose a gluster node<br>
> and access this folder with an Application Pool Identity. I can map<br>
> the drive correctly and read access works but I can’t get write working.<br>
><br>
><br>
><br>
><br>
><br>
> The procedure I’m using is:<br>
><br>
> Set the DefaultApplicationPoolIdentity to use user “CustomUser”<br>
><br>
><br>
><br>
> Set the following environment variables to 0 (for root)<br>
><br>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS<br>
> \CurrentVersion\Default\AnonymousUid<br>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS<br>
> \CurrentVersion\Default\AnonymousGid<br>
><br>
><br>
><br>
> Open a cmd with “CustomUser”<br>
><br>
> mount -o nolock <ip-of-gluster>:/datapoint Z:<br>
><br>
> SUCCESS<br>
><br>
><br>
><br>
> Then the iis application is supposed to write log files out to Z:\ but<br>
> always fails. I wrote a small test app that stats the folder and I can<br>
> successfully stat the directory with “CustomUser”. Right click ><br>
> Properties>NFS Attributes shows RWX for all and the NFS Mount Options<br>
> shows UID 0 Primary GID 0.<br>
><br>
><br>
><br>
> I can’t think of anything else that would be standing in the way. Any<br>
> advice is greatly appreciated.<br>
><br>
><br>
><br>
> Thanks, Jeremy.<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><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>