<?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>臭皮匠 &#187; nfs</title>
	<atom:link href="http://guogoul.com/tag/nfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>注意nfs server文件权限设置问题</title>
		<link>http://guogoul.com/2009/06/03/nfs_attention/</link>
		<comments>http://guogoul.com/2009/06/03/nfs_attention/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 12:19:08 +0000</pubDate>
		<dc:creator>shanfeng</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://guogoul.com/?p=152</guid>
		<description><![CDATA[搭建一个nfs server 是一个较为容易的。不过访问权限问题让我头疼了好长一段时间。我在server端共享一个文件夹并且在/etc/exports 设置目标访问机器的权限为可读写，访问机器用读写权限mount后，还是没有没有读写权限。随后分别检查了server端的文件夹属性以及客户端属性，发现owner 不是同一个用户。于是查询了/etc/passwd文件发现：
1.对于分享的文件夹来说owner的ID是由server端决定的
就是说如果在server机器上owner的Id：1000   ,name: myservername. 在client也有一个用户ID:1000   ， name: myclientname 那么在client机器上显示 owner就是myclientname.  那么你在client用myclientname这个用户访问就会拥有server端owner的所有权限。
2.client上的其它不同ID的用户如果访问这个共享文件夹，将会被服务器看成是匿名访问。当然就没有读写以及执行权限。
3.如果在/etc/exports里面只设置分享属性 anongid=1000 企图在client任何用户访问时都拥有server端owner的权限也是不成功的，必须要再加上一个all_squash属性.表示所有的client用户访问时都用anongid这个用户ID访问,当anongid是owner 的ID时 ，所有的client用户对这个共享的文件夹就有了server端owner的权限
参考： http://www.chinaitpower.com/2005September/2005-09-13/196629.html
]]></description>
		<wfw:commentRss>http://guogoul.com/2009/06/03/nfs_attention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux nfs配置概要</title>
		<link>http://guogoul.com/2009/02/06/nfs/</link>
		<comments>http://guogoul.com/2009/02/06/nfs/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 16:08:30 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2009/02/06/nfs/</guid>
		<description><![CDATA[利用nfs 可以共享系统中的指定文件夹给网络中的其它机器。我们经常可以利用nfs对系统空间进行扩容
nfs的构成分成两个部份
1.被分享的目录的机器通常称之为nfs server
2.连接nfs的通常称之为nfs client
配置nfs server端：
1.在/etc/exports文件中增加一条要分享目录的分享属性例如:
/home/work 192.168.0.*（rw,sync,no_root_squash）
把本机/home/work目录共享给192.168.0.*IP段内的机器，有读写权限
2./etc/rc.d/init.d/portmap start 启动端口映射
3./etc/rc.d/init.d/nfs start 启动nfs
配置nfs客户端：
很简直，像用正常磁盘一样挂载就行了
mount –t nfs 192.168.0.20:/home/work /mnt
运行上面的指令后客户端就可以直接用/mnt文件夹访问nfs server上的/hom/work文件夹了
]]></description>
		<wfw:commentRss>http://guogoul.com/2009/02/06/nfs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

