fstab mount after network initialization
Posted
by
Philip
on Server Fault
See other posts from Server Fault
or by Philip
Published on 2012-03-27T16:00:21Z
Indexed on
2012/03/27
17:34 UTC
Read the original article
Hit count: 259
I'm automatically mounting a NFS with fstab. Sometimes the mount fails because the hostname of the NFS mount cannot be resolved (getaddrinfo failed). I'm assuming that this happens because the network initialization is slower than the mounts.
Is there any way to initialize the network before mounting any devices? I'm already using _netdev as a mount option but this does not help.
This is my current fstab file:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md2 / ext3 errors=remount-ro 0 1
/dev/md1 /boot ext3 errors=remount-ro 0 1
/dev/sda3 swap swap defaults 0 0
/dev/sdb3 swap swap defaults 0 0
connect.mygluster.net:/data /var/gluster/data glusterfs ro,_netdev 0
© Server Fault or respective owner