Open main menu

CDOT Wiki β

Changes

OPS335 NFS Lab

684 bytes added, 10:40, 23 February 2016
no edit summary
#Add the following line to the bottom of the '''/etc/fstab''' file on your VM3 machine:<br>'''192.168.x.3:/home /home nfs4 defaults 0 0'''
{{Admon/important|Warning: Do not change any other lines in this file. |Do not change any lines in '''/etc/fstab''' file contained for your VM3 machine. Doing so can cause your VM3 machine not to boot properly.}}
<ol><li value="5">Run the following command to confirm that SELinux will not block the network share:<br>'''setsebool -P use_nfs_home_dirs 1'''</li><li>Logout Issue the following command to mount any network shares without having to logout and login to your VM3:<br>'''mount -a'''<li>Create an empty file within the regular user's home directory on your VM3 machine. Switch to your VM2 machine and view the contents on your regular user's home directory. What you do you notice? what does this mean in terms of vm03 and shut it downusing NFS? Record your observations in your lab logbook.</li><li>Restart vm03 your VM3 machine and login using with your learnidregular user id.</li><li>Check that the home directory is mounted:<br>'''mount | grep /home'''</li><li>If it is not, try running 'mount /home' as root and observe any errors.</li><li>On vm03, create an empty Create another file by issuing in the following command:<br>'''touch empty_file_created_on_vm03''regular user's home directory on your VM3 machine.</li><li>Now shutdown vm03Switch to your VM2 machine to see if you can view that file.</li><li>Now on the Finally, switch to your VM3 machine and shutdown this machine. Finally, switch to your NFS server, us (VM2 machine) and issue the '''ls -l ''' command in your learnidthe regular user's home directory to check for if you can still view and access that file that was created in your VM3 machine. If not, what is the reason why you cannot view or access the file you just created? Record your answer in your lab logbook.</li></ol>
'''Record steps, commands, and your observations in INVESTIGATION 1 in your OPS335 lab log-book'''
13,420
edits