/ Centos 7 - How To Install NFS and Mount Remotely - rtt - IT Resource

Centos 7 - How To Install NFS and Mount Remotely

1.) First install nfs-utils

[root@bcitcourse ~]# yum -y install nfs-utils
Loaded plugins: fastestmirror
base                                                                                                                   | 3.6 kB  00:00:00    
epel/x86_64/metalink                                                                                                   | 5.3 kB  00:00:00    
epel                                                                                                                   | 3.2 kB  00:00:00    
extras                                                                                                                 | 3.4 kB  00:00:00    
updates                                                                                                                | 3.4 kB  00:00:00    
(1/4): epel/x86_64/updateinfo                                                                                          | 931 kB  00:00:01    
updates/7/x86_64/primary_db    FAILED                                                                       ] 460 kB/s | 1.8 MB  00:00:15 ETA
http://repo.virtualhosting.hk/centos/7.5.1804/updates/x86_64/repodata/0d7e660988dcc434ec5dec72067655f9b0ef44e6164d3fb85bda2bd1b09534db-primary.sqlite.bz2: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
(2/4): epel/x86_64/primary                                                                                             | 3.6 MB  00:00:01    
(3/4): extras/7/x86_64/primary_db                                                                                      | 173 kB  00:00:01    
(4/4): updates/7/x86_64/primary_db                                                                                     | 4.3 MB  00:00:03    
Loading mirror speeds from cached hostfile
 * base: ftp.cuhk.edu.hk
 * epel: ftp.jaist.ac.jp
 * extras: ftp.cuhk.edu.hk
 * updates: ftp.cuhk.edu.hk
epel                                                                                                                              12631/12631
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.54.el7 will be installed
--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.54.el7.x86_64
--> Running transaction check
---> Package gssproxy.x86_64 0:0.7.0-17.el7 will be installed
--> Processing Dependency: libini_config >= 1.3.1-28 for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libverto-module-base for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libref_array.so.1(REF_ARRAY_0.1.1)(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.2.0)(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.7.0-17.el7.x86_64
---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package libnfsidmap.x86_64 0:0.25-19.el7 will be installed
---> Package libtirpc.x86_64 0:0.2.4-0.6.el7 will be updated
---> Package libtirpc.x86_64 0:0.2.4-0.10.el7 will be an update
--> Running transaction check
---> Package libbasicobjects.x86_64 0:0.1.1-29.el7 will be installed
---> Package libcollection.x86_64 0:0.7.0-29.el7 will be installed
---> Package libini_config.x86_64 0:1.3.1-29.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.1-29.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.1-29.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-29.el7 will be installed
---> Package libverto-tevent.x86_64 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package libpath_utils.x86_64 0:0.2.1-29.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                               Arch                         Version                                  Repository                  Size
==============================================================================================================================================
Installing:
 nfs-utils                             x86_64                       1:1.3.0-0.54.el7                         base                       407 k
Installing for dependencies:
 gssproxy                              x86_64                       0.7.0-17.el7                             base                       108 k
 keyutils                              x86_64                       1.5.8-3.el7                              base                        54 k
 libbasicobjects                       x86_64                       0.1.1-29.el7                             base                        25 k
 libcollection                         x86_64                       0.7.0-29.el7                             base                        41 k
 libevent                              x86_64                       2.0.21-4.el7                             base                       214 k
 libini_config                         x86_64                       1.3.1-29.el7                             base                        63 k
 libnfsidmap                           x86_64                       0.25-19.el7                              base                        50 k
 libpath_utils                         x86_64                       0.2.1-29.el7                             base                        28 k
 libref_array                          x86_64                       0.1.5-29.el7                             base                        26 k
 libverto-tevent                       x86_64                       0.2.5-4.el7                              base                       9.0 k
Updating for dependencies:
 libtirpc                              x86_64                       0.2.4-0.10.el7                           base                        88 k

Transaction Summary
==============================================================================================================================================
Install  1 Package  (+10 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 1.1 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/12): keyutils-1.5.8-3.el7.x86_64.rpm                                                                                |  54 kB  00:00:00    
(2/12): libbasicobjects-0.1.1-29.el7.x86_64.rpm                                                                        |  25 kB  00:00:00    
(3/12): gssproxy-0.7.0-17.el7.x86_64.rpm                                                                               | 108 kB  00:00:01    
(4/12): libcollection-0.7.0-29.el7.x86_64.rpm                                                                          |  41 kB  00:00:00    
libini_config-1.3.1-29.el7.x86 FAILED                                         
http://repo.virtualhosting.hk/centos/7.5.1804/os/x86_64/Packages/libini_config-1.3.1-29.el7.x86_64.rpm: [Errno 14] HTTP Error 503 - Service Unavailable
Trying other mirror.
(5/12): libevent-2.0.21-4.el7.x86_64.rpm                                                                               | 214 kB  00:00:00    
(6/12): libnfsidmap-0.25-19.el7.x86_64.rpm                                                                             |  50 kB  00:00:00    
(7/12): libpath_utils-0.2.1-29.el7.x86_64.rpm                                                                          |  28 kB  00:00:00    
(8/12): libref_array-0.1.5-29.el7.x86_64.rpm                                                                           |  26 kB  00:00:00    
(9/12): libtirpc-0.2.4-0.10.el7.x86_64.rpm                                                                             |  88 kB  00:00:00    
(10/12): libverto-tevent-0.2.5-4.el7.x86_64.rpm                                                                        | 9.0 kB  00:00:00    
(11/12): nfs-utils-1.3.0-0.54.el7.x86_64.rpm                                                                           | 407 kB  00:00:00    
(12/12): libini_config-1.3.1-29.el7.x86_64.rpm                                                                         |  63 kB  00:00:01    
----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                         248 kB/s | 1.1 MB  00:00:04    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libbasicobjects-0.1.1-29.el7.x86_64                                                                                       1/13
  Installing : libref_array-0.1.5-29.el7.x86_64                                                                                          2/13
  Installing : libcollection-0.7.0-29.el7.x86_64                                                                                         3/13
  Installing : libpath_utils-0.2.1-29.el7.x86_64                                                                                         4/13
  Installing : libini_config-1.3.1-29.el7.x86_64                                                                                         5/13
  Installing : libnfsidmap-0.25-19.el7.x86_64                                                                                            6/13
  Installing : keyutils-1.5.8-3.el7.x86_64                                                                                               7/13
  Installing : libevent-2.0.21-4.el7.x86_64                                                                                              8/13
  Updating   : libtirpc-0.2.4-0.10.el7.x86_64                                                                                            9/13
  Installing : libverto-tevent-0.2.5-4.el7.x86_64                                                                                       10/13
  Installing : gssproxy-0.7.0-17.el7.x86_64                                                                                             11/13
  Installing : 1:nfs-utils-1.3.0-0.54.el7.x86_64                                                                                                                                                12/13
  Cleanup    : libtirpc-0.2.4-0.6.el7.x86_64                                                                                                                                                    13/13
  Verifying  : libini_config-1.3.1-29.el7.x86_64                                                                                                                                                 1/13
  Verifying  : libverto-tevent-0.2.5-4.el7.x86_64                                                                                                                                                2/13
  Verifying  : libtirpc-0.2.4-0.10.el7.x86_64                                                                                                                                                    3/13
  Verifying  : libevent-2.0.21-4.el7.x86_64                                                                                                                                                      4/13
  Verifying  : keyutils-1.5.8-3.el7.x86_64                                                                                                                                                       5/13
  Verifying  : libnfsidmap-0.25-19.el7.x86_64                                                                                                                                                    6/13
  Verifying  : gssproxy-0.7.0-17.el7.x86_64                                                                                                                                                      7/13
  Verifying  : libcollection-0.7.0-29.el7.x86_64                                                                                                                                                 8/13
  Verifying  : 1:nfs-utils-1.3.0-0.54.el7.x86_64                                                                                                                                                 9/13
  Verifying  : libref_array-0.1.5-29.el7.x86_64                                                                                                                                                 10/13
  Verifying  : libpath_utils-0.2.1-29.el7.x86_64                                                                                                                                                11/13
  Verifying  : libbasicobjects-0.1.1-29.el7.x86_64                                                                                                                                              12/13
  Verifying  : libtirpc-0.2.4-0.6.el7.x86_64                                                                                                                                                    13/13

Installed:
  nfs-utils.x86_64 1:1.3.0-0.54.el7                                                                                                                                                                  

Dependency Installed:
  gssproxy.x86_64 0:0.7.0-17.el7         keyutils.x86_64 0:1.5.8-3.el7       libbasicobjects.x86_64 0:0.1.1-29.el7    libcollection.x86_64 0:0.7.0-29.el7    libevent.x86_64 0:2.0.21-4.el7        
  libini_config.x86_64 0:1.3.1-29.el7    libnfsidmap.x86_64 0:0.25-19.el7    libpath_utils.x86_64 0:0.2.1-29.el7      libref_array.x86_64 0:0.1.5-29.el7     libverto-tevent.x86_64 0:0.2.5-4.el7  

Dependency Updated:
  libtirpc.x86_64 0:0.2.4-0.10.el7                                                                                                                                                                   

Complete!

 

2.) Configure nfs

#nfs is dead at first because we have no shares defined in /etc/exports

#make the location of the NFS share

mkdir /datastore

echo "/datastore 10.220.101.0/24(rw,sync,no_root_squash)" >> /etc/exports
systemctl restart nfs


Tags:

centos, install, nfs, mount, remotely, utils, bcitcourse, yum, plugins, fastestmirror, kb, epel, _, metalink, extras, updates, updateinfo, primary_db, mb, eta, http, repo, virtualhosting, hk, repodata, dcc, ec, dec, ef, fb, bda, bd, db, primary, sqlite, bz, errno, unavailable, loading, speeds, cached, hostfile, ftp, cuhk, edu, jaist, ac, jp, resolving, dependencies, transaction, installed, processing, dependency, libtirpc, gssproxy, libnfsidmap, libevent, keyutils, libini_config, libverto, module, libref_array, ref_array_, ini_config_, libcollection, libbasicobjects, updated, update, libpath_utils, path_utils_, tevent, resolution, resolved, repository, installing, updating, summary, packages, upgrade, download, downloading, delta, rpms, disabled, usr, bin, applydeltarpm, rpm, os, succeeded, cleanup, verifying, configure, shares, defined, etc, exports, mkdir, datastore, echo, quot, rw, sync, no_root_squash, systemctl, restart,

Latest Articles

  • How Does Cisco CUCM (Cisco Unified Communication Manager) Work?
  • What DNS Options Does Active Directory Offer in Windows Server 2008,2012,2016 ?
  • syntax error, unexpected T_SL in PHP Solution
  • grep regular expression match number range between specific numbers
  • bash how to print out lines of text within a range from the first occurrence
  • bash script how to to check LAN computers for open ports
  • MySQL Using mytop Debug Source of High IO and Slow Performance
  • How To Mathematically Convert and Calculate Binary Value To Decimal Value
  • systemd management using systemctl and journalctl to check systemd logs
  • css how to format code in the code tag
  • css br with extra blank line
  • What is /dev/pts and why do we need it in Linux?
  • Linux What is umask (user mask) for file and directory creation permissions and how to calculate umask and change the defaults
  • Linux Permissions and Groups Real Usecase for Group Access
  • Centos 7 python34 how to install the gi library
  • Centos 7 - Convert Minimal to Graphical GUI GNOME or KDE Desktop
  • AMD Set Fan Speed and Other Powerplay Memory/CPU Timings with a Linux script
  • Ethereum Mining Claymore Nanopool Error
  • genisoimage errors with long filenames and deep directory structures
  • Linux Kernel USB Export Errors