Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2388896
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类:

2006-06-20 15:31:10

在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
阅读(3833) | 评论(0) | 转发(0) |
0

上一篇:相濡以沫

下一篇:QQ的新功能--让我生气

给主人留下些什么吧!~~