zoukankan      html  css  js  c++  java
  • nfs mount 故障 mount.nfs: access denied by server while mounting 10.0.100.208:/backup_usb

    生产环境:

    服务端centos7.2,客户端:ubuntu16.04 

    挂载出现的故障:

    root@HDCtrl100:/mnt# mount -t nfs 10.0.100.208:/backup_usb /mnt/backup_usb
    mount.nfs: access denied by server while mounting 10.0.100.208:/backup_usb  #报错。

    原因:

    //如果端口号大于1024,则需要将 insecure 选项加入到配置文件(/etc/exports)相关选项中mount客户端才能正常工作

    解决办法:(ubuntu挂载nfs出现有故障)

    [root@zabbix-server ~]# cat /etc/exports
    #new example
    /backup_usb *(insecure,rw,sync,no_root_squash,anonuid=888,anongid=888)   #不能使用IP地址,一定要用*,加insecure
    

    #重启服务

    [root@zabbix-server ~]# service nfs restart
    Redirecting to /bin/systemctl restart nfs.service
    

      

  • 相关阅读:
    IO复习
    递归
    转换流
    编码与解码
    打印流(printStream)
    Properties
    【转】将Visual Studio武装到底
    【转】VS2008中的自定义格式化代码
    C++开发工具的常用插件
    抽烟的注意事项
  • 原文地址:https://www.cnblogs.com/nulige/p/7299737.html
Copyright © 2011-2022 走看看