|
通过使用NFS server files,NFS server daemons,NFS server commands来配置NFS服务器
NFS server files包括: /etc/dfs/dfstab:列出在启动的时候共享的本地资源(文件内容包括:系统运行级别是3;超级用户运行shareall命令;超级用户运行/etc/init.d/nfs.server脚本来启动NFS服务器进程) /etc/dfs/sharetab:列出当前正在被NFS服务器共享的本地资源.比如: # cat /etc/dfs/sharetab /export/sys44_data - nfs no
/etc/dfs/fstypes:列出默认的远程文件系统的类型,比如: # cat /etc/dfs/fstypes nfs NFS utilities autofs AUTOFS utilities cachefs CACHEFS utilities
/etc/rmtab:列出被NFS客户端挂接的远程文件系统,比如: # the format of this file follows the syntax # hostname:fsname sys42:/export/sys44_data sys41:/usr/share/man sys43:/export/sys44_data
/etc/nfs/nfslog.conf:列出NFS服务器的日志 /etc/default/nfslogd:列出描述nfslogd程序行为的配置信息
NFS daemon包括mountd,nfsd,statd,lockd,nfslogd 启动NFS服务器程序: # /etc/init.d/nfs.server start 关闭NFS服务器程序(/etc/rc0/S/1/2.d/K28nfs.server script): # /etc/init.d/nfs.server stop
NFS服务器命令包括:share,unshare,shareall,unshareall,dfshares,dfmounts 启动NFS客户端程序: # /etc/init.d/nfs.client start 关闭NFS客户端程序: # /etc/init.d/nfs.client stop
NFS logging parameters: IDLE_TIME:空闲时间默认是300秒 MIN_PROCESSING_SIZE:默认是524288bytes UMASK:默认是0137 CYCLE_FREQUENCY:默认是24小时 MAX_LOGS_PRESERVE:默认是10个
各种错误分析: 1,the "no such file" error: no such file or directory 出现这种情况,一般是在/etc/vfstab中检查目录或者文件名拼写是否有错误 2,the "mount point" error: mount: mount-point /DS9 does not exist 出现这种情况,一般检查/etc/vfstab中挂载点的拼写是否有错误 3,the "unknown host" error: nfs mount: sserver1:: RPC: unknown host 出现这种情况,在对应的文件里面检查主机名是否正确 4,the "stale NFS file handle" error: stale NFS file handle 出现这种情况,在客户端上执行卸载再挂载 5,the "program not registered" error: nfs mount: dbserver: RPC: program not registered nfs mount: retrying: /mntpoint 出现这种情况,首先执行who -r命令判断是否处于3运行级别.然后用pgrep -xl mountd命令,如果mountd程序没有运行,就启用/etc/init.d/nfs.server脚本,先关闭再启用.最后检查/etc/dfs/dfstab文件 6,the "service not responding" error: nfs mount: dbserver: NFS: service not responding nfs mount: retrying: /mntpoint 出现这种情况,首先用who -r判断是否处于3运行级别,然后用ps -e命令查看NFS服务器是否运行
|
一共有 0 条评论