RHEL7: Configure systems to mount 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:

# systemctl start rpcbind

Install the Automounter package:

# yum install -y autofs

Let’s assume that the /home/tools directory is exported by the nfsserver server.
If no working DNS, 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:

# systemctl start autofs

Test the configuration:

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

Leave a Reply

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 10 minutes.
Set up a default configuration HTTP server with SELinux in Enforcing mode and active firewalld configuration.

RHCE7: Task of the day

Allowed time: 3 minutes.
Configure your machine to be a router.

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 ...