Centos 7下挂载nfs 提示mount.nfs: an incorrect mount option was specified

前端之家收集整理的这篇文章主要介绍了Centos 7下挂载nfs 提示mount.nfs: an incorrect mount option was specified前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

问题描述

在Centos 7下挂载nfs提示如下

[root@centos7-zabbix-193 /]# mount -t nfs 10.10.200.227:/home/nfs /mnt/
mount.nfs: an incorrect mount option was specified

而在Centos 6下面通过相同的命令,则没有提示错误

解决办法

在mount命令中加入-o参数,如下:

[root@centos7-zabbix-193 /]# mount -t nfs -o nfsvers=3,vers=3 10.10.200.227:/home/nfs /mnt/
[root@centos7-zabbix-193 /]# df
Filesystem              1K-blocks      Used Available Use% Mounted on
/dev/mapper/centos-root  18348032   1824328  16523704  10% /
devtmpfs                  1935536         0   1935536   0% /dev
tmpfs                     1941892         0   1941892   0% /dev/shm
tmpfs                     1941892     33292   1908600   2% /run
tmpfs                     1941892         0   1941892   0% /sys/fs/cgroup
/dev/sda1                  508588     99588    409000  20% /boot
tmpfs                      388380         0    388380   0% /run/user/0
10.10.200.227:/home/nfs 915095552 212562944 702532608  24% /mnt
原文链接:https://www.f2er.com/centos/379589.html

猜你在找的CentOS相关文章