Question: PART - A PART - A: NFS 1 . Configure Montreal as NFS server with / nfsexp as the nfs shared directory, create at least

PART-A PART-A: NFS
1. Configure Montreal as NFS server with /nfsexp as the nfs shared directory, create at least two files
nfs1 and nfs2 with data in /nfsexp and export /nfsexp as rw and sync options to Toronto which will be
NFS client and mount it on Toronto as /sharednfs.
2. Check if the shared files in nfs client mount point can be read and written in toronto as regular user.
PART-B: NFS
3. Create another share in NFS server(montreal) as /branchdocs, create atleast two non-empty files branch1
and branch2 in it and export it with ro and sync options to NFS Client (Toronto) which is NFS client, and
mount it in Toronto as /hqdocs
4. Check if you can read and write files branch1 and branch2 in toronto as regular user
PART-C: NFS with a partner in LAB
5. Select a partner during lab, both create /labsharelast4digits-of-yourhumberid as NFS share with at least
two non-empty files lablast4digits-yourhumberid and nfslast4digits in NFS server and export the
directory to your partners NFS client.
6. In your NFS client mount your partner's export directory as /partnerlast4digit-humber-id-of-partner
7. Confirm you can view your partners files and be able to edit at least one.
SCREENSHOTS from NFS-Server (Montreal VM)
8. List the NFS Server packages
9. Show the status of NFS Servers services
10. Show the services allowed in firewall table
11. List and display server file that contains share definitions for export
12. List and display contents of NFS server file that records entries for exported shares whether or not they are
remotely mounted
13. List the server side NFS startup configuration file.
14. a) exportfs -avr b) cat /etc/exports c) getsebool -a |grep nfs_export
LAB -10
NEST207
Page 2 of 2
the
SCREENSHOTS from NFS-Client (Toronto VM)
16. List the packages for NFS-Client
17. Show the status of rpcbind service
18. df -Th /sharednfs /hqdocs /partnerlast4digit-humber-id-of-partner
19. ls -l /sharednfs /hqdocs /partnerlast4digit-humber-id-of-partner
20. View and list the client file that defines settings used at mounting shares
21. Display and list client file that keeps track of mounted shares and the local file systems
22. List the client side NFS startup configuration file
PART-D: NFS MONITORING
23. Display NFS and RPC I/O statistics on NFS server (SCREENSHOT)
24. Display NFS and RPC I/O statistics on NFS client (SCREENSHOT)
25. In NFS client, provide rw statistics for each mounted share. (SCREENSHOT)
PART-E: AUTOFS
26. Create a new directory /autodir in your NFS server (montreal) and populate it with non-empty files
autodir1 and autodir2 and export /autodir to NFS client (toronto). Using autofs direct map mount it in
toronto VM as /autodirmnt.
27. Create a new directory /autoindir in your NFS server (montreal) and populate it with non-empty files
autoindir1 and autoindir2 and export /autoindir to NFS client (toronto). Using autofs indirect map mount
it in toronto VM as /misc/autoindirmnt.
SCREENSHOTS: MONTREAL a) cat /etc/exports b)ls -l /autodir /autoindir c)sudo exportfs -avr
TORONTO a) df -Th /autodirmnt /misc/autoindirmnt b) cat /etc/auto.direct c)cat /etc/auto.misc
d) ls -l /autodirmnt /misc/autoindirmnt e)systemctl status autofs f) cat /etc/autofs.conf |grep master
PART-F: CONFIGURE MOUNT POINT TO BE PERSISTENT
28. Change root password to a password you can remember
29. In NFS Client, configure /sharednfs and /branchdocs NFS mount points to be persistent (SCREENSHOT cat
/etc/fstab), reboot and confirm that your configuration works. It is highly recommended to have a backup
of /etc/fstab file before editing it.
NOTE : (in case system fails to restart after entries in /etc/fstab)
NFS server must be running before starting NFS-client, if not NFS client could go to emergency mode
Due to entries in /etc/fstab, the system may enter into emergency mode or rescue mode due to entries in
/etc/fstab file.
In the emergency mode, enter root password to log in as root user.
Now edit /etc/fstab file, correct error in the line you have added, save and reboot OR you can comment
the line you have added by typing # at start of that line to correct it later after succe
PART - A PART - A: NFS 1 . Configure Montreal as

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!