bind mounts apparently not working
CentOS 5.1, i686, 2.6.18-53.1.13.el5 SMP, autofs-5.0.1-0.rc2.55.el5.3. Fully updated. Two processors. Multi-homed system (3 interfaces, DNS reports all IP/names in both directions). Server is also a NIS master and DNS server.
Automounting of file systems on the server is apparently going through the NFS stack w/o a bind mount:
In /etc/auto.master:
+auto.master
In the NIS auto.master map:
/fs/home auto.home rw,rsize=32768,wsize=32768
In the NIS auto.home map:
username server-fqdn:/local/home/path/&
So, on doing a "cd /fs/home/username", we get an NFS mount:
server-fqdn:/local/home/path/username on /fs/home/username type
nfs (rw,rsize=32768,wsize=32768,addr=one-of-server-IP)
Everything works fine, but doing, for example, a large "make -j2" within /fs/home/username results in several nfsd threads consuming approximately 80% of one CPU, and performance drops through the floor. Autofs not recognizing the server-fqdn as the name corresponding to the primary IP on each interface? Worked properly with autofs4. Thoughts? TIA,
-steve
Ian Kent
maintainerQuoted 5 lines · Steve Thompson
Everything works fine, but doing, for example, a large "make -j2" within /fs/home/username results in several nfsd threads consuming approximately 80% of one CPU, and performance drops through the floor. Autofs not recognizing the server-fqdn as the name corresponding to the primary IP on each interface? Worked properly with autofs4. Thoughts? TIA,
What does "getent <the-ip-address>" return?
Ian
Quoted 9 lines · Ian Kent
Quoted 5 lines · Steve Thompson
Everything works fine, but doing, for example, a large "make -j2" within /fs/home/username results in several nfsd threads consuming approximately 80% of one CPU, and performance drops through the floor. Autofs not recognizing the server-fqdn as the name corresponding to the primary IP on each interface? Worked properly with autofs4. Thoughts? TIA,
What does "getent <the-ip-address>" return?
Aha!
"getent hosts <ip>" returns the FQDN of the server for two of the three IP addresses (the exact same string as the server name in the map), but the FQDN _and_ the unqualified name for the third IP address. This was because of the setup of the NIS hosts map. On removing the NIS hosts map, and using DNS alone, autofs now does bind mounts properly. Interestingly, this NIS hosts map had been like this for a looong time, and I had forgotten about it; it did not cause autofs4 any problems. Thank you!
Steve
Ian Kent
maintainerQuoted 14 lines · Steve Thompson
Quoted 9 lines · Ian Kent
Quoted 5 lines · Steve Thompson
Everything works fine, but doing, for example, a large "make -j2" within /fs/home/username results in several nfsd threads consuming approximately 80% of one CPU, and performance drops through the floor. Autofs not recognizing the server-fqdn as the name corresponding to the primary IP on each interface? Worked properly with autofs4. Thoughts? TIA,
What does "getent <the-ip-address>" return?
Aha!
Quoted 7 lines
"getent hosts <ip>" returns the FQDN of the server for two of the three IP addresses (the exact same string as the server name in the map), but the FQDN _and_ the unqualified name for the third IP address. This was because of the setup of the NIS hosts map. On removing the NIS hosts map, and using DNS alone, autofs now does bind mounts properly. Interestingly, this NIS hosts map had been like this for a looong time, and I had forgotten about it; it did not cause autofs4 any problems. Thank you!
That's because v4 doesn't check the each interface to determine if the hostname is really local.
Ian
Quoted 18 lines · Ian Kent
Quoted 7 lines · Steve Thompson
Quoted 6 lines · Ian Kent
Quoted 5 lines · Steve Thompson
Everything works fine, but doing, for example, a large "make -j2" within /fs/home/username results in several nfsd threads consuming approximately 80% of one CPU, and performance drops through the floor. Autofs not recognizing the server-fqdn as the name corresponding to the primary IP on each interface? Worked properly with autofs4. Thoughts? TIA,
Quoted 8 lines
Quoted 1 line
What does "getent <the-ip-address>" return?
"getent hosts <ip>" returns the FQDN of the server for two of the three IP addresses (the exact same string as the server name in the map), but the FQDN _and_ the unqualified name for the third IP address. This was because of the setup of the NIS hosts map. On removing the NIS hosts map, and using DNS alone, autofs now does bind mounts properly. Interestingly, this NIS hosts map had been like this for a looong time, and I had forgotten about it; it did not cause autofs4 any problems. Thank you!
Quoted 2 lines
That's because v4 doesn't check the each interface to determine if the hostname is really local.
Let me follow up on this a little more. The NFS server (and client) has three network interfaces, with IP addresses (say) 192.168.1.1, 192.168.2.1 and 192.168.3.1 (netmask 255.255.255.0 for each subnet). The server's FQDN is foo.domain.org. Then what I actually had was:
# getent hosts 192.168.1.1 192.168.1.1 foo.domain.org
# getent hosts 192.168.2.1 192.168.2.1 foo.domain.org
# getent hosts 192.168.3.1 192.168.3.1 foo.domain.org foo
The third of these is apparently sufficient to stop autofs5 from doing a bind mount. After removing the short name "foo" from the third entry, it works. This doesn't seem right; after all, the FQDN of the server does match one of the names for each of the entries. The NFS server name is the map is "foo.domain.org". Or is that right after all?
Steve
Ian Kent
maintainerQuoted 18 lines · Steve Thompson
Quoted 3 lines
That's because v4 doesn't check the each interface to determine if the hostname is really local.
Let me follow up on this a little more. The NFS server (and client) has three network interfaces, with IP addresses (say) 192.168.1.1, 192.168.2.1 and 192.168.3.1 (netmask 255.255.255.0 for each subnet). The server's FQDN is foo.domain.org. Then what I actually had was:
(quoted diff) +0
-0# getent hosts 192.168.1.1 192.168.1.1 foo.domain.org # getent hosts 192.168.2.1 192.168.2.1 foo.domain.org # getent hosts 192.168.3.1 192.168.3.1 foo.domain.org foo
Quoted 5 lines
The third of these is apparently sufficient to stop autofs5 from doing a bind mount. After removing the short name "foo" from the third entry, it works. This doesn't seem right; after all, the FQDN of the server does match one of the names for each of the entries. The NFS server name is the map is "foo.domain.org". Or is that right after all?
This should work OK.
I'll check it out.
At least you have a workaround, for now.
Ian