Failed to Execute df -h and Failed to Start NFS

Symptom

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

  2. Run the strace df -h command to locate the problem. Command output is as follows:

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

Cause Analysis

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

  2. View the corresponding shared directory.

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.

    The command is executed successfully.