Vous êtes sur la page 1sur 4

My Solutions: Autofs Configuration in RHEL 6 http://sumersinghtanwar9.blogspot.in/2015/09/autofs-configuration-in-rhel...

4 More Next Blog Create Blog Sign In

Best

My Solutions Deals,
Coupons
for Online
Shopping
Microsoft Exchange Server Linux Ms-Office VALID COUPON |
UPTO 75% OFF |
SHOP SMART & S
AVE BIG

www.desidime.com

1 of 4 2/14/2017 5:00 PM
My Solutions: Autofs Configuration in RHEL 6 http://sumersinghtanwar9.blogspot.in/2015/09/autofs-configuration-in-rhel...

Aufofs Practical Video :-


Best
Deals,
Coupons
for Online
Shopping
VALID COUPON |
UPTO 75% OFF |
SHOP SMART & S
AVE BIG

Autofs step by step con iguration :-

Step 1:- Configure the NIC (Network Interface Card).


Execute the following command to configure NIC.

#setup

Step 2:- Restart the Network Service by executing the following command.
www.desidime.com
#service network restart

Step 3:- Then check your NIC Configuration with the help of following command.

# Ifconfig

Step 4:- In the next step we need to install autofs packages on our RHEL 6 machines. We can
install it via yum (Red Hat Linux) and apt-get (Debian and Ubuntu) package installers.

To install autofs packages using yum in RHEL 6 execute following command it: -

# yum install autofs

To install autofs packages using apt-get in Debian or Ubuntu execute following command it: -

#apt-get install autofs

Step 5:- In this step you have to verify that autofs packages are installed.

To verify the autofs package execute the following command:-

#rpm qa autofs

Step 6:- In the next step, create a new auto mount directory to mount the share on the Remote Host
and named it whatever you want, you can also use an already existing directory with Autofs.

To create a new directory executes the following command:-

#mkdir /myshare

Step 7:- Execute the following command to display the share list of NFS Server.

#showmount e <server-ip-address >

In our example, the server ip address is - 172.18.209.9.

So the command will be looks like this:-

#showmount e 172.18.209.9

Step 8:- In the next step edit /etc/auto.master file and add the map entry to it.

The Syntax of map entry is shown below:-

Mount_point Map_name Options

Example:-

/myshare /etc/auto.myshare --timeout=20

Step 9:- Now copy the map file /etc/auto.misc as /etc/auto.myshare else create it.

To copy the map file /etc/auto.misc as /etc/auto.myshare use the following command:-

#cp /etc/auto.misc /etc/auto.myshare

Or to create a new map file, execute the following command:-

#vim /etc/auto.myshare

Step 10:- In the next step add a mount point entry (also called map entry) to map file, which you have
created in the previous step.

The Syntax of map entry is shown below:-

Mount_point [options] Location

Example:-

share1 -fstype=nfs 172.18.209.9:/nfsshare1

2 of 4 2/14/2017 5:00 PM
My Solutions: Autofs Configuration in RHEL 6 http://sumersinghtanwar9.blogspot.in/2015/09/autofs-configuration-in-rhel...

Step 11:- In the last step execute the following command to start, restart or reload the autofs daemon.

To start the autofs daemon, execute the following command:-


Best
Deals,
#service autofs start Coupons
To restart the autofs daemon, execute the following command:- for Online
Shopping
#service autofs restart VALID COUPON |
UPTO 75% OFF |
To check the status of autofs daemon, execute the following command:- SHOP SMART & S
AVE BIG
#service autofs status

To reload the autofs daemon, execute the following command:-

#service autofs reload

POSTED BY MY SOLUTIONS at 01:04


+4 Recommend this on Google

LABELS RHEL 6

6 comments

www.desidime.com
Add a comment

Top comments

MY SOLUTIONS shared this 1 year ago - Youtube promote your Video (Promote Your Channel)

MY SOLUTIONS 1 year ago


Autofs Con"guration in RHEL 6

MY SOLUTIONS via Google+ 1 year ago - Shared publicly



Autofs Con guration in RHEL 6
Autofs Con"guration in RHEL 6

Reply

Bhanu Pratap 2 months ago - Shared publicly


very usefull

Reply

raju yadav 1 year ago - Shared publicly


Thank u for providing these topic..Neat step by step
explanation

+1 Reply
2

Easy 4u shared this 1 year ago - Red Hat Certi"ed Security Specialist (RHCSS) (Discussion)

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Locations Download Pdf Download the pdf Active Commandes Component


Configuration File Directory Displays Drawback Locations Download Pdf

3 of 4 2/14/2017 5:00 PM
My Solutions: Autofs Configuration in RHEL 6 http://sumersinghtanwar9.blogspot.in/2015/09/autofs-configuration-in-rhel...

Best
Deals,
Powered by Blogger.
Coupons
for Online
Shopping
VALID COUPON |
UPTO 75% OFF |
SHOP SMART & S
AVE BIG

www.desidime.com

4 of 4 2/14/2017 5:00 PM