Browse code

Edited and updated nfs-utils doc for GA.

Change-Id: Id387605b6018d214050e3b5777bf6bf9277b6b72
Reviewed-on: http://photon-jenkins.eng.vmware.com/1102
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

shoenisch authored on 2016/06/18 06:51:26
Showing 1 changed files
... ...
@@ -1,69 +1,47 @@
1
-# Photon NFS utils
1
+# Photon NFS Utilities for Mounting Remote File Systems
2 2
 
3
-To mount network file system in Photon
3
+This document describes how to mount a remote file system on Photon OS by using nfs-utils, a commonly used package that contains tools to work with the Network File System protocol (NFS).
4 4
 
5
-
6
-## Check a remote nfs server
5
+## Check a Remote Server
7 6
 
8 7
 ```
9 8
 showmount  -e nfs-servername or ip
10 9
 ```
11 10
 
12
-for example : 
11
+Example:  
13 12
 
14 13
 ```
15
-showmount -e discus-filer.eng.vmware.com
16
-showmount -e 10.118.100.122
14
+showmount -e eastern-filer.eng.vmware.com
15
+showmount -e 10.109.87.129
17 16
 ```
18 17
 
19
-## Mount the nfs in Photon full
20
-nfs-utils is installed by default in Photon full, just use it.
18
+## Mount a Remote File System in Photon Full
19
+
20
+The nfs-utils package is installed by default in the full version of Photon OS. Here is how to mount a directory through NFS on Photon OS:  
21 21
 
22 22
 ```
23 23
 mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder
24 24
 ```
25 25
 
26
-for example : 
26
+Example:  
27 27
 
28 28
 ```
29
-mount -t nfs discus-filer.eng.vmware.com:/export/filer /mnt/filer
30
-mount -t nfs 10.118.100.122:/export /mnt/export
29
+mount -t nfs eastern-filer.eng.vmware.com:/export/filer /mnt/filer
30
+mount -t nfs 10.109.87.129:/export /mnt/export
31 31
 ```
32 32
 
33
-## Mount the nfs in Photon minimal
34
-Nfs-utils is not installed in Photon minimal. So it should be installed by tdnf first.
33
+## Mount a Remote File System in Photon Minimal
35 34
 
36
-* tdnf Required repositories
35
+The nfs-utils package is not installed in the minimal version of Photon OS. You install it by running the following command: 
37 36
 
38
-Create photon-extras.repo as follows (in /etc/yum.repos.d) - this is for likewise-open and dependencies.
39
-```
40
-root@photon-machine [ /etc/yum.repos.d ]# cat photon-extras.repo 
41
-[photon-extras]
42
-name=VMware Photon Extras
43
-baseurl=https://dl.bintray.com/vmware/photon_extras
44
-gpgkey=file:///etc/pki/rpm-gpg/PHOTON-RPM-GPG-KEY
45
-gpgcheck=0
46
-enabled=1
47
-skip_if_unavailable=True
48
-```
49
-Create photon-demo.repo as follows (in /etc/yum.repos.d) - this is for tdnfd and tdnfd-cli
50
-```
51
-root@photon-machine [ /etc/yum.repos.d ]# cat photon-demo.repo 
52
-[photon-demo]
53
-name=VMware Photon Demo
54
-baseurl=http://discus-repo-mirror.eng.vmware.com/discus/releases/demo
55
-gpgkey=file:///etc/pki/rpm-gpg/PHOTON-RPM-GPG-KEY
56
-gpgcheck=0
57
-enabled=1
58
-skip_if_unavailable=True
59
-```
37
+	tdnf install nfs-utils
60 38
 
39
+For more information on installing packages with the tdnf command, see the [Photon OS Administration Guide](https://github.com/vmware/photon/blob/master/docs/photon-admin-guide.md).
40
+
41
+Once nfs-utils is installed, you can mount a file system by running the following commands, replacing the placeholders with the path of the directory that you want to mount: 
61 42
 
62
-* install nfs-utils by tdnf
63
-```
64
-root@photon94 [ ~ ]# tdnf install nfs-utils
65 43
 ```
66
-* mount nfs
44
+mount nfs
67 45
 ```
68 46
 mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder
69 47
 ```