Changes

Jump to: navigation, search

OPS335 NFS Lab

94 bytes removed, 16:02, 9 November 2015
Updates for Fall 2015. Mostly typo fixes.
[[Category:OPS335]][[Category:OPS335 Labs]]
==NFS and Automount==
In this lab you'll set up a Fedora 20 VM as an NFS (Network File System) server. Then you'll set up another Fedora 20 VM the other VMs as NFS client clients that will import its their /home directory directories from this NFS server.{{Admon/important|Prerequisites|Before you begin make sure your Fedora 20 virtual machines are up to date (yum update).<br />
Ensure all machines are using the firewalls you created in previous labs.<br />
Ensure both host and VM's have firewalls set up according to prior labs. And ensure you are using your learnid seneca account (the first user created - this will be
<b>critical</b> for success) }}
===Part A: Setting up the NFS Server===
On your VM 2 machine perform the following tasks:
*You do not need to install nfs, as it is present by default on the full server installation of Fedora 2022. If it is not there use the following command: yum dnf install nfs-utils
*edit /etc/exports so that it contains ONLY the following line (where 192.168.x.4 is the IP address of your guest VM):
/home 192.168.x.4(rw,root_squash,insecure)
On vm03 as root perform the following tasks:
*Comment or remove the line from /etc/fstab that you entered earlier.
*With a full server installation of Fedora 2022, you will not need to install autofs, but on other installations you might need: yum dnf install autofs
*Move the existing file /etc/auto.master:
mv /etc/auto.master /etc/auto.master.orig
*Create the file /etc/auto.home and add ONLY the following line:
* -fstype=nfs4,rw,nosuid,soft 192.168.x.3:/home/&
*Start autofs with the command systemctl start autofs.service*And , and ensure the service will automatically start at boot:. systemctl enable autofs.service*Log out of vm03 vm3 and log bak back in using your learn account.
*Open a terminal and enter the command:
mount | grep home
#What is the meaning of the ampersand (&) in the file /etc/auto.home?
#What is the role of the /etc/mtab file on the nfs server?
#What port did you have to opendoes nfs-server use?
932
edits

Navigation menu