Our small office is running a Linux network using Fedora2/RH9 clients. We use NIS, AMD, and NFS. We use AMD to mount home directories and server directories to a local directory, and this goes through /net. It works just fine.
We now have a need to install Novell Linux Desktop (NLD/SuSE) and are running into some major issues trying to mount what we need to.
To start, NLD does not have amd. I downloaded and installed am-utils, after having to install gcc, make, yacc, and flex. It did not put amd into /etc/init.d, nor did it put the binary for amd in the place I usually see it on other systems (both NLD and RH9). I am using our amd.conf file which defines all the necessary info/mount points. If I issue the 'amq -m' command, it shows the map points, and no error messages. However trying to cd to the mount points it gives 'directory could not be found' errors.
As for YP, after a little bit of configuration I got it to work just fine. I can ypcat the amd.home, passwd, group, etc files from the NIS server.
NFS seems to be a possible (or at least partial) cause of the problem. At startup I get a "services skipped in runlevel 5: nfs" .. If I try to start nfs manually, I get the message: Import Net File System (NFS) -- unused. The only way I've been able to get NFS started is by manually setting up a mount with the NFS Client in YaST. Even when NFS is running though, as well as AMD and NIS, the /net folder sees nothing.
None of this may make sense, so I'll try to get a bit more in-depth:
The NIS server is <nis server>
The Suse box I'm on is <suse box>
The file server I need to mount to <fileserver>
The red hat box I have that works fine is <redhat>
Here is the amd.conf file located in /etc/ on both <redhat> and <suse box>
Code:
[ global ]
normalize_hostnames = no
print_pid = yes
pid_file = /var/run/amd.pid
restart_mounts = yes
auto_dir = /.automount
log_file = /var/log/amd
#log_file = syslog
log_options = all
#debug_options = all
plock = no
selectors_on_default = yes
print_version = no
# set map_type to "nis" for NIS maps, or comment it out to search for all
# types
map_type = nis
search_path = /etc
browsable_dirs = no
show_statfs_entries = no
fully_qualified_hosts = no
cache_duration = 300
# DEFINE AN AMD MOUNT POINT
[ /net ]
map_name = amd.net
map_type = file
[ /home ]
map_name = amd.home
map_type = nis
[ /projects ]
map_name = amd.projects
map_type = nis
On <redhat> the directories /projects and /home mount just fine, and I can cd to the directories defined in amd.home and amd.projects.
Now, amd.home and amd.projects reside on <nis server>.
Here is the amd.home file:
Code:
<user> host==<redhat>;type:=link;fs:=/local/home/<user> \ host!=<redhat>;type:=link;fs:=/net/<redhat>/local/home/<user>
Here is the amd.projects file
Code:
<path1> host==<fileserver>;type:=link;fs:=/raid/<dir1> \ host!=<fileserver>;type:=link;fs:=/net/<fileserver>/raid/<dir1>
So as you can see, amd mounts /projects and /home via /net. The problem is, regardless of having NIS, NFS, and AMD running, I cannot access anything under /net.
If I am on <redhat>, I can go to /net and cd to <path1> just fine.
If I am on <suse box>, I can go to /net, but I cannot cd to any path (including <path1>)
I got this to work momentarily yesterday, but it quit working after I rebooted, and I ended up reinstalling SuSE again today.
I'm really pretty stumped right now, can anyone offer me any help/suggestions? Thanks in advance.