Configure AutoFS To Auto Mount The File-System (NFS Share) in Linux (RHEL 7) | On Demand Mounting
Automount (AutoFS) NFS share using autofs in Linux:
===========================================
Autofs is a service in Linux like operating system which automatically mounts the file system and remote shares when it is accessed.
Main advantage of autofs is that you don’t need to mount file system at all time, file system is only mounted when it is in demand.
Server Configuration (192.168.1.109):
------------------------------------------------------------
# yum repolist
Configure YUM in RHEL 7:
https://www.youtube.com/watch?v=-N09WSCNcso
# yum install -y nfs*
# mkdir /public
# mkdir /private
# chmod 777 /public
# touch /public/calpublic.txt
# chmod 777 /private
# touch /private/calprivate.txt
# vim /etc/exports
/public 192.168.1.110(ro,sync)
/private 192.168.1.110(rw,sync)
# exportfs -arvf
# firewall-cmd --permanent --add-service=nfs
# firewall-cmd --permanent --add-service=rpc-bind
# firewall-cmd --permanent --add-service=mountd
# firewall-cmd --reload
# systemctl start nfs-server
# systemctl enable nfs-server
# systemctl status nfs-server
# systemctl start rpcbind
# systemctl enable rpcbind
------------------------------------------
Client Configuration (192.168.1.110):
# yum repolist
# yum install autofs -y
# rpm -qi autofs
# mkdir /automount
# mkdir -p /automount/private
# mkdir -p /automount/public
# vim /etc/auto.master
/automount /etc/automount.txt --timeout=60
# vim /etc/automount.txt
public -ro,sync 192.168.1.109:/public
private -rw,sync 192.168.1.109:/private
# systemctl start autofs
# systemctl enable autofs
# systemctl status autofs
# systemctl start rpcbind
# systemctl enable rpcbind
----------------------------------
Test AutoFS:
Login on Client Machine and check the mount point details, here you won't see any NFS Share.
# df -hT
# cd /automount/
# cd private
Again Check the mount point details, here you will see the private NFS Share.
# df -hT
# cd .. ; cd public
Again Check the mount point details, here you will see the public NFS Share.
# df -hT
Now go inside both the directories one by one & try to create and remove some files, here you will find that only RW filesystem allows you to do that not the RO Filesystem.
Now come out of NFS Shares and wait for more than one min, again \ Check the mount point details, here you won't see any NFS Share.
Beacuse both NFS shares got unmounted automatically themself due to AutoFS Service.
You are done.
================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications.
===============
Our Some Popular Videos:
NAVIC:
https://www.youtube.com/watch?v=QoyQbmU2kg4
Learn Linux Fundamentals:
https://www.youtube.com/watch?v=9pqvIqIF_KI
Concept of All RAID Levels:
https://www.youtube.com/watch?v=VRx0copTNr8
Configure RAID-0 in Linux:
https://www.youtube.com/watch?v=5tTHGbSqSKA
Configure RAID-1 in Linux:
https://www.youtube.com/watch?v=x12pMJpGGmw
Configure RAID-5 in Linux:
https://www.youtube.com/watch?v=Cj-je1RUJgo
Configure RAID-6 in Linux:
https://www.youtube.com/watch?v=qeKLlrZ5fLg
Configure RAID-10 in Linux:
https://www.youtube.com/watch?v=DLVGj_Mu1DA
LVM Snapshot:
https://www.youtube.com/watch?v=CJJwbnFuM5A
====================================================
Contact Us:
To Follow Vikas Nehra's Twitter Handle:👇
http://bit.ly/VikasNehraTwitterHandle
For Registration:👇
http://bit.ly/NehraClassesRegForm
To Follow Our Twitter Handle:👇
http://bit.ly/NehraClassesTwiiterHandle
To Visit Our Facebook Page:👇
www.facebook.com/nehraclasses
To Follow Nehra Classes on Instagram:👇
https://www.instagram.com/nehraclasses/
To Our Visit Our Webpage:👇
http://bit.ly/NehraClassesWebpage
Join Us on Telegram App: 👇
https://t.me/NehraClasses
WhatsApp Us: 👇
https://bit.ly/2Kpqp5z
Email Us:👇
Email: nehraclasses@gmail.com
============
©COPYRIGHT. ALL RIGHTS RESERVED.
Видео Configure AutoFS To Auto Mount The File-System (NFS Share) in Linux (RHEL 7) | On Demand Mounting канала Nehra Classes
===========================================
Autofs is a service in Linux like operating system which automatically mounts the file system and remote shares when it is accessed.
Main advantage of autofs is that you don’t need to mount file system at all time, file system is only mounted when it is in demand.
Server Configuration (192.168.1.109):
------------------------------------------------------------
# yum repolist
Configure YUM in RHEL 7:
https://www.youtube.com/watch?v=-N09WSCNcso
# yum install -y nfs*
# mkdir /public
# mkdir /private
# chmod 777 /public
# touch /public/calpublic.txt
# chmod 777 /private
# touch /private/calprivate.txt
# vim /etc/exports
/public 192.168.1.110(ro,sync)
/private 192.168.1.110(rw,sync)
# exportfs -arvf
# firewall-cmd --permanent --add-service=nfs
# firewall-cmd --permanent --add-service=rpc-bind
# firewall-cmd --permanent --add-service=mountd
# firewall-cmd --reload
# systemctl start nfs-server
# systemctl enable nfs-server
# systemctl status nfs-server
# systemctl start rpcbind
# systemctl enable rpcbind
------------------------------------------
Client Configuration (192.168.1.110):
# yum repolist
# yum install autofs -y
# rpm -qi autofs
# mkdir /automount
# mkdir -p /automount/private
# mkdir -p /automount/public
# vim /etc/auto.master
/automount /etc/automount.txt --timeout=60
# vim /etc/automount.txt
public -ro,sync 192.168.1.109:/public
private -rw,sync 192.168.1.109:/private
# systemctl start autofs
# systemctl enable autofs
# systemctl status autofs
# systemctl start rpcbind
# systemctl enable rpcbind
----------------------------------
Test AutoFS:
Login on Client Machine and check the mount point details, here you won't see any NFS Share.
# df -hT
# cd /automount/
# cd private
Again Check the mount point details, here you will see the private NFS Share.
# df -hT
# cd .. ; cd public
Again Check the mount point details, here you will see the public NFS Share.
# df -hT
Now go inside both the directories one by one & try to create and remove some files, here you will find that only RW filesystem allows you to do that not the RO Filesystem.
Now come out of NFS Shares and wait for more than one min, again \ Check the mount point details, here you won't see any NFS Share.
Beacuse both NFS shares got unmounted automatically themself due to AutoFS Service.
You are done.
================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications.
===============
Our Some Popular Videos:
NAVIC:
https://www.youtube.com/watch?v=QoyQbmU2kg4
Learn Linux Fundamentals:
https://www.youtube.com/watch?v=9pqvIqIF_KI
Concept of All RAID Levels:
https://www.youtube.com/watch?v=VRx0copTNr8
Configure RAID-0 in Linux:
https://www.youtube.com/watch?v=5tTHGbSqSKA
Configure RAID-1 in Linux:
https://www.youtube.com/watch?v=x12pMJpGGmw
Configure RAID-5 in Linux:
https://www.youtube.com/watch?v=Cj-je1RUJgo
Configure RAID-6 in Linux:
https://www.youtube.com/watch?v=qeKLlrZ5fLg
Configure RAID-10 in Linux:
https://www.youtube.com/watch?v=DLVGj_Mu1DA
LVM Snapshot:
https://www.youtube.com/watch?v=CJJwbnFuM5A
====================================================
Contact Us:
To Follow Vikas Nehra's Twitter Handle:👇
http://bit.ly/VikasNehraTwitterHandle
For Registration:👇
http://bit.ly/NehraClassesRegForm
To Follow Our Twitter Handle:👇
http://bit.ly/NehraClassesTwiiterHandle
To Visit Our Facebook Page:👇
www.facebook.com/nehraclasses
To Follow Nehra Classes on Instagram:👇
https://www.instagram.com/nehraclasses/
To Our Visit Our Webpage:👇
http://bit.ly/NehraClassesWebpage
Join Us on Telegram App: 👇
https://t.me/NehraClasses
WhatsApp Us: 👇
https://bit.ly/2Kpqp5z
Email Us:👇
Email: nehraclasses@gmail.com
============
©COPYRIGHT. ALL RIGHTS RESERVED.
Видео Configure AutoFS To Auto Mount The File-System (NFS Share) in Linux (RHEL 7) | On Demand Mounting канала Nehra Classes
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![RHCSA 8 (EX 200) Certification Exam Paper Solution 2021 | Complete Video | Nehra Classes](https://i.ytimg.com/vi/mkW2UefXEvI/default.jpg)
![Configure LDAP and Autofs for Login Authentication and Home Directory Mapping](https://i.ytimg.com/vi/M52cBQA-xfA/default.jpg)
![Configure NFS Server in RHEL 8 | NFS4 Configuration in Linux in Hindi | Nehra Classes](https://i.ytimg.com/vi/XIKJMxczjuE/default.jpg)
![](https://i.ytimg.com/vi/mXsNfoXJqDU/default.jpg)
![Configure AutoFS to automount the file systems on demand in Linux - Step by Step Procedure](https://i.ytimg.com/vi/rUnQ_AJOAVo/default.jpg)
![Linux File System/Structure Explained!](https://i.ytimg.com/vi/HbgzrKJvDRw/default.jpg)
![configure Autofs or Automounter in rhel8.](https://i.ytimg.com/vi/-cKYBbw5lSw/default.jpg)
![Linux Interview Questions And Answers | Linux Admin Interview Questions | Intellipaat](https://i.ytimg.com/vi/oT-n576S0VQ/default.jpg)
![NFS Server Installation and Configuration RHEL7 RHCE Tech Arkit](https://i.ytimg.com/vi/CE_xjL_7IqA/default.jpg)
![Linux Server Course - System Configuration and Operation](https://i.ytimg.com/vi/WMy3OzvBWc0/default.jpg)
![how to configure samba server with auto mounting (autofs) in Centos 7 , Redhat 7](https://i.ytimg.com/vi/_WlkfEIE-M8/default.jpg)
![Check & Repair Different Filesystems in Linux | Ext2, Ext3, Ext4, XFS, ZFS Repair in Linux](https://i.ytimg.com/vi/aEa4gyabzzs/default.jpg)
![How to Share Files Using NFS: Linux Server Training 101](https://i.ytimg.com/vi/c3dL0ULEH-s/default.jpg)
![RHCSA RHEL 8 - Using AutoFS with NFS](https://i.ytimg.com/vi/yS9C5k1Jc5Y/default.jpg)
![Disk Partitioning in Linux || Adding Disks, Partitions & File systems || RHEL7/CentOS7](https://i.ytimg.com/vi/cP1TqdOJNj8/default.jpg)
![NFS Server Configuration In Telugu | NFS share Configuration in centOS | Linux In telugu](https://i.ytimg.com/vi/XQldsuSYNhA/default.jpg)
![Tutorial: Setup OpenLDAP and configure clients](https://i.ytimg.com/vi/p857CNi60LM/default.jpg)
![How to configure NFS-Server & NFS Client using Manually Mounting,fstab file and Autofs](https://i.ytimg.com/vi/LdUo2Ox_g6U/default.jpg)
![RHCSA Tip of the Week - Autofs](https://i.ytimg.com/vi/tAgffQDN7Pk/default.jpg)
![RHCSA RHEL 8 - Practice Exam - Questions 1-6](https://i.ytimg.com/vi/j1bEMJTeYSE/default.jpg)