NFS服务配置与mount nfs时-o nolock的问题
2015-09-09 22:51
561 查看
1.创建共享目录
#mkdir /home/hellolinux/nfs
2.创建或修改/etc/exports文件
#vi /etc/exports
home/hellolinux/nfs 192.168.0.*(rw,sync,no_root_squash)
3.NFS服务的启动与停止
#service nfs start
#service nfs stop
#service nfs restart
#servcie nfs status(服务状态)
4 在客户机上查看NFS的资源共享情况
# showmount -e 192.168.0.1
Export list for 192.168.0.1:
/home/hellolinux/nfs 192.168.0.*
5 .使用mount命令挂栽共享资源
mount -t nfs -o nolock 192.168.0.1:/home/hellolinux/nfs /mnt/nfs
出现的问题与解决方法:
[root@FORLINX6410]# mount -t nfs 192.168.0.1:/home/hellolinux/rootfs /mnt/nfs
svc: failed to register lockdv1 RPC service (errno 111).
mount: mounting 192.168.0.1:/home/hellolinux/rootfs on /mnt/nfs failed: Connection refused
解决方案:
nfs mount 默认选项包括文件锁,依赖于portmap提供的动态端口分配功能。
解决方法:kill 文件锁(lockd)或者mount -o nolock
相关解答链接:
1.http://bbs.chinaunix.net/thread-2001083-1-1.html
2.http://blog.csdn.net/alex_xhl/article/details/7222602
#mkdir /home/hellolinux/nfs
2.创建或修改/etc/exports文件
#vi /etc/exports
home/hellolinux/nfs 192.168.0.*(rw,sync,no_root_squash)
3.NFS服务的启动与停止
#service nfs start
#service nfs stop
#service nfs restart
#servcie nfs status(服务状态)
4 在客户机上查看NFS的资源共享情况
# showmount -e 192.168.0.1
Export list for 192.168.0.1:
/home/hellolinux/nfs 192.168.0.*
5 .使用mount命令挂栽共享资源
mount -t nfs -o nolock 192.168.0.1:/home/hellolinux/nfs /mnt/nfs
出现的问题与解决方法:
[root@FORLINX6410]# mount -t nfs 192.168.0.1:/home/hellolinux/rootfs /mnt/nfs
svc: failed to register lockdv1 RPC service (errno 111).
mount: mounting 192.168.0.1:/home/hellolinux/rootfs on /mnt/nfs failed: Connection refused
解决方案:
nfs mount 默认选项包括文件锁,依赖于portmap提供的动态端口分配功能。
解决方法:kill 文件锁(lockd)或者mount -o nolock
相关解答链接:
1.http://bbs.chinaunix.net/thread-2001083-1-1.html
2.http://blog.csdn.net/alex_xhl/article/details/7222602
相关文章推荐
- #新闻拍一拍# IBM 招聘广告要求应聘者具备至少 12 年 K8S 使用经验
- Linux socket 初步
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- 拿到OK2440开发板之后——连接nfs服务器
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝
- vivi下重新调整分区