Can not mount NFS disk to Linux Machine

Can not mount NFS disk to Linux Machine

Я пытаюсь смонтировать диск nfs к серверу red-hat 7.4, но он зависает.

И я также пробовал изменить тип с nfs на nfs4, это не сработало.

Не могли бы вы помочь мне?

вывод dmesg;

      nfsd: last server has exited, flushing export cache
      [4928885.501390] NFSD: starting 90-second grace period (net 
      ffffffff81ad9d40)

      IP:/sharenfs /sharenfs     nfs       rw                0 0

выход услуги;

      service nfs status

       Redirecting to /bin/systemctl status nfs.service
       ● nfs-server.service - NFS server and services
        Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; 
        disabled; vendor preset: disabled)
       Active: active (exited) since Wed 2018-03-14 12:17:15 +03; 23min ago

вывод пинга;

        ping sharenfs
        3 packets transmitted, 3 received, 0% packet loss

hosts.allow пуст

решение1

Here is how i'd try to troobleshoot your problem :

  • You cannot ping sharenfs, so either it is not well setup in your DNS, or is not in your /etc/host file, or your firewall is blocking your packets. Anyway, your server does not know to which IP address send its requests. This means that at this moment the communication between your RedHat and your nfs is not possible (at least using the name of your nfs share, try to ping the IP if your sure that your NFS work properly)

  • Active: active (exited) means that your nfs service is running but systemd does not know there is a daemon to monitor. If there is one, you must define it in the unit file by configuring the Type and ExecStart options appropriately according to whether the process you start is the main proces, forks child processes and exits etc (man pages are your friend here). Services files are usually on /usr/lib/systemd/system/ directory. My advice, before make any modification to the service file make a local backup of the file in case you need to return to the previous state)

Once you've solved this two problems I think you'll see it more clairly

Cheers

Связанный контент