SYS: Configure systems to mount ext4, LUKS-encrypted, and network file systems automatically.

Share this link

To mount and unmount NFS network file systems with the Automounter, you need to set up a NFS server.

Install the NFS client package:

# yum install -y nfs-utils

Start the rpcbind daemon:

# service rpcbind start

Install the Automounter package:

# yum install -y autofs

Let’s assume that the /home/tools directory is exported by the nfsserver server.
Add an entry in the /etc/hosts file with the nfsserver name and its IP address.

Edit the /etc/auto.master file and, at the beginning, add the following line:

/- /etc/auto.tools

Create the /etc/auto.tools file and add the following line:

/home/tools -rw,soft,intr nfsserver.example.com:/home/tools

Start the Automounter daemon:

# service autofs start

Test the configuration:

# cd /home/tools
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 10 minutes.
Create an EXT4 file system mounted by UUID in /etc/fstab under /vol based on a logical volume of 28 logical extents.

RHCE7: Task of the day

Allowed time: 15 minutes.
Configure a Samba server called MYSERVER, belonging to the MYGROUP group, sharing the /shared directory with the name "shared".

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...