免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: brucewoo
打印 上一主题 下一主题

一个NFS的问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2007-07-09 14:15 |只看该作者
启动nfs.server之后再share,还不行就/etc/dfs里面的文件,编辑完重启,按常规方法进行。
真奇怪,平时经常用的到了你那里就不好使了。

论坛徽章:
0
12 [报告]
发表于 2007-07-09 15:17 |只看该作者
直接用IP地址mount看看.

论坛徽章:
0
13 [报告]
发表于 2007-07-10 03:08 |只看该作者
Try the following:

1. Make sure server01 is pointing to the correct IP address of the NFS server

2. Issue: rpcinfo -p on both server and client for the potential version number mismatch of RPC and nfs service.

3. On the client try:  mount -F nfs -o vers=3 server01:/abc  /mnt

4. Check whether you have tcpwrapper ( /etc/hosts.allow, /etc/hosts.deny files) or firewall blocking the traffic.

论坛徽章:
0
14 [报告]
发表于 2007-07-10 10:10 |只看该作者
1. Make sure server01 is pointing to the correct IP address of the NFS server

使用showmount或者dfshares命令都可以确认server01的IP指向没有问题

2. Issue: rpcinfo -p on both server and client for the potential version number mismatch of RPC and nfs service.

#rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
1073741824    1   tcp  32781
    100024    1   udp  32778  status
    100024    1   tcp  32782  status
    100133    1   udp  32778
    100133    1   tcp  32782
    100021    1   udp   4045  nlockmgr
    100021    2   udp   4045  nlockmgr
    100021    3   udp   4045  nlockmgr
    100021    4   udp   4045  nlockmgr
    100021    1   tcp   4045  nlockmgr
    100021    2   tcp   4045  nlockmgr
    100021    3   tcp   4045  nlockmgr
    100021    4   tcp   4045  nlockmgr
    300598    1   udp  32779
    300598    1   tcp  32785
805306368    1   udp  32779
805306368    1   tcp  32785
    100249    1   udp  32780
    100249    1   tcp  32786
    100229    1   tcp  32787  metad
    100229    2   tcp  32787  metad
    100068    2   udp  32794
    100068    3   udp  32794
    100068    4   udp  32794
    100068    5   udp  32794
    100083    1   tcp  32788
    100242    1   tcp  32789  metamedd
    100230    1   tcp  32790  metamhd
    100001    2   udp  32795  rstatd
    100001    3   udp  32795  rstatd
    100001    4   udp  32795  rstatd
    100002    2   tcp  32791  rusersd
    100002    3   tcp  32791  rusersd
    100002    2   udp  32796  rusersd
    100002    3   udp  32796  rusersd
    100011    1   udp  32797  rquotad
    100145    1   tcp  32792  scadmd
    100533    1   tcp  32793  scrcmd
    100281    1   tcp  32794  metacld
536873113    1   tcp  32801


3. On the client try:  mount -F nfs -o vers=3 server01:/abc  /mnt

尝试一下这个命令,没有效果

4. Check whether you have tcpwrapper ( /etc/hosts.allow, /etc/hosts.deny files) or firewall blocking the traffic.

没有使用tcpwrapper之类的软件

论坛徽章:
0
15 [报告]
发表于 2007-07-10 10:45 |只看该作者
#rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
1073741824    1   tcp  32781
    100024    1   udp  32778  status
    100024    1   tcp  32782  status
    100133    1   udp  32778
    100133    1   tcp  32782
    100021    1   udp   4045  nlockmgr
    100021    2   udp   4045  nlockmgr
    100021    3   udp   4045  nlockmgr
    100021    4   udp   4045  nlockmgr
    100021    1   tcp   4045  nlockmgr
    100021    2   tcp   4045  nlockmgr
    100021    3   tcp   4045  nlockmgr
    100021    4   tcp   4045  nlockmgr
    300598    1   udp  32779
    300598    1   tcp  32785
805306368    1   udp  32779
805306368    1   tcp  32785
    100249    1   udp  32780
    100249    1   tcp  32786
    100229    1   tcp  32787  metad
    100229    2   tcp  32787  metad
    100068    2   udp  32794
    100068    3   udp  32794
    100068    4   udp  32794
    100068    5   udp  32794
    100083    1   tcp  32788
    100242    1   tcp  32789  metamedd
    100230    1   tcp  32790  metamhd
    100001    2   udp  32795  rstatd
    100001    3   udp  32795  rstatd
    100001    4   udp  32795  rstatd
    100002    2   tcp  32791  rusersd
    100002    3   tcp  32791  rusersd
    100002    2   udp  32796  rusersd
    100002    3   udp  32796  rusersd
    100011    1   udp  32797  rquotad
    100145    1   tcp  32792  scadmd
    100533    1   tcp  32793  scrcmd
    100281    1   tcp  32794  metacld
536873113    1   tcp  32801

If this is the full output from your NFS server, then your nfs daemons are not running. If your nfs daemons are running, you should see them registered to rpcbind as follow:


  1.     100005    1   udp  32777  mountd
  2.     100005    1   tcp  32776  mountd
  3.     100005    2   udp  32777  mountd
  4.     100005    2   tcp  32776  mountd
  5.     100005    3   udp  32777  mountd
  6.     100005    3   tcp  32776  mountd
  7.     100003    2   udp   2049  nfs
  8.     100003    3   udp   2049  nfs
  9.     100227    2   udp   2049  nfs_acl
  10.     100227    3   udp   2049  nfs_acl
  11.     100003    2   tcp   2049  nfs
  12.     100003    3   tcp   2049  nfs
  13.     100003    4   tcp   2049  nfs
  14.     100227    2   tcp   2049  nfs_acl
  15.     100227    3   tcp   2049  nfs_acl
复制代码

ps -ef|grep nfs. What is the result?
Try restart your nfs services and use svcs -xv to troubleshoot if necessary

论坛徽章:
0
16 [报告]
发表于 2007-07-11 13:18 |只看该作者
不好意思,上面的输出是执行了unshare命令后的输出,
这个是执行share命令后的输出

# rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
    100024    1   udp  32779  status
1073741824    1   tcp  32781
    100024    1   tcp  32782  status
    100133    1   udp  32779
    100133    1   tcp  32782
    100021    1   udp   4045  nlockmgr
    100021    2   udp   4045  nlockmgr
    100021    3   udp   4045  nlockmgr
    100021    4   udp   4045  nlockmgr
    100021    1   tcp   4045  nlockmgr
    100021    2   tcp   4045  nlockmgr
    100021    3   tcp   4045  nlockmgr
    100021    4   tcp   4045  nlockmgr
    300598    1   udp  32780
    300598    1   tcp  32785
805306368    1   udp  32780
805306368    1   tcp  32785
    100249    1   udp  32781
    100249    1   tcp  32786
    100229    1   tcp  32787  metad
    100229    2   tcp  32787  metad
    100068    2   udp  32795
    100068    3   udp  32795
    100068    4   udp  32795
    100068    5   udp  32795
    100083    1   tcp  32788
    100242    1   tcp  32789  metamedd
    100230    1   tcp  32790  metamhd
    100001    2   udp  32796  rstatd
    100001    3   udp  32796  rstatd
    100001    4   udp  32796  rstatd
    100002    2   tcp  32791  rusersd
    100002    3   tcp  32791  rusersd
    100002    2   udp  32797  rusersd
    100002    3   udp  32797  rusersd
    100011    1   udp  32798  rquotad
    100145    1   tcp  32792  scadmd
    100533    1   tcp  32793  scrcmd
    100281    1   tcp  32794  metacld
    100142    2   tcp  32799  fed
536873113    1   tcp  32800
    100248    2   tcp  32801  pmfd
    100141    1   tcp  32804  rgmd_receptionist
    100005    1   udp  32829  mountd
    100005    1   tcp  32942  mountd
    100005    2   udp  32829  mountd
    100005    2   tcp  32942  mountd
    100005    3   udp  32829  mountd
    100005    3   tcp  32942  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100227    2   udp   2049  nfs_acl
    100227    3   udp   2049  nfs_acl
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049  nfs_acl
    100227    3   tcp   2049  nfs_acl

执行svcs -xv没有看到有关异常的信息,打算重新安装了,
非常谢谢你的热心帮助,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP