if you have hosts with multiple interfaces and access can come thru any of them, do you have to have an entry for each interface in the exports file?
/vol/vol0/home -root=host1-e0:host2-e0 /vol/vol0/home -root=host1-e1:host2-e1 etc...
host1 and host2 in dns has multiple entries.
the root restriction matches the ip num of the host trying to mount to the ip num of the host shown in the exports file?
otherwise do you show up as nobody, nogroup?
thanks. --
To answer your question, Yes. You have the syntax wrong though. It should be
/vol/vol0/home -root=host1-e0:host2-e0:host1-e1:host2-e1 ...
Otherwise, as you wrote it, home would be exported only to host1-e1 and host2-e1. Network traffic, like water, always seek the path of least resistance. So if one of your interfaces on the root trusted hosts is on the same subnet as the file server, then this will be the preferred path to your data. I would, however, continue to enter both interfaces to avoid unforeseen problems.
-gdg
neil lehrer wrote:
if you have hosts with multiple interfaces and access can come thru any of them, do you have to have an entry for each interface in the exports file?
/vol/vol0/home -root=host1-e0:host2-e0 /vol/vol0/home -root=host1-e1:host2-e1 etc...
host1 and host2 in dns has multiple entries.
the root restriction matches the ip num of the host trying to mount to the ip num of the host shown in the exports file?
I will refer you to Managing NFS and NIS, Second Edition, O'Reilly 2001, Chapter 7. There you will find the fundamentals of the NFS protocol.
otherwise do you show up as nobody, nogroup?
thanks.
On Thu, 7 Feb 2002, Mr. G. D. Geen wrote:
To answer your question, Yes. You have the syntax wrong though. It should be
/vol/vol0/home -root=host1-e0:host2-e0:host1-e1:host2-e1 ...
Otherwise, as you wrote it, home would be exported only to host1-e1 and host2-e1. Network traffic, like water, always seek the path of least resistance. So if one of your interfaces on the root trusted hosts is on the same subnet as the file server, then this will be the preferred path to your data. I would, however, continue to enter both interfaces to avoid unforeseen problems.
There's a nifty trick you can use to save yourself some typing, if you're running NIS. Define a netgroup for your multi-homed hosts:
host1-all (host1-e0,,) (host1-e1,,) (host1-e2,,)
Then export to the netgroup on the filer:
/vol/vol0/home -access=host1-all:host2:etc
Then if you add or remove interfaces from host1 you just push the updated netgroup map, and you don't need to tinker with the filer again. Note that you can't use netgroups in the '-root=blah' definition, but you can for the -access, -ro or -rw options; I guess that's a historical restriction that sticks around for performance reasons, or some vague nod toward security? We generally put our "trusted hosts" on a single internal administrative subnet, so that isn't much of an issue.
Anyway, if you've got some hosts with large numbers of interfaces this is a huge time saver. Right, Marion? :-)
Cheers,
-- Chris
-- Chris Lamb, Unix Guy MeasureCast, Inc. 503-241-1469 x247 skeezics@measurecast.com