Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autofs assistance needed (/net)

Status
Not open for further replies.

f0rmat

IS-IT--Management
Jun 2, 2004
102
US
I'm having a bit of trouble(and it may be just my ignorance with linux and unix) that's kicking my arse.. but here goes.

In our engineering environment we export 2 file systems to be shared amongst *nix boxes.. /x1 and /x2. With Redhat Advanced server 3 and 4, I've had no problems.. just make sure nis and nfs were configured correctly, have autofs and amd start, and all was well... this isn't the case with SuSE 9 Enterprise Linux.. it's killing me. I have nfs and nis configured correctly(I have to) because I can telnet into the machine, and access my home directory over nis. What I can't do, is get at /net/machinename/x1 (and the exporting of the fs on the other machines isn't the problem) because I can get to the shares from other *nix boxes.

My first question is to find out exactly how /net (auto.net) works.. I'm assuming it doesn't read a map file from the yp server, because for 1.. I haven't noticed any files listing hostnames.. and 2.. it seems like it works through dns(yp) lookups rather than reading from a file, because on any box where hostname resolution wasnt working cd /net/ip address/x1 worked fine.

Second is... does anyone have any suggestions as to where I can look or how I can possibly get this fixed? I did some googling and I found the following(that got it half working) but I couldn't get at certain machines(like our netapp) and the machines I could get to.. if I cd'ed /net/machinename, and did an ls.. I wouldn't see the shares.. but if I then did cd /x1 it was fine and I could get in.

1. Stop the automounter, entering the following command:
/etc/init.d/autofs stop
2. Add the following line to /etc/auto.master :
/net /etc/auto.net.main -rw,intr,timeo=4,retrans=2
3. Create a file /etc/auto.net.main and add the following line to it:
* -fstype=autofs,-Dhost=& file:/etc/auto.net.sub
4. Create a file /etc/auto.net.sub and add the following line to it:
* ${host}:/&
5. Start the automounter, entering the following command:
/etc/init.d/autofs start


any help is most appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top