I inherited a small network where each machine is an NFS server/client, and exports a /data folder to all the other machines. I've added a machine that I'd like to have the same functionality, and updated the networks /etc/fstab and /etc/exports accordingly.

However upon reboot, the new machine does not automatically create the export table, so I have to manually sudo exportfs -a for that machine, then sudo mount -a on the clients to get them connected. I've already added the shares to /etc/exports, as some articles have suggested. What is the default behavior for NFS? It doesn't appear that the old machines have a /etc/profile line for exporting the shares that I can find.

  • go to /etc/rcX.d (where X is your run-level (who -r)), do you have any nfs startup script ? (grep exportfs * ) – Archemar Oct 26 '16 at 11:25
  • There's a link to init.d/nfs-kernel-server which contains a call to exportfs on 'start' – Elijah Rockers Oct 27 '16 at 14:42
  • running sudo service nfs-kernel-server start will export the directories, but it still doesn't stick on reboot... – Elijah Rockers Oct 27 '16 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.