All systems get rebooted at the same time, and network filesystems must wait for the servers to be available.

This can take more than 5 to 10 minutes, so the server boot process cannot be delayed that long and an alternative solution is desired.

Resolution:

Use the “at” command to run a mount command with a delay. For example, to run a mount of /filesystem in 10 minutes:

First, create a command file for the at command to execute: (This references /etc/fstab to determine what to mount at /filesystem)

# echo “mount /filesystem” > /etc/mount.sh
# chmod +x /etc/mount.sh

Second, edit /etc/rc.local to add the command:
# echo “at now + 10 minutes < /etc/mount.sh” >> /etc/rc.local

That’s all there is to it. This can be tested by running this command and waiting 10 minutes:
# at now + 10 minutes < /etc/mount.sh

Leave a Reply

Your email address will not be published. Required fields are marked *