zoukankan      html  css  js  c++  java
  • 综合架构_nfs常见错误

    存储服务常见异常问题:

    1) 存储服务端防火墙服务配置错误

    clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
        2) 存储服务正常运行 需要开启两个服务 rpcbind nfs	
    	  3) Stale file handle 文件句柄错误
    服务端存储目录已经消失, 客户端依然进行挂载
    进入/proc/mounts中, 将不能使用存储目录进行强制卸载
      4) 服务端如果重启会有延迟使用情况
      进入挂载点 --- 创建数据会卡死
    

    [root@web01 ~]# mount -t nfs 172.16.1.31:/data1 /opt
    mount.nfs: access denied by server while mounting 172.16.1.31:/data1

    原因是授权的网段不对!


     卸载的时候提示:umount:/mnt:device is busy,需要退出挂载目录再进行卸载!如果是NFS Server 宕机了。则需要强制卸载 

    umount -lt /mnt


    1、The rpcbind failure error 
    故障现象: 
    nfs mount: server1:: RPC: Rpcbind failure 
    RPC: Timed Out 
    nfs mount: retrying: /mntpoin
    原因: 
    第一,可能因为客户机的hosts文件中存在错误的ip地址、主机名或节点名组合; 
    第二,服务器因为过载而暂时停止服务。



    2、The server not responding error 
    现象: 
    NFS server server2 not responding, still trying 
    原因: 
    第一,网络不通,用ping命令检测一下。 
    第二,服务器关机。



    3、The NFS client fails a reboot error 
    现象: 
    启动客户机后停住了,不断显示如下提示信息: 
    Setting default interface for multicast: add net 224.0.0.0: gateway: 
    client_node_name. 
    原因: 
    在etc/vfstab的mount选项中使用了fg而又无法成功mount服务器上的资源,改成bg或将该行注释掉,直到服务器可用为止。



    4、The service not responding error 
    现象: 
    nfs mount: dbserver: NFS: Service not responding 
    nfs mount: retrying: /mntpoint 
    原因: 
    第一,当前级别不是级别3,用who -r查看,用init 3切换。 
    第二,NFS Server守护进程不存在,用ps -ef | grep nfs检查,用/etc/init.d/nfs start启动。



    5、The program not registered error 
    现象: 
    nfs mount: dbserver: RPC: Program not registered 
    nfs mount: retrying: /mntpoint 
    原因: 
    第一,当前级别不是级别3。 
    第二,mountd守护进程没有启动,用/etc/init.d/nfs脚本启动NFS守护进程。 
    第三,看/etc/dfs/dfstab中的条目是否正常。



    6、The stale file handle error 
    现象: 
    stale NFS file handle 
    原因: 
    服务器上的共享资源移动位置了,在客户端使用umount和mount重新挂接就可以了。



    7、The unknown host error 
    现象: 
    nfs mount: sserver1:: RPC: Unknown host 
    原因: 
    hosts文件中的内容不正确。



    8、The mount point error 
    现象: 
    mount: mount-point /DS9 does not exist. 
    原因: 
    该挂接点在客户机上不存在,注意检查命令行或/etc/vfstab文件中相关条目的拼写。



    9、The no such file error 
    现象: 
    No such file or directory. 
    原因: 
    该挂接点在服务器上不存在,注意检查命令行或/etc/vfstab文件中相关条目的拼写。



    10、No route to host 
    错误现象: 
    # mount 10.10.11.211:/opt/data/xmldb /c2c-web1/data/xmldb -t nfs -o rw 
    mount: mount to NFS server ’10.10.11.211′ failed: System Error: No route to host.
    原因: 
    防火墙被打开,关闭防火墙。 
    这个原因很多人都忽视了,如果开启了防火墙(包括iptables和硬件防火墙),NFS默认使用111端口,我们先要检测是否打开了这个端口,还要检查TCP_Wrappers的设定。



    11、Not owner 
    现象: 
    # mount -F nfs -o rw 10.10.2.3:/mnt/c2c/data/resinfo2 /data/data/resinfo2 
    nfs mount: mount: /data/data/resinfo2: Not owner
    原因: 
    这是Solaris 10版本挂载较低版本nfs时报的错误。
    解决: 
    需要用-o vers=3参数
    示例: 
    # mount -F nfs -o vers=3 10.10.2.3:/mnt/c2c/data/resinfo2 /data/data/resinfo2



    12、RPC: Program not registered & retrying 
    现象: 
    nfs mount: 10.10.2.3: : RPC: Program not registered 
    nfs mount: retrying: /data/data/resinfo2
    原因: 
    没有启动NFS共享端服务。
    解决:需要重新启动share端的NFS服务, 
    Linux: 
    mount: RPC: Program not registered 
    # /etc/init.d/nfs restart
    Solaris: 
    mount: RPC: Program not registered 
    # /etc/rc.d/init.d/nfs restart



    13、can’t contact portmapper: RPC: Remote system error – Connection refused 
    现象: 
    # exportfs -a 
    can’t contact portmapper: RPC: Remote system error – Connection refused
    原因: 
    出现这个错误信息是由于server端的portmap没有启动。
    解决: 
    # /etc/init.d/portmap start

  • 相关阅读:
    Delphi 使用字符串时,一个注意地方
    Delphi 字符串 详解
    Delphi SEH研究
    Delphi 新语法之Helper
    Delphi 判断一个二进制数中有多少个1
    Delphi 数据的理解
    Delphi 对象构造浅析后续
    Delphi 关于错误E2154 Type '%s' needs finalization not allowed in variant record
    Delphi 新语法介绍之For In
    Delphi 关于错误E1038 Unit identifier '%s' does not match file name
  • 原文地址:https://www.cnblogs.com/zhanghongqi/p/11739393.html
Copyright © 2011-2022 走看看