免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2579 | 回复: 1

如何在solaris11中共享nfs? [复制链接]

论坛徽章:
1
2015元宵节徽章
日期:2015-03-06 15:50:39
发表于 2011-12-05 13:13 |显示全部楼层
本帖最后由 ioiioi 于 2011-12-05 13:19 编辑

我想在solaris11中将一个目录及其子目录通过nfs共享给linux,包括centos、VMware和netbsd,我尝试了一下以下操作,但总是不成功
solaris11:

zfs create tank/iso
zfs create tank/iso/linux
zfs create tank/iso/windows

share -F nfs -o rw,nosuid,root=VM-host1:VM-host2 /tank/iso
chmod -R 777 /tank/iso

centos:
mkdir /home/iso
mount -t nfs -o rw,nosuid solaris11:/tank/iso /home/iso

echo "newfile" > /home/iso/newfile.txt
成功
echo "newfile" > /home/iso/linux/newfile.txt
失败,原因是permission denied

然后,我在solaris11中查看了一下目录:
solaris 11:

ls -al /tank/iso

  1. drwxrwxrwx   5 root     root           8 Dec  5 13:04 .
  2. drwxr-xr-x   4 root     root           4 Dec  2 22:45 ..
  3. drwxrwxrwx   2 root     root           2 Dec  2 16:54 bsd
  4. drwxrwxrwx   2 root     root           2 Dec  2 16:54 linux
  5. -rw-r--r--   1 nobody   nobody         8 Dec  5 12:57 newfile.txt
  6. drwxrwxrwx   2 root     root           2 Dec  2 16:54 windows
复制代码
然而,在centos中
ls -al /home/iso

  1. drwxr-xr-x+ 2 root      root               2 Dec  2 16:54 bsd
  2. drwxr-xr-x+ 2 root      root               2 Dec  2 16:54 linux
  3. -rw-r--r--+ 1 nfsnobody nfsnobody          8 Dec  5 12:57 newfile.txt
  4. drwxr-xr-x+ 2 root      root               2 Dec  2 16:54 windows
复制代码
说明:屏幕输入的实际目录名称有出入,但是权限是一致的。
我有几个问题:
1、为什么centos创建newfile.txt的属主是nfsnobody,solaris中看到的则是nobody
2、为什么子目录无法写入,如何实现写入权限;
3、权限列表中的"+"是什么意思?
4、在solaris中,改变目录的权限,nfs client是否要重新mount 共享目录?

论坛徽章:
0
发表于 2011-12-05 17:30 |显示全部楼层
同问..............................
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP