<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[再次重现]NFS 客户端机运行df命令后死掉（没有反应） -- 解决]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 22 Jun 2017 15:50:33 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：发现df 特别慢，用strace df -h ，发现卡在/mnt/backup,想cd /mnt卡住了，于是，怎么办？发现NFS的Server端都宕机了。 <br/>cat /proc/mounts <br/>umount -lf&nbsp;&nbsp; /mnt/backup <br/>umount: only root can do that <br/>Root: <br/>umount -lf&nbsp;&nbsp; /mnt/backup <br/>More: http://justwinit.cn/post/6800/ <br/>------------------------------------------------------------------------------------- <br/>这个问题是第二次遇到了。这次一定要记下来，免得日后麻烦！！ <br/>问题描述： <br/><br/>有两台服务器，其中一台向另一台通过nfs共享分区，如下： <br/><br/>server A: nfs server <br/>server B: nfs Client <br/><br/>事件发生： Server A，B 因故障同时重启。 重启后，用putty登陆到server A ，运行‘df’命令： <br/>$ df <br/><br/>$ Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1K-blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used Available Use% Mounted on <br/><br/>/dev/sda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80632188&nbsp;&nbsp; 8899080&nbsp;&nbsp;67636940&nbsp;&nbsp;12% / <br/><br/>none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4086484&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 4086484&nbsp;&nbsp; 0% /dev/shm <br/><br/>/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201582252&nbsp;&nbsp;32076524 159265900&nbsp;&nbsp;17% /opt <br/><br/>/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201582252&nbsp;&nbsp;44511180 146831244&nbsp;&nbsp;24% /fs <br/><br/>/dev/sda7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20161172&nbsp;&nbsp;&nbsp;&nbsp;332916&nbsp;&nbsp;18804116&nbsp;&nbsp; 2% /usr/local <br/><br/>/dev/sda8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20161172&nbsp;&nbsp;&nbsp;&nbsp; 78360&nbsp;&nbsp;19058672&nbsp;&nbsp; 1% /tmp <br/><br/>$（没有出现这个命令提示符） <br/><br/>无奈，只好再用putty 登陆Server A ，将 df 进程kill...... <br/><br/><br/>只好尝试重新mount <br/><br/>$mount -t nfs B:/data /mnt/data <br/><br/>failed: RPC Error: Program not registered <br/><br/><br/>哦~~~ ，原来B的nfs 服务没有start...&nbsp;&nbsp;登陆B： <br/>$serive nfs restart <br/><br/>重新再A上运行df，仍然死掉... <br/><br/>想到先卸载，在挂载: <br/><br/>$umount /mnt/data <br/><br/>device is busy 。 <br/><br/><br/><br/>运行fuser -mk /mnt/data 杀掉访问/mnt/data所有进程。 <br/><br/>/mnt/data: Stale NFS file handle <br/><br/><br/><br/>在server A 运行 A ， ok ~~~ <br/><br/>重新mount -t nfs B:/data /mnt/data&nbsp;&nbsp;打完收工。 <br/><br/>来自：http://blog.csdn.net/daniel_cao_/article/details/4584443
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [再次重现]NFS 客户端机运行df命令后死掉（没有反应） -- 解决]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>