<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nfs &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/nfs/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Mon, 22 Jun 2015 08:26:13 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>NFS 碰到的怪問題</title>
		<link>https://blog.richliu.com/2015/06/22/1823/nfs-debug-%e7%a2%b0%e5%88%b0%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.richliu.com/2015/06/22/1823/nfs-debug-%e7%a2%b0%e5%88%b0%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Mon, 22 Jun 2015 08:25:58 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[nfs]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=1823</guid>

					<description><![CDATA[<p>今天碰到的怪問題. eth0: 1000 Mbps Full duplex, port 0 ADDRCONF( [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2015/06/22/1823/nfs-debug-%e7%a2%b0%e5%88%b0%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8c/">NFS 碰到的怪問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>今天碰到的怪問題.</p>
<p style="padding-left: 30px;">eth0: 1000 Mbps Full duplex, port 0<br />
ADDRCONF(NETDEV_UP): eth0: link is not ready<br />
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<br />
IP-Config: Complete:<br />
device=eth0, addr=10.102.81.59, mask=255.255.255.0, gw=10.102.81.1<br />
host=10.102.81.59, domain=, nis-domain=(none)<br />
bootserver=10.102.81.66, rootserver=10.102.81.66, rootpath=<br />
VFS: Unable to mount root fs via NFS, trying floppy.<br />
VFS: Cannot open root device &#8220;nfs&#8221; or unknown-block(2,0): error -6<br />
Please append a correct &#8220;root=&#8221; boot option; here are the available partitions:</p>
<p>首先要在 bootargs 放上nfsrootdebug 參數找出真正的原因, 然後就會出現</p>
<p style="padding-left: 30px;">ADDRCONF(NETDEV_UP): eth0: link is not ready<br />
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<br />
IP-Config: Complete:<br />
device=eth0, addr=10.102.81.59, mask=255.255.255.0, gw=10.102.81.1<br />
host=10.102.81.59, domain=, nis-domain=(none)<br />
bootserver=10.102.81.66, rootserver=10.102.81.66, rootpath=<br />
Root-NFS: nfsroot=/home/work/nfs/fusion.nfsvers=3<br />
NFS: nfs mount opts=&#8217;vers=2,udp,rsize=4096,wsize=4096,nolock,addr=10.102.81.66&#8242;<br />
NFS:   parsing nfs mount option &#8216;vers=2&#8217;<br />
NFS:   parsing nfs mount option &#8216;udp&#8217;<br />
NFS:   parsing nfs mount option &#8216;rsize=4096&#8217;<br />
NFS:   parsing nfs mount option &#8216;wsize=4096&#8217;<br />
NFS:   parsing nfs mount option &#8216;nolock&#8217;<br />
NFS:   parsing nfs mount option &#8216;addr=10.102.81.66&#8217;<br />
NFS: MNTPATH: &#8216;/home/work/nfs/fusion.nfsvers=3&#8217;<br />
NFS: sending MNT request for 10.102.81.66:/home/work/nfs/fusion.nfsvers=3<br />
NFS: MNT server returned result -13<br />
NFS: unable to mount server 10.102.81.66, error -13</p>
<p>這個問題只要加上 <strong>nolock</strong> 參數就好了, 所以 nfsroot args 會長的像這樣</p>
<p style="padding-left: 30px;">mem=512M root=/dev/nfs rw nfsroot=${serverip}:/nfs/fusion,nfsvers=3,nolock ip=${ipaddr}:${serverip}:${gatewayip}:255.255.255.0::eth0:off&#8217;</p>
<p>ref: <a href="http://wiki.attie.co.uk/wiki/Nfs_root" target="_blank" rel="noopener">Nfs root</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2015/06/22/1823/nfs-debug-%e7%a2%b0%e5%88%b0%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8c/">NFS 碰到的怪問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2015/06/22/1823/nfs-debug-%e7%a2%b0%e5%88%b0%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
