问题描述
在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
本文介绍在Centos7下挂载NFS时遇到的问题及解决方案。由于mount命令使用不当,导致出现错误提示。通过指定正确的选项-o,如nfsvers=3,成功解决了挂载问题。
1974

被折叠的 条评论
为什么被折叠?



