A-A+

挂载远程目录报错:reason given by server: Permission denied

2013年05月02日 Linux, OperatingSystem 暂无评论 阅读 1,921 次

报错如下:

[root@11grac1 .ssh]# mount -t nfs  192.168.137.141:/mnt/rac_ogg/rac_ogg /u01/app/ogg/11.1
mount: 192.168.137.141:/mnt/rac_ogg/rac_ogg failed, reason given by server: Permission denied

在nfs服务端查看配置文件:

[root@openfiler rac_ogg]# cat /etc/exports

# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
#       This configuration file was autogenerated
#       by Openfiler. Any manual changes will be overwritten
#       Generated at: Thu May 2 15:36:07 CST 2013


# End of Openfiler configuration

/mnt/rac_ogg/rac_ogg  192.168.137.*(rw,sync,no_root_squash,no_all_squash,no_subtree_check) 

修改后如下:

[root@openfiler rac_ogg]# cat /etc/exports

# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!
#       This configuration file was autogenerated
#       by Openfiler. Any manual changes will be overwritten
#       Generated at: Thu May 2 15:36:07 CST 2013


# End of Openfiler configuration

/mnt/rac_ogg/rac_ogg  192.168.137.0/24(rw,sync,no_root_squash,no_all_squash,no_subtree_check) 

重启服务

[root@openfiler rac_ogg]# service nfs restart
Shutting down NFS mountd: [  OK  ]
Shutting down NFS daemon: [  OK  ]
Shutting down NFS quotas: [  OK  ]
Shutting down NFS services:  [  OK  ]
Starting NFS services:  [  OK  ]
Starting NFS quotas: [  OK  ]
Starting NFS daemon: [  OK  ]
Starting NFS mountd: [  OK  ]

挂载正常

给我留言

Copyright © YallonKing 保留所有权利.   Theme  Ality

用户登录

分享到: