服务器端
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.