Ubuntu 18.04 - Mount NFS with FQDN not resolving address
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
Trying to mount /home directories to a NFS share.
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0
However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).
If I mount manually with above in my fstab with the command:
mount -a
It manages to mount fine.
I've also tried creating a systemd service that will do the mount -a
command after network is up, but i still get the same problem.
Tried numerous different mounting options, including _netdev.
All help would be greatly appreciated.
18.04 fstab nfs
add a comment |Â
up vote
0
down vote
favorite
Trying to mount /home directories to a NFS share.
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0
However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).
If I mount manually with above in my fstab with the command:
mount -a
It manages to mount fine.
I've also tried creating a systemd service that will do the mount -a
command after network is up, but i still get the same problem.
Tried numerous different mounting options, including _netdev.
All help would be greatly appreciated.
18.04 fstab nfs
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (seenetstat -antup
. And resolved get his forwarder from the NetworkManager active profile. Seecat /var/run/NetworkManager/resolv.conf
andcat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.
â cmak.fr
Jun 11 at 8:26
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Trying to mount /home directories to a NFS share.
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0
However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).
If I mount manually with above in my fstab with the command:
mount -a
It manages to mount fine.
I've also tried creating a systemd service that will do the mount -a
command after network is up, but i still get the same problem.
Tried numerous different mounting options, including _netdev.
All help would be greatly appreciated.
18.04 fstab nfs
Trying to mount /home directories to a NFS share.
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus 0 0
However, in syslog it says that it cannot resolve the address. I'm guessing it'll be OK if I used an IP Address, however this is not feasible due to our storage solution (IP addresses could change at a given moment).
If I mount manually with above in my fstab with the command:
mount -a
It manages to mount fine.
I've also tried creating a systemd service that will do the mount -a
command after network is up, but i still get the same problem.
Tried numerous different mounting options, including _netdev.
All help would be greatly appreciated.
18.04 fstab nfs
asked Jun 11 at 8:14
Swinkid
12
12
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (seenetstat -antup
. And resolved get his forwarder from the NetworkManager active profile. Seecat /var/run/NetworkManager/resolv.conf
andcat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.
â cmak.fr
Jun 11 at 8:26
add a comment |Â
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (seenetstat -antup
. And resolved get his forwarder from the NetworkManager active profile. Seecat /var/run/NetworkManager/resolv.conf
andcat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.
â cmak.fr
Jun 11 at 8:26
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see
netstat -antup
. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf
and cat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.â cmak.fr
Jun 11 at 8:26
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see
netstat -antup
. And resolved get his forwarder from the NetworkManager active profile. See cat /var/run/NetworkManager/resolv.conf
and cat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.â cmak.fr
Jun 11 at 8:26
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0
From mount(8) manpage:
_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0
From mount(8) manpage:
_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).
add a comment |Â
up vote
0
down vote
To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0
From mount(8) manpage:
_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).
add a comment |Â
up vote
0
down vote
up vote
0
down vote
To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0
From mount(8) manpage:
_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).
To delay nfs mount until newtork is ready, add _netdev to option in the relevant entry in /etc/fstab. Like:
SERVERURL:/nfstest /home nfs vers=4,proto=tcp,intr,bg,rdirplus,_netdev 0 0
From mount(8) manpage:
_netdev The filesystem resides on a device that requires network access
(used to prevent the system from attempting to mount these filesystems
until the network has been enabled on the system).
answered Jun 11 at 8:52
Soren A
2,8821620
2,8821620
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045532%2fubuntu-18-04-mount-nfs-with-fqdn-not-resolving-address%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
18.04 resolves addresses with systemd-resolved listening on 127.0.0.53:53 (see
netstat -antup
. And resolved get his forwarder from the NetworkManager active profile. Seecat /var/run/NetworkManager/resolv.conf
andcat /var/run/systemd/resolve/resolv.conf
... I guess that dns resolution is not ready when the mount command starts.â cmak.fr
Jun 11 at 8:26