- 论坛徽章:
- 0
|
server端(1.1.6.6八)
修改 /etc/dfs/dfstab文件
# more /etc/dfs/dfstab
# Place share(1M) commands here for automatic execution
# on entering init state 3.
#
# Issue the command '/etc/init.d/nfs.server start' to run the NFS
# daemon processes and the share commands, after adding the very
# first entry to this file.
#
# share [-F fstype] [ -o options] [-d "<text>"] <pathname> [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o rw=1.1.1.3 /tmp
启动server nfs进程
#/etc/init.d/nfs.server start
client端(1.1.1.3)
#/etc/init.d/nfs.client start
#mount 1.1.6.68:/tmp /nfs
nfs mount: 1.1.6.68: : RPC: Rpcbind failure - RPC: Timed out
nfs mount: retrying: /nfs
查原因:
The rpcbind failure error
&:nfs mount: server1:: RPC: Rpcbind failure
RPC: Timed Out
nfs mount: retrying: /mntpoint
服务器负荷过重,资源已接近临界状态,或者是hosts数据库中的数据有误比如错误的IP地址或者是错误的主机名,或者是server 端的hosts数据库停止工作。
查看server端cpu负载,在客户端mount过程中,server端cpu负载的确是直线上升,但我总觉得负载大一点也不会就真的让服务都无法起来了啊!
# w
4:31pm up 338 day(s), 16:54, 6 users, load average: 12.90, 8.07, 7.50
# w
# 4:31pm up 338 day(s), 16:54, 6 users, load average: 13.75, 8.27, 7.57
# w
# 4:31pm up 338 day(s), 16:54, 6 users, load average: 14.20, 8.38, 7.61
# w
4:31pm up 338 day(s), 16:54, 6 users, load average: 15.80, 8.79, 7.75
# w
4:31pm up 338 day(s), 16:54, 6 users, load average: 16.26, 8.93, 7.80
# w
4:31pm up 338 day(s), 16:54, 6 users, load average: 17.12, 9.20, 7.89
# w
4:31pm up 338 day(s), 16:54, 6 users, load average: 17.43, 9.32, 7.94
还有一个问题,启动nfs.client后,客户端的lockd和statd就会一直存在吗?
# pwd
/etc/init.d
# ./nfs.client stop
# ./nfs.client start
# ps -ef|grep nfs
root 15231 1 0 16:36:38 ? 0:00 /usr/lib/nfs/lockd
root 15230 1 0 16:36:38 ? 0:00 /usr/lib/nfs/statd
root 15242 4359 0 16:36:41 pts/1 0:00 grep nfs
但过了一会,statd自动消失了,不知道是为什么?
# ps -ef|grep nfs
root 7621 1 0 16:09:07 ? 0:00 /usr/lib/nfs/lockd
root 15183 4359 0 16:36:22 pts/1 0:00 grep nfs
[ 本帖最后由 wangyl1977 于 2007-6-18 16:43 编辑 ] |
|