df Command Is Suspended and the NFS Fails to Be Started

Symptom

  1. Run the df –h command, and the command is suspended.

  2. Run the strace df –h command to locate the problem. The following information is displayed:

  3. The following information is displayed after the NFS service is restarted.
    [....] Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob for nfs-server.service canceled
    failed!

Possible Causes

  1. Check the NFS share configuration.
    cat /etc/exports

  2. View the corresponding shared directory.

Causes

Run the cat /etc/exports command to view the NFS share configuration.

The shared directory does not exist.

Solution

  1. Create the corresponding directory.
    mkdir /data/atlas_dls
  2. Restart the NFS service.
    sudo /etc/init.d/nfs-kernel-server start

  3. Run the df –h command.

    Execution succeeded.