RHEL6 server autofs automatic mounting Service

Source: Internet
Author: User
The automatic mounting of autofs commands involves services haldaemon and messagebus. Ensure that the two services are enabled. * ** How do I configure the/share/soft and/share/iso directories on the client 10.10.10.10.10 to automatically mount the server 10.10.10.254? * ***** The shared share directory has been configured on the 10.10.10.254 server. If it is not configured, you can refer to the previous nfs configuration *** to configure it on the client 10 computer.

Auto mount autofs command
Services haldaemon and messagebus are involved. Ensure that the two services are enabled.
* ** How do I configure the/share/soft and/share/iso directories on the client 10.10.10.10.10 to automatically mount the server 10.10.10.254?
* ***** The shared share directory has been configured on the 10.10.10.254 server. If not configured, refer to the previous nfs configuration ****
Configure on client 10
1. mkdir/share

2. vim/etc/auto. master
/Share
/Etc/auto. share -- the auto. share file after it does not exist and its name is customized.

3. # vim/etc/auto. share -- create a custom file.
Soft-172.16.2.35:/share/soft
Iso-172.16.2.35:/share/iso

4./etc/init. d/autofs restart -- the service can be restarted as long as it is enabled (if not, restart and try again)
Chkconfig autofs on
-- The mounted directory cannot be seen by default by using the ls command under the/share directory, but can be included in cd/share/iso. This will automatically mount the directory for you.
In about five minutes, if it is not used, it will automatically umount out.

Related reading:

Autofs + NFS + NIS smart Mount http://www.linuxidc.com//Linux/2012-10/73012.htm

CIFS automatically mounts http://www.linuxidc.com//Linux/2012-10/71794.htm via autofs

Use autofs in Ubuntu to automatically load the Virtual Box data space http://www.linuxidc.com//Linux/2011-12/48832.htm

RHCE certification coaching: RHEL 6 easy to build autofs service http://www.linuxidc.com//Linux/2011-10/45581.htm

RHCE certification tutoring: RH133-2 nis + autofs http://www.linuxidc.com//Linux/2011-04/35248.htm

Http://www.linuxidc.com//Linux/2010-07/27246.htm of nis + nfs + autofs Based on RHCE

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.