<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I think I’m seeing a separate issue. I can set up the mount fine but using an IIS application it seems to always fail, read and write.
 I’m debugging now to make sure I’m impersonating the correct user.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Ryan Nix [mailto:ryan.nix@gmail.com]
<br>
<b>Sent:</b> Friday, 13 March 2015 9:31 AM<br>
<b>To:</b> Jarvis, Jeremy<br>
<b>Cc:</b> Ben Turner; gluster-users@gluster.org<br>
<b>Subject:</b> Re: [Gluster-users] NFS gluster mount on Windows<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Since I had a similar post earlier, this is what I found to work:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<b><span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">On your Gluster system:</span></b><span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656"><o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">gluster volume set volumename storage.owner-gid 0 (0 on CentOS is the ID for root)<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">gluster volume set volumename nfs.volume-access read-write<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">gluster volume set volumename nfs.rpc-auth-allow x.x.x.x<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<b><span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">On your Windows system</span></b><span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">:<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">Install NFS services for Windows<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">Start Registry Editor<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS \CurrentVersion\Default&nbsp;<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">Create two DWORD values named AnonymousUid and AnonymousGid<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">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<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">Run cmd<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">mount -o anon x.x.x.x:/volumename G:<o:p></o:p></span></p>
<p style="mso-margin-top-alt:8.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:baseline;outline:0px">
<span style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,sans-serif;color:#565656">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.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Thu, Mar 12, 2015 at 8:13 PM, Jarvis, Jeremy &lt;<a href="mailto:jeremy.jarvis@hexagongeospatial.com" target="_blank">jeremy.jarvis@hexagongeospatial.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal">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.&nbsp; A couple things first, as of today gluster only supports NFS v3 so make sure you are using v3 and tcp mounts.&nbsp; I haven't personally tested Windows NFS with gluster, which version of Windows are you using?&nbsp; 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><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>