mount.nfs: failed to apply fstab options when mount nfs file system in fedora 32

Dolphin asked:

This is my nfs service status in Fedora 32:

[[email protected] infrastructure]$ sudo systemctl status nfs-server.service
● nfs-server.service - NFS server and services
     Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
    Drop-In: /run/systemd/generator/nfs-server.service.d
     Active: active (exited) since Sun 2020-07-19 04:16:50 EDT; 2h 34min ago
    Process: 599370 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
    Process: 599371 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
    Process: 599381 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited, status=0/SUCCESS)
   Main PID: 599381 (code=exited, status=0/SUCCESS)
        CPU: 37ms

Jul 19 04:16:50 MiWiFi-R4CM-srv systemd[1]: Starting NFS server and services...
Jul 19 04:16:50 MiWiFi-R4CM-srv systemd[1]: Finished NFS server and services.

and this is my exports file config in /etc/exports:

[[email protected] infrastructure]$ cat /etc/exports
/home/dolphin/data/k8s/monitoring/infrastructure/jenkins *(rw,all_squash)

when I trying to test my nfs servcie using this command :

[[email protected] infrastructure]$ mount -t nfs -o v4 /mnt
mount.nfs: failed to apply fstab options

I am searching from internet but find no one encount this situation.where is going wrong and what shoud I do to fix this?

[[email protected] infrastructure]$ showmount -e
Export list for
/home/dolphin/data/k8s/monitoring/infrastructure/jenkins *

My answer:

It requires root privilege to mount a remote filesystem. Thus you should do sudo mount ...

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.