Skip to contentSkip to conversation

automounting other hosts on the network

DISCUSSION Pranay C. Tembhekar 2 participants 3 messages Mar 9, 2004 – Mar 10, 2004 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hi Everybody,
I want little bit help. I've installed Red Hat Linux 8.0 &
configured it as a NFS & NIS server. I also installed Red Hat Linux 8.0 on other system as a NIS client. Now I want to automount the hosts. E.g. /hosts/<systemname>/home. I have exported the /home from server. How can I achieve this in red hat linux. In solaris I can specify "/hosts -hosts <options" in auto_master. But what's the procedure to do this in red hat linux? thanx in advance,

Signature · 11 lines
Pranay C. Tembhekar
Systems & Network Administrator
Matrix CFD Solutions (I) Pvt. Ltd./ANSYS India Ltd.
Phone: +91-20-24226160 x 16
Fax:   +91-20-24228081 x 20
Cell:  +91-98-22373121
http://www.icemcfd.co.in
http://www.ansys.com

Disclaimer:
The information transmitted is intended only for the person or  entity to which it is addressed and may contain confidential and/or  privileged material. Any review, retransmission, dissemination or  other use of, or taking of any action in reliance upon, this  information by persons or entities other than the intended recipient  is prohibited. If you received this in error, please contact the  sender and delete the material from any computer.
#1 lore raw
Quoted 8 lines · Pranay C. Tembhekar

Hi Everybody,
I want little bit help. I've installed Red Hat Linux 8.0 &
configured it as a NFS & NIS server. I also installed Red Hat Linux 8.0 on other system as a NIS client. Now I want to automount the hosts. E.g. /hosts/<systemname>/home. I have exported the /home from server. How can I achieve this in red hat linux. In solaris I can specify "/hosts -hosts <options" in auto_master. But what's the procedure to do this in red hat linux?

Use autofs4 (ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/). Grab the latest src.rpm and rebuild it. You will probably have to make autofs start after NIS. In the spec file, I have:
# chkconfig: 345 61 19

Also, make sure you have 'alias autofs autofs4' in /etc/modules.conf, and remove the autofs3 module (service autofs stop;rmmod autofs). I usually put these in the RPM file, but I haven't downloaded the latest to see if this is already in it.

Once you rebuild the src.rpm file, install it and start it. Instead of /hosts, you will use /net, and you may want to add nonstrict to the opts line in /etc/auto.net (if it isn't already).

If you have problems, return with your errors.

Forrest

#2 lore raw

thanx Taylor I'll try it today & let u know about the success & or errors...!!!

thanx again

Quoted 30 lines · ForrestX
Quoted 5 lines · Pranay C. Tembhekar

Hi Everybody,
I want little bit help. I've installed Red Hat Linux 8.0 &
configured it as a NFS & NIS server. I also installed Red Hat Linux 8.0 on other system as a NIS client. Now I want to automount the hosts. E.g. /hosts/<systemname>/home. I have exported the /home from server. How can I achieve this in red hat linux. In solaris I can specify "/hosts -hosts <options" in auto_master. But what's the procedure to do this in red hat linux?

Use autofs4 (ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/). Grab the latest src.rpm and rebuild it. You will probably have to make autofs start after NIS. In the spec file, I have:
# chkconfig: 345 61 19

Also, make sure you have 'alias autofs autofs4' in /etc/modules.conf, and remove the autofs3 module (service autofs stop;rmmod autofs). I usually put these in the RPM file, but I haven't downloaded the latest to see if this is already in it.

Once you rebuild the src.rpm file, install it and start it. Instead of /hosts, you will use /net, and you may want to add nonstrict to the opts line in /etc/auto.net (if it isn't already).

If you have problems, return with your errors.

Forrest

Signature · 11 lines
Pranay C. Tembhekar
Systems & Network Administrator
Matrix CFD Solutions (I) Pvt. Ltd./ANSYS India Ltd.
Phone: +91-20-24226160 x 16
Fax:   +91-20-24228081 x 20
Cell:  +91-98-22373121
http://www.icemcfd.co.in
http://www.ansys.com

Disclaimer:
The information transmitted is intended only for the person or  entity to which it is addressed and may contain confidential and/or  privileged material. Any review, retransmission, dissemination or  other use of, or taking of any action in reliance upon, this  information by persons or entities other than the intended recipient  is prohibited. If you received this in error, please contact the  sender and delete the material from any computer.

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs