免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1321 | 回复: 0
打印 上一主题 下一主题

solaris10下使用nfs挂载linux下的文件系统. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-20 15:31 |只看该作者 |倒序浏览

                在Linux机器上使用exportfs共享某一文件系统, 并尝试在本机上进行挂载.
[root@blueice ~]# exportfs  *:/home
[root@blueice ~]# mount 172.168.1.146:/home /mnt
[root@blueice ~]# ls /mnt
vmware  vmware2
[root@blueice ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/mapper/VolGroup00-vmware on /home/vmware type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
172.168.1.146:/home on /mnt type nfs (rw,addr=172.168.1.146)
[root@blueice ~]# umount /mnt
[root@blueice ~]#
在solaris10上挂载时提示如下错误:
bash-3.00# mount 172.168.1.146:/home /mnt
nfs mount: mount: /mnt: Not owner
使用vers=3选项可挂载远程linux上的文件系统:
bash-3.00# mount -o vers=3 172.168.1.146:/home /mnt
bash-3.00# ls /mnt
vmware   vmware2
这个问题主要是由于默认情况下Linux下挂载nfs使用的是nfs version3,而solaris10下挂载nfs使用的是nfs version4
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7667/showart_130353.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP