LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1864|回复: 3

nfs,failed: RPC Error: Program not registered

[复制链接]
发表于 2009-12-1 01:27:06 | 显示全部楼层 |阅读模式
按照这儿玩的

http://en.gentoo-wiki.com/wiki/NFS/Server
http://en.gentoo-wiki.com/wiki/NFS/Client

  1. shuge-lab ~ # mount -t nfs -o nolock localhost:/home/ /tmp/nfs
  2. mount.nfs: mount to NFS server 'localhost:/home/' failed: RPC Error: Program not registered
复制代码


  1. shuge-lab ~ # cat /etc/exports
  2. # /etc/exports: NFS file systems being exported.  See exports(5).

  3. /home/ 192.168.1.0/255.255.255.0(async,no_subtree_check,rw,no_root_squash)
复制代码



  1. shuge-lab ~ # exportfs
  2. /home                 192.168.1.0/255.255.255.0

  3. shuge-lab ~ # rc-status
  4. Runlevel: default
  5. dbus                                                               [ started  ]
  6. hald                                                               [ started  ]
  7. local                                                              [ started  ]
  8. mysql                                                              [ started  ]
  9. netmount                                                           [ started  ]
  10. xdm                                                                [ started  ]

复制代码
 楼主| 发表于 2009-12-1 01:31:02 | 显示全部楼层
orz

用上了老大之前提过的sshfs,一下子就搞掂了:p

但是,我还是想知道nfs为啥会错?
回复 支持 反对

使用道具 举报

发表于 2009-12-1 02:08:19 | 显示全部楼层
内核里边nfs支持打开了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-1 13:39:51 | 显示全部楼层
  1. lee@shuge-lab /usr/src/linux $ cat .config | grep 'NFS'
  2. CONFIG_NFS_FS=y
  3. CONFIG_NFS_V3=y
  4. CONFIG_NFS_V3_ACL=y
  5. CONFIG_NFS_V4=y
  6. CONFIG_NFS_V4_1=y
  7. # CONFIG_ROOT_NFS is not set
  8. CONFIG_NFSD=y
  9. CONFIG_NFSD_V2_ACL=y
  10. CONFIG_NFSD_V3=y
  11. CONFIG_NFSD_V3_ACL=y
  12. # CONFIG_NFSD_V4 is not set
  13. CONFIG_NFS_ACL_SUPPORT=y
  14. CONFIG_NFS_COMMON=y
复制代码

shuge-lab ~ # exportfs
/home                 192.168.1.0/255.255.255.0
shuge-lab ~ # mount 127.0.0.1:/home /mnt/nfs/
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
shuge-lab ~ # mount -o nolock 127.0.0.1:/home /mnt/nfs/
mount.nfs: mount to NFS server '127.0.0.1:/home' failed: RPC Error: Program not registered
shuge-lab ~ #



问题依旧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表