forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
21 lines
3.4 KiB
HTML
21 lines
3.4 KiB
HTML
<a name="sfs_01_0060"></a><a name="sfs_01_0060"></a>
|
|
|
|
<h1 class="topictitle1">Data Fails to Be Written into a File System Mounted to ECSs Running Different Types of Operating Systems</h1>
|
|
<div id="body1531904913545"><div class="section" id="sfs_01_0060__section41158684111639"><h4 class="sectiontitle">Symptom</h4><p id="sfs_01_0060__p54895391161045">If a file system is mounted to a Linux ECS and a Windows ECS, you cannot write data to the files created by the Linux ECS on the Windows ECS.</p>
|
|
</div>
|
|
<div class="section" id="sfs_01_0060__section31326994111720"><h4 class="sectiontitle">Possible Causes</h4><p id="sfs_01_0060__p958112319432">A shared NFS file system belongs to the root user and cannot be modified. The write permission is granted to a user only when both the values of UID and GID of the user are <strong id="sfs_01_0060__b763211193151">0</strong>. You can check your UID using Windows commands. If the value of UID is, for example, <strong id="sfs_01_0060__b14508135216141">-2</strong>, you do not have the write permission.</p>
|
|
</div>
|
|
<div class="section" id="sfs_01_0060__section34776262111735"><h4 class="sectiontitle">Fault Diagnosis</h4><p id="sfs_01_0060__p5670333819385">To address this problem, modify the registry and change both UID and GID values to <strong id="sfs_01_0060__b663125716139">0</strong> for NFS accesses from Windows.</p>
|
|
</div>
|
|
<div class="section" id="sfs_01_0060__section28103453161025"><h4 class="sectiontitle">Solution</h4><ol id="sfs_01_0060__ol124331649467"><li id="sfs_01_0060__li20433184204620"><span>Choose <strong id="sfs_01_0060__b19338164415430">Start</strong> > <strong id="sfs_01_0060__b8339144414435">Run</strong> and enter <strong id="sfs_01_0060__b7340134416431">regedit</strong> to open the registry.</span></li><li id="sfs_01_0060__li1043314194613"><span>Enter the <strong id="sfs_01_0060__b1296624914314">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default</strong> directory. <a href="#sfs_01_0060__fig103481655182917">Figure 1</a> shows an example of the directory.</span><p><div class="fignone" id="sfs_01_0060__fig103481655182917"><a name="sfs_01_0060__fig103481655182917"></a><a name="fig103481655182917"></a><span class="figcap"><b>Figure 1 </b>Entering the directory</span><br><span><img id="sfs_01_0060__image373185911322" src="en-us_image_0000001516236516.png"></span></div>
|
|
</p></li><li id="sfs_01_0060__li174331745467"><span>Right-click the blank area and choose <strong id="sfs_01_0060__b8756134273118">New</strong> > <strong id="sfs_01_0060__b875734293110">DWORD Value</strong> from the shortcut menu. Set <strong id="sfs_01_0060__b775894213311">AnonymousUid</strong> and <strong id="sfs_01_0060__b97587425313">AnonymousGid</strong> to <strong id="sfs_01_0060__b9759154210312">0</strong>. <a href="#sfs_01_0060__fig56963212379">Figure 2</a> shows a successful operation.</span><p><div class="fignone" id="sfs_01_0060__fig56963212379"><a name="sfs_01_0060__fig56963212379"></a><a name="fig56963212379"></a><span class="figcap"><b>Figure 2 </b>Adding values</span><br><span><img id="sfs_01_0060__image136943293716" src="en-us_image_0000001567396645.png"></span></div>
|
|
</p></li><li id="sfs_01_0060__li12401149182511"><span>After modifying the registry, restart the server for the modification to take effect.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_01_0056.html">Troubleshooting</a></div>
|
|
</div>
|
|
</div>
|
|
|