Cross-platform file sharing in NIS

From: Sun Manager (sunfired@gmail.com)
Date: Thu Feb 15 2007 - 03:49:57 EST


Hello fellow managers,

I am trapped in a kind of hole trying to figure out how best to accomplish
the task of sharing different binaries across different OS platforms from a
single location and at the same time provide for a fail-over of this shared
space using autofs in a NIS environment. I am afraid this post is going to
be long trying to best explain my situation. I searched high and low for an
answer but could not find any that had my particular situation.

All our servers, so far have been SPARC machines running Solaris 9. So there
has been no need think about cross platform so far. However we will soon be
procuring X64 Servers that run Solaris 10 and I plan to put them in the same
domain as the other SPARC machines. Currently we have a shared partition
containing public domain tools (binaries) that are compiled and hosted from
a SPARC server in the network. This partition is mounted using a direct map
under the name /netopt and this is a read-only file system because it is
maintained as a fail-over partition. Its clone resides on another nfs
server, another SPARC. Whenever a new tool is compiled, I login locally on
the nfs server and compile and install the tool. The clone machine copies
everthing over in a minute and the tool become available in the NIS domain.
The problem with this arrangement will surface when the X64 servers are
added to the network. Then, even though there is a way in NIS to use Map
Variables to access platform specific binaries in /netopt, there seems to be
no way I can compile and install platform specific binaries into /netopt
because of the read-only filesystem requirement for fail-over. I don't want
to use the cross-compiling features of gcc. What I thought instead was to
have one of the X64 servers to serve X64 binaries under the same /netopt
mountpoint. This way I can login to the X64 host to compile and install new
tools but I can't see a way to make the auto_direct map to conditionally
serve up the tools from either platform in accordance to where the requests
originates from. To clarify:

For example:
if
binaries in sparc resides in <sparc host>:/usr2/netopt
and binaries in x64 resides in <x64 host>:/usr2/netopt
are mapped directly to /netopt

and if a user on x64 types the command:
cd /netopt

is there a way to configure auto_direct maps to see that the request is
coming from a X64 client and hence to mount /netopt from the <X64 host>

I hope my problem is clearly stated. I appreciate your response and insight
into solving this issue once and for all.

Thanks
SF
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:38 EDT