Skip to content

Commit 540a533

Browse files
authored
# Editorial fixes lab5-nfs.md (#1576)
1 parent d465fc4 commit 540a533

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

docs/labs/networking/lab5-nfs.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Estimated time to complete this lab: 40 minutes
2424

2525
## NFS
2626

27-
NFS is an acronym for Network File System. It allows the sharing of files and folders over a network with other systems. NFS provides a simple way for making the contents of the local file system available to multiple users (or systems) on a network.
27+
NFS is an acronym for Network File System. It allows sharing of files and folders over a network with other systems. NFS provides a simple way for making the contents of the local file system available to multiple users (or systems) on a network.
2828

2929
This sharing is traditionally between UNIX/Linux like systems, but systems running Microsoft Windows operating systems can also access NFS shares if they have the proper software installed to do this.
3030

3131
Support for NFS must be enabled or compiled into the kernel.
3232

33-
As with most networking concepts, there is a client side and a server side to NFS. The server side consists of the system that exports (shares) file systems to other systems. The client side consists of the systems that needs access to file system exported by the server.
33+
As with most networking concepts, NFS has client and server sides. The server side consists of the system that exports (shares) file systems to other systems. The client side consists of the systems that need access to the file system exported by the server.
3434

3535
NFSv4 requires the services of the following programs (daemons):
3636

@@ -40,7 +40,7 @@ NFSv4 requires the services of the following programs (daemons):
4040

4141
## /etc/exports
4242

43-
The `/etc/exports` configuration file serves as a form of access control list for specifying file systems which may be exported via NFS to authorized clients. It provides information to `mountd` and to the kernel based NFS file server daemon `nfsd`.
43+
The `/etc/exports` configuration file serves as an access control list for specifying file systems that may be exported via NFS to authorized clients. It provides information to `mountd` and to the kernel-based NFS file server daemon `nfsd`.
4444

4545
The directives in `/etc/exports` uses the following syntax:
4646

@@ -91,7 +91,7 @@ SYNOPSIS
9191

9292
Some important and notable services that nfs-server needs are `nfs-idmapd`, `nfsdcld`, `rpcbind`, `rpc-statd-notify`, `rpc-statd`, `auth-rpcgss-module`.
9393

94-
4. The `rpcinfo` command is used for making RPC calls to an RPC server and then reporting on its findings. `rpcinfo` lists all the RPC services registered with `rpcbind`. Use `rpcinfo` to query your local server for a list of all registered RPC services. Type:
94+
4. The `rpcinfo` command is used for making RPC calls to an RPC server and then reports on its findings. `rpcinfo` lists all the RPC services registered with `rpcbind`. Use `rpcinfo` to query your local server for a list of all registered RPC services. Type:
9595

9696
```bash
9797
rpcinfo -p localhost
@@ -106,13 +106,12 @@ SYNOPSIS
106106
100000 4 udp 111 portmapper
107107
```
108108

109-
From the sample output above, we can tell a service called portmapper is registered on the RPC server running localhost.
109+
From the sample output above, we can tell a `portmapper` service is registered on the RPC server running localhost.
110110

111111
!!! Question
112112

113113
A) What is portmapper?
114-
B) Find out the meaning of the different fields (column heading) of the `rpcinfo` command?
115-
Program, Vers, proto, and service.
114+
B) Find out the meaning of the different fields (column heading) of the `rpcinfo` command? (Program, Vers, proto, and service.)
116115

117116
5. Check the status of `nfs-server.service`. Type:
118117

@@ -179,7 +178,7 @@ SYNOPSIS
179178

180179
#### To create and export a share
181180

182-
You will create and share a directory called `/mnt/nfs`. This directory will serve as the source file-system that will be exported from the NFS server.
181+
You will create and share a directory called `/mnt/nfs`. This directory will be the source file-system that exported from the NFS server.
183182

184183
1. Ensure you are logged on to your system as a user with administrative privileges.
185184

@@ -204,15 +203,15 @@ You will create and share a directory called `/mnt/nfs`. This directory will ser
204203
```
205204
You can also use any text editor you are comfortable with to create the entry.
206205
207-
5. Verify the contents of `/etc/exports` to make sure there were no mistakes.
206+
5. Verify the contents of `/etc/exports` to ensure no mistakes.
208207
209208
6. After making any change to the `/etc/exports` file you should run the `exportfs` command. Type:
210209
211210
```bash
212211
exportfs -r
213212
```
214213
215-
7. Use the `-s` flag with the `exportfs` command to display the current export list suitable for `/etc/exports`. i.e. View the list of directories, allowed hosts and options. Type:
214+
7. Use the `-s` flag with the `exportfs` command to display the current export list suitable for `/etc/exports`. For example, view the list of directories, allowed hosts, and options. Type:
216215
217216
```bash
218217
exportfs -s
@@ -226,7 +225,7 @@ You will create and share a directory called `/mnt/nfs`. This directory will ser
226225
227226
This exercise deals with the client side of NFS. You'll try accessing the NFS server as a client.
228227
229-
`showmount` is a handy utility for querying and showing mount information on NFS servers. It can also show the state of the NFS server as well as list the clients that are mounting from the server. Its syntax and options are shown here:
228+
`showmount` is a handy utility for querying and showing mount information on NFS servers. It can also show the state of the NFS server and list the clients that are mounting from the server. Its syntax and options are shown here:
230229
231230
```bash
232231
SYNOPSIS
@@ -274,7 +273,7 @@ You will test the NFS server's configuration from *Exercise 1* by trying to acce
274273
275274
4. Change your PWD to the `/mnt/nfs-local` directory and list its contents.
276275
277-
5. While still in the `/mnt/nfs-local` directory, attempt to delete some of the files. Type:
276+
5. While still in the `/mnt/nfs-local` directory, attempt to delete some files. Type:
278277
279278
```bash
280279
rm -rf 1nfs 2nfs
@@ -289,7 +288,7 @@ You will test the NFS server's configuration from *Exercise 1* by trying to acce
289288
290289
Was your file deletion attempt successful?
291290
292-
7. Now try to create some additional files (6nfs, 7nfs, 8nfs) on the NFS share. Type:
291+
7. Now try creating additional files (6nfs, 7nfs, 8nfs) on the NFS share. Type:
293292
294293
```bash
295294
touch {6..8}nfs
@@ -304,7 +303,7 @@ PERFORM THIS EXERCISE FROM YOUR PARTNER-SYSTEM
304303
305304
#### To access an NFS share remotely
306305
307-
1. While logged into serverPR as the superuser, install the `nfs-utils` package if it isn't already installed.
306+
1. While logged into serverPR as the superuser, install the `nfs-utils` package if it isn't installed.
308307
309308
2. Create a directory called “`/mnt/nfs-remote`” that will serve as the mount point for the remote NFS share. Type:
310309
@@ -345,7 +344,7 @@ PERFORM THIS EXERCISE FROM YOUR PARTNER-SYSTEM
345344
cd /mnt/nfs-remote/
346345
```
347346
348-
8. Make a note of the contents of the directory. If you are able to see the expected files, you have successfully completed the NFS lab!
347+
8. Make a note of the contents of the directory. If can see the expected files, you have successfully completed the NFS lab!
349348
350349
!!! question "Questions"
351350

0 commit comments

Comments
 (0)