SCA_SLES15 practice question 4 of 15

You have just added a new directory to be exported via NFS. what command should you run next to make that directory available?

Full set: 69 questions
Answer options
A: /usr/sbin/rpc.mountd -restart
B: /bin/nfsd - reload
C: /etcyinit.d/nfsd -reload
D: systemctl restart nfsserver.service Correct answer
E: systmd -reload nfsserver.target
Correct Answer:
D. systemctl restart nfsserver.service
Explanation

After modifying the /etc/exports file to add a new directory, the NFS server must be notified of the change. The systemctl restart nfsserver.service command accomplishes this by stopping and restarting the entire NFS server suite, forcing it to re-read its configuration files, including /etc/exports. While systemctl reload nfsserver.service or exportfs -r are less disruptive alternatives, restarting the service is a valid and effective method provided as an option.

Why Incorrect

A: rpc.mountd is only one component of the NFS server; restarting it alone is insufficient to apply new export definitions. B: Directly invoking the nfsd daemon bypasses the systemd service management framework, which is the standard in SLES 15. C: /etc/init.d/ scripts are for the legacy SysVinit system, not the systemd init system used in SLES 15. E: systmd is a typo for systemd, and nfsserver.target is not the correct service unit to manage NFS exports.

References

SUSE Linux Enterprise Server 15 SP4 Administration Guide, Section 19.4, "Configuring an NFS Server". Step 5 explicitly states: "Restart the NFS server: systemctl restart nfsserver".

Scroll to Top