exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 59 discussion

Actual exam question from RedHat's EX200
Question #: 59
Topic #: 1
[All EX200 Questions]

SIMULATION -
/data Directory is shared from the server1.example.com server. Mount the shared directory that:

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
1. vi /etc/auto.master
/mnt /etc /auto.misc --timeout=50
vi /etc/auto.misc
data -rw,soft,intr server1.example.com:/data
service autofs restart
chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
adolfoale
Highly Voted 3 years, 10 months ago
In RHEL8 and because de request is not with autofs, we can proceed in this way: # mount server1.example.com server:/data /mnt
upvoted 8 times
kitkat
2 years, 5 months ago
One rule for the exam is that all changes we are making should survive reboot. Which is why autofs would be a good option.
upvoted 2 times
...
...
kitkat
Highly Voted 2 years, 5 months ago
yum -y install nfs-utils showmount -e server1 mkdir -p /mnt/data sudo mount -t nfs server1.example.com:/data /mnt/data echo 'server1.example.com:/data /mnt/data nfs defaults 0 0' >> /etc/fstab
upvoted 5 times
...
Lazylinux
Most Recent 3 months, 2 weeks ago
Regarding the comments made in some posts=> which one to use static NFS mount (edit fstab) or autofs, well it is matter of preference but here points to keep in mind • It is RHCSA exam and it clearly emphasizes on autofs • Static NFS mount are manual and editing the fstab means prone to errors and hence there is good chance the system will NOT boot and also server1 where the share is hosted may be offline or network issue then you will need to go into emergency mode to repair that [reedit the fstab], even if boots will take long time to do so • You don’t need to create any directory on server2 using autofs, where as with static NFS mount you will need to create one like /mnt/Data etc in advance hence more effort involved, plus you need to set the correct permissions • Autofs onces configured correctly it works like Gem and hence Redhat emphasizing on it follow below
upvoted 1 times
...
kenkct
2 years, 9 months ago
Server1 assume /data already share from server1.example.com, otherwise #echo '/data *(rw)' >> /etc/exports #exportfs -a Server2 #systemctl enable --now nfs-server #mkdir /mnt/shared #mount -t nfs server1.example.com:/data mnt/shared
upvoted 1 times
...
kysj
2 years, 9 months ago
At server1: # yum install -y nfs-utils # systemctl enable --now nfs-server # echo “/data server2(rw)” >> /etc/exports # exportfs -av At server2: #mount -o rw,sync server1.example.com:/data /mnt #df -h /mnt
upvoted 1 times
...
sugisho
3 years, 4 months ago
Is it should install cif-utils,or nfs-utils?
upvoted 1 times
...
sugisho
3 years, 4 months ago
mount server1.example.com:/data /mnt
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...