- 论坛徽章:
- 0
|
系统为RHEL5.2,在主机RHEL01(IP 192.168.10.66)配置NFS,启动了NFS和PortMAP服务
exports文件内容:
[root@rhel01 etc]# cat exports
/mnt/sdb 192.168.10.*(rw,no_root_squash)
运行exportfs的结果
[root@rhel01 log]# exportfs -rv
exporting 192.168.10.*:/mnt/sdb
rhel03(192.168.10.68 )为Client,执行时出现错误:
[root@rhel03 mnt]# showmount -e rhel01
Export list for rhel01:
/mnt/sdb 192.168.10.*
[root@rhel03 mnt]# mount -t nfs rhel01:/sdb sdb
mount: rhel01:/sdb failed, reason given by server: Permission denied
试过在/etc/hosts使用主机名与IP对应,仍是同样错误。
在message文件中看到的信息:
Dec 13 01:32:18 rhel01 kernel: nfsd: last server has exited
Dec 13 01:32:18 rhel01 kernel: nfsd: unexporting all filesystems
Dec 13 01:32:19 rhel01 kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Dec 13 01:32:19 rhel01 kernel: NFSD: starting 90-second grace period
Dec 13 01:32:48 rhel01 mountd[28819]: refused mount request from 192.168.10.68 for /sdb (/): not exported |
|