1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,42 @@ |
0 |
+Summary: NFS client utils |
|
1 |
+Name: nfs-utils |
|
2 |
+Version: 1.3.2 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: GPLv3+ |
|
5 |
+URL: http://www.linuxfromscratch.org/ |
|
6 |
+Group: Applications/Nfs-utils-client |
|
7 |
+Source0: http://downloads.sourceforge.net/nfs/%{name}-%{version}.tar.bz2 |
|
8 |
+%define sha1 nfs-utils=138ad690992d4784c05024d814a2d49ee8ebf6be |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+BuildRequires: krb5 |
|
12 |
+BuildRequires: libtirpc-devel |
|
13 |
+Requires: python2-libs |
|
14 |
+Requires: libtirpc |
|
15 |
+ |
|
16 |
+%description |
|
17 |
+The nfs-utils package contains simple nfs client service |
|
18 |
+ |
|
19 |
+%prep |
|
20 |
+%setup -q -n %{name}-%{version} |
|
21 |
+#not prevent statd to start |
|
22 |
+sed -i "/daemon_init/s:\!::" utils/statd/statd.c |
|
23 |
+%build |
|
24 |
+./configure --prefix=%{_prefix} \ |
|
25 |
+ --sysconfdir=%{_sysconfdir} \ |
|
26 |
+ --without-tcp-wrappers \ |
|
27 |
+ --disable-nfsv4 \ |
|
28 |
+ --disable-gss |
|
29 |
+make |
|
30 |
+%install |
|
31 |
+make DESTDIR=%{buildroot} install |
|
32 |
+%files |
|
33 |
+%defattr(-,root,root) |
|
34 |
+%{_libdir}/* |
|
35 |
+%{_datadir}/* |
|
36 |
+/sbin/* |
|
37 |
+%{_sbindir}/* |
|
38 |
+%{_sharedstatedir}/* |
|
39 |
+%changelog |
|
40 |
+* Tue Jul 14 2015 Rongrong Qiu <rqiu@vmware.com> 1.3.2-1 |
|
41 |
+- Initial build. First version |
... | ... |
@@ -24,7 +24,7 @@ |
24 | 24 |
"rpm-devel","pycurl","urlgrabber","yum-metadata-parser","yum", "rocket", "strace", "cracklib-python", |
25 | 25 |
"haveged", "haveged-devel", "vim-extra", |
26 | 26 |
"postgresql", "openjdk", "apr", "apr-util", "httpd", "openvswitch", "eventlog", "syslog-ng", "syslog-ng-devel", "zookeeper", "fuse", "fleet", |
27 |
- "nss-altfiles", "apache-maven", "subversion", "mesos", "python3", "python3-libs", "python3-devel", "python3-tools", "fakeroot-ng", "ctags", "libtirpc","libtirpc-devel","lsof"] |
|
27 |
+ "nss-altfiles", "apache-maven", "subversion", "mesos", "python3", "python3-libs", "python3-devel", "python3-tools", "fakeroot-ng", "ctags", "libtirpc","libtirpc-devel","lsof","nfs-utils"] |
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
|
31 | 31 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,69 @@ |
0 |
+# Photon NFS utils |
|
1 |
+ |
|
2 |
+To mount network file system in Photon |
|
3 |
+ |
|
4 |
+ |
|
5 |
+## Check a remote nfs server |
|
6 |
+ |
|
7 |
+``` |
|
8 |
+showmount -e nfs-servername or ip |
|
9 |
+``` |
|
10 |
+ |
|
11 |
+for example : |
|
12 |
+ |
|
13 |
+``` |
|
14 |
+showmount -e discus-filer.eng.vmware.com |
|
15 |
+showmount -e 10.118.100.122 |
|
16 |
+``` |
|
17 |
+ |
|
18 |
+## Mount the nfs in Photon full |
|
19 |
+nfs-utils is installed by default in Photon full, just use it. |
|
20 |
+ |
|
21 |
+``` |
|
22 |
+mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder |
|
23 |
+``` |
|
24 |
+ |
|
25 |
+for example : |
|
26 |
+ |
|
27 |
+``` |
|
28 |
+mount -t nfs discus-filer.eng.vmware.com:/export/filer /mnt/filer |
|
29 |
+mount -t nfs 10.118.100.122:/export /mnt/export |
|
30 |
+``` |
|
31 |
+ |
|
32 |
+## Mount the nfs in Photon minimal |
|
33 |
+Nfs-utils is not installed in Photon minimal. So it should be installed by tdnf first. |
|
34 |
+ |
|
35 |
+* tdnf Required repositories |
|
36 |
+ |
|
37 |
+Create photon-extras.repo as follows (in /etc/yum.repos.d) - this is for likewise-open and dependencies. |
|
38 |
+``` |
|
39 |
+root@photon-machine [ /etc/yum.repos.d ]# cat photon-extras.repo |
|
40 |
+[photon-extras] |
|
41 |
+name=VMware Photon Extras |
|
42 |
+baseurl=https://dl.bintray.com/vmware/photon_extras |
|
43 |
+gpgkey=file:///etc/pki/rpm-gpg/PHOTON-RPM-GPG-KEY |
|
44 |
+gpgcheck=0 |
|
45 |
+enabled=1 |
|
46 |
+skip_if_unavailable=True |
|
47 |
+``` |
|
48 |
+Create photon-demo.repo as follows (in /etc/yum.repos.d) - this is for tdnfd and tdnfd-cli |
|
49 |
+``` |
|
50 |
+root@photon-machine [ /etc/yum.repos.d ]# cat photon-demo.repo |
|
51 |
+[photon-demo] |
|
52 |
+name=VMware Photon Demo |
|
53 |
+baseurl=http://discus-repo-mirror.eng.vmware.com/discus/releases/demo |
|
54 |
+gpgkey=file:///etc/pki/rpm-gpg/PHOTON-RPM-GPG-KEY |
|
55 |
+gpgcheck=0 |
|
56 |
+enabled=1 |
|
57 |
+skip_if_unavailable=True |
|
58 |
+``` |
|
59 |
+ |
|
60 |
+ |
|
61 |
+* install nfs-utils by tdnf |
|
62 |
+``` |
|
63 |
+root@photon94 [ ~ ]# tdnf install nfs-utils |
|
64 |
+``` |
|
65 |
+* mount nfs |
|
66 |
+``` |
|
67 |
+mount -t nfs nfs-ServernameOrIp:/exportfolder /mnt/folder |
|
68 |
+``` |