<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[NFS4 mount shows all ownership as nobody or 4294967294]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Linux技术]]></category>
<pubDate>Sat, 20 Apr 2013 03:01:34 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	<span style="color: #4169E1;"><span style="font-size: 18px;">Environment</span></span><br/><hr/><br/>SUSE Linux Enterprise Desktop 11<br/>SUSE Linux Enterprise Desktop 10<br/>SUSE Linux Enterprise Server 11<br/>SUSE Linux Enterprise Server 10<br/><br/><span style="color: #4169E1;"><span style="font-size: 18px;">Situation</span></span><br/><hr/><br/>An NFS client is successfully mounting an NFS v4 file system.&nbsp;&nbsp;However, upon executing "ls -al," all the file user and group ownership is showing as "nobody" or as "4294967294", instead of the values that are shown when viewed directly on the remote NFS server. <br/><br/><span style="color: #4169E1;"><span style="font-size: 18px;">Resolution</span></span><br/><hr/><br/>For user names to be displayed correctly, the NFS v4 server must have knowledge of the same user and group accounts as the NFS client.&nbsp;&nbsp;If users and groups are centrally managed, this works automatically.&nbsp;&nbsp;With previous NFS protocol versions, it was sufficient to create identical user accounts on all clients accessing an NFS server. These accounts didn't need to exist on the server itself because the files were only served by user ID.&nbsp;&nbsp;However, with NFSv4, identity tracking has been redesigned and now uses a identity mapping daemon (idmapd).&nbsp;&nbsp;It's crucial that server and client have access to identical account information, or idmapd cannot properly do it's job and may display ownership as "nobody" or equivalent high values.<br/> <br/>Both the NFS server and the NFS client must run idmapd and have good idmapd.conf files.&nbsp;&nbsp;Even when the same accounts are known to both the servers and clients, idmapd configuration problems can prevent proper ownership from being displayed.<br/> <br/>Check the /etc/idmapd.conf file.&nbsp;&nbsp;The [General] section should have a Domain setting.&nbsp;&nbsp;This typically matches the DNS domain name, but does not necessarily have to.&nbsp;&nbsp;NFS servers and NFS clients which interact with each other should have their idmap domains set identically.&nbsp;&nbsp;It can also be helpful for there to be a [Translation] section which specifies the method of translating between names and IDs.&nbsp;&nbsp;Typically, it is best to point to nsswitch methodology.<br/>&nbsp;&nbsp;<br/>So, for example, a typical idmapd.conf file might look like the following:<br/> <br/>[General] <br/>Verbosity=7<br/>Pipefs-Directory=/var/lib/nfs/rpc_pipefs<br/>Domain=test.novell2.com<br/>&nbsp;&nbsp;<br/>[Mapping] <br/>Nobody-User=nobody<br/>Nobody-Group=nobody <br/>&nbsp;&nbsp;<br/>[Translation]<br/>Method=nsswitch <br/> <br/>If changes are made to this file on any system, or if a system is already configured this way and still does not function correctly, try restarting idmapd.&nbsp;&nbsp;On some versions of SLES (typically SLE 10) this can be done with:<br/>rcidmapd restart <br/> <br/>On other versions (typically SLE 11), idmapd isn't setup to stop and start independently of NFS services, so the necessary commands would be:<br/> <br/>If the system is an nfs client:<br/>rcnfs restart <br/> <br/>If the system is an NFS server:<br/>rcnfsserver restart <br/> <br/>If the system is both an NFS server and an NFS client:<br/>rcnfs stop <br/>rcnfsserver stop <br/>(repeat the above commands if messages indicate something could not be stopped or is busy)<br/>rcnfsserver start <br/>rcnfs start <br/><br/><span style="color: #4169E1;"><span style="font-size: 18px;">Disclaimer</span></span><br/><hr/><br/>This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.<br/>Tags - <a href="http://www.zhanghaijun.com/tags/nobody/" rel="tag">nobody</a> , <a href="http://www.zhanghaijun.com/tags/4294967294/" rel="tag">4294967294</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] NFS4 mount shows all ownership as nobody or 4294967294]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>