当前位置:IT快活林→网上冲浪电脑医院

谁能帮忙看看我的NFS为什么不能挂载啊!--在线等

作者:本站整理   发布时间:2008-4-18 0:13:44


我本来要在两块运行uClinx的板上架NFS服务器和客户端的。按照网上的资料:(1).配置内核:进入File Systems -Network file systems -选项选中:NFS file system supportProvide NFSv3 server support / Provide NFSv3 client support (一个客户端一个服务器端)(2).配置用户选项 进入Network Applications - 选项选中:portmap 进入BusyBox -选项选中:mount mount:support NFS mountsumount然后我在服务器端/etc/exports编辑其内容为 /tmp *(rw, sync)在客户端mount 时:root:/var>mkdir testnfsroot:/var> mount -t nfs 192.168.2.100:/tmp /var/testnfs/ mount: RPC: Unable to receive; errno = Connection refusedmount: nfsmount failed: Bad file descriptormount: Mounting 192.168.2.100:/tmp on /var/testnfs failed: Invalid argument这时什么原因啊!我在SUSE linux 主机上运行NFS如下:exports内容: /tnfs *(rw, sync)service portmap startservice nfs start然后在uClinux上mount:oot:/var> mount -t nfs 192.168.18.168:/tnfs /var/testnfs/ mount: 192.168.18.168:testnfs failed, reason given by server: Permission deniedmount: nfsmount failed: Bad file descriptormount: Mounting 192.168.18.168:testnfs on /var/testnfs failed: Invalid argument我现在都不知道是那端出问题勒,,,那位大虾帮忙看看。-----reason given by server: Permission denied.查看日志,如果是说illegal port,服务端加入 (rw,sync,insecure, anonuid=0)因为nfs安全上默认使用1024以下端口进行连接.(insecure)想要正常读写,最简单让客户端映射到服务端的用户为root.(anonuid=0)-----检查防火墙。##然后我在服务器端/etc/exports编辑其内容为 /tmp *(rw, sync)把*换成IP地址试试 。有没有posrtmap 进程?网上有相关的文档,你www.google.com一下。很多的。。http://blog.chinaunix.net/u/6989/showart_328491.html-----试试exports改为:/tnfs *(rw, no_root_squash,sync)-----我没有开防火墙啊!portmap 已经跑起来勒试试exports改为:/tnfs *(rw, no_root_squash,sync)我试勒没用啊,得到的一样错误-----还有/etc/exports编辑其内容为 /tmp *(rw, sync)也试过勒*换成ip地址也试过勒-----真有错误信息:rpc.mountd: refused mount request from 192.168.18.36 for /testnfs (/testnfs): illegal port 47578可是我按照你的做法改exprots文件后还是mount不成功啊~~~root:/bin> mount -t nfs 192.168.18.168:/testnfs /varmount: RPC: Timed outmount: nfsmount failed: Bad file descriptormount: Mounting 192.168.18.168:/testnfs on /var failed: Invalid argument怎么会超时啊,,,我的网络很好啊,,,,ping 0.3ms就回来勒啊-----chmod -R 777 /testnfs/etc/init.d/nfsserver restartshowmount -a客户端showmount -e 服务端ip[ 本帖最后由 wysilly 于 2007-9-21 17:25 编辑 ]-----还有,我在uClinux上为什么会得到mount: RPC: Unable to receive; errno = Connection refused 的错误!uClinux上防火墙我都没有编译进去啊。谁能指点下,谢谢-----用rpcinfo 和 shoumount 看看nfs server状态如何。rpcinfo -p server_ipshowmount -e server_ip
》热 点 关 注