I have a couple of servers in a VPC in Amazon EC2. One of them acts as a NFS server, and one of them as a client.
I recently noticed a problem in the client that after a reboot, it would reject all SSH connections, presumably because SSH was not running. After transferring the EBS volume to another instance and taking a peek inside, I commented out the NFS line in
/etc/fstab and tried attaching it back to the server and booting it. Lo and behold, I was able to connect with SSH.
It seems that having the following line in my fstab is breaking everything on boot:
10.0.0.1:/export/share /mnt/shared nfs auto 0 0
Why is this causing SSH to fail to start? How can I have NFS automatically mount on boot without breaking networking/SSH on the system?
I've checked that
sudo mount -a works properly, so it seems that there isn't an inherent problem in the fstab command. What's breaking and how can I fix it?