Chinaunix首页 | 论坛 | 博客
  • 博客访问: 577396
  • 博文数量: 158
  • 博客积分: 2696
  • 博客等级: 少校
  • 技术积分: 1668
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-10 00:49
个人简介

life?is?short?,?play?more!

文章分类

全部博文(158)

文章存档

2021年(1)

2013年(10)

2012年(4)

2011年(11)

2010年(27)

2009年(28)

2008年(52)

2007年(25)

我的朋友

分类: LINUX

2009-04-21 17:31:07

nfs server 配置允许的网络协议。 nfs4 必须需要tcp 协议
 
default to nfs2, nfs3, nfs4, both network protocol udp/tcp are supported by them.
see more details by "man rpc.nfsd"
 
simplely, first , find below line in this file "/etc/init.d/nfs":
 
daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
 
Then , to support tcp only, change it as below and restart nfs service.
 
daemon rpc.nfsd -U $RPCNFSDARGS $RPCNFSDCOUNT  (#comment: -u means no udp protocol)
 
to support udp only  , change it as below and restart nfs service.
 
daemon rpc.nfsd -T $RPCNFSDARGS $RPCNFSDCOUNT  (#comment: -u means no tcp protocol)
 
 
Then to look up the what protocol are supported.
 
# rpcinfo | grep nfs
 
  program vers proto   port

    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
We can see that from output , we got nfs2,nfs3,nfs4 in this nfs server. and support the tcp udp protocol.
 
 
Note:
 
nfs require the tcp protocol.
so we can't use the only -T parameter in starting nfs4.
 
阅读(754) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~