互联网服务 AIXNFS 网络文件系统

AIX 5.3 NFS配置

服务器端
1. 检查nfs的启动情况
lssrc -g nfs  服务器检查nfsd, rpc.mounted是active

启动nfs服务组  startsrc -g nfs
启动单个服务 startsrc -s nfsd

2. 服务器添加需要export的FS
smit mknfsexp

3. export服务器的FS
# /usr/sbin/exportfs -a

4. 检查export的情况
# hostnamet -e
APP1
# showmount -e APP1
export list for APP1:
/arrayblc01 (everyone)
/arrayblc02 (everyone)
/arrayblc03 (everyone)
/arrayblc04 (everyone)
5. 检查服务器端的/etc/hosts
定义客户端的信息
10.10.10.1 DB2

客户端(DB2)
1. 编辑/etc/filesystems文件
/arrayblc01:
        dev             = /arrayblc01
        vfs             = nfs
        mount           = false
        nodename        = APP1
        options         = rw
        type            = nfs_mount

/arrayblc02:
        dev             = /arrayblc02
        vfs             = nfs
        mount           = false
        nodename        = APP1
        options         = rw
        type            = nfs_mount

/arrayblc03:
        dev             = /arrayblc03
        vfs             = nfs
        mount           = false
        nodename        = APP1
        options         = rw
        type            = nfs_mount

/arrayblc04:
        dev             = /arrayblc04
        vfs             = nfs
        mount           = false
        nodename        = APP1
        options         = rw
        type            = nfs_mount
2. 检查客户器端的/etc/hosts
定义服务器的信息
10.10.10.2 APP1
3. mount /arrayblc01


如果没有在服务器端和客户端的/etc/hosts文件中定义IP信息,则可能出现下面的错误
# mount /arrayblc04
nfsmnthelp: 1831-019 APP1: System call error number -1.

mount: 1831-008 giving up on:
APP1:/arrayblc04
System call error number -1.





























参与0

0 同行回答

“答”则兼济天下,请您为题主分忧!

提问者

wzz0001
软件开发工程师 microsoft corporation
评论49

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2010-12-10
  • 关注会员:0 人
  • 问题浏览:4819
  • X社区推广