Senin, 23 September 2019

How to setting nfs client on Centos 7

  Tidak ada komentar
Install nfs-utils
[[email protected] ~]$ sudo yum install nfs-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.dionipe.net
 * epel: sg.fedora.ipserverone.com
 * extras: mirror.dionipe.net
 * updates: mirror.dionipe.net
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.61.el7 will be installed
--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.61.el7.x86_64
--> Running transaction check
---> Package gssproxy.x86_64 0:0.7.0-21.el7 will be installed
--> Processing Dependency: libini_config >= 1.3.1-31 for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libverto-module-base for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libref_array.so.1(REF_ARRAY_0.1.1)(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.2.0)(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.7.0-21.el7.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.7.0-21.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.15.el7 will be installed
---> Package quota.x86_64 1:4.01-17.el7 will be installed
--> Processing Dependency: quota-nls = 1:4.01-17.el7 for package: 1:quota-4.01-17.el7.x86_64
--> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-17.el7.x86_64
---> Package rpcbind.x86_64 0:0.2.0-47.el7 will be installed
--> Running transaction check
---> Package libbasicobjects.x86_64 0:0.1.1-32.el7 will be installed
---> Package libcollection.x86_64 0:0.7.0-32.el7 will be installed
---> Package libini_config.x86_64 0:1.3.1-32.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.1-32.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.1-32.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-32.el7 will be installed
---> Package libverto-libevent.x86_64 0:0.2.5-4.el7 will be installed
---> Package quota-nls.noarch 1:4.01-17.el7 will be installed
---> Package tcp_wrappers.x86_64 0:7.6-77.el7 will be installed
--> Running transaction check
---> Package libpath_utils.x86_64 0:0.2.1-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                               Arch                       Version                              Repository                Size
======================================================================================================================================
Installing:
 nfs-utils                             x86_64                     1:1.3.0-0.61.el7                     base                     410 k
Installing for dependencies:
 gssproxy                              x86_64                     0.7.0-21.el7                         base                     109 k
 keyutils                              x86_64                     1.5.8-3.el7                          base                      54 k
 libbasicobjects                       x86_64                     0.1.1-32.el7                         base                      26 k
 libcollection                         x86_64                     0.7.0-32.el7                         base                      42 k
 libevent                              x86_64                     2.0.21-4.el7                         base                     214 k
 libini_config                         x86_64                     1.3.1-32.el7                         base                      64 k
 libnfsidmap                           x86_64                     0.25-19.el7                          base                      50 k
 libpath_utils                         x86_64                     0.2.1-32.el7                         base                      28 k
 libref_array                          x86_64                     0.1.5-32.el7                         base                      27 k
 libtirpc                              x86_64                     0.2.4-0.15.el7                       base                      89 k
 libverto-libevent                     x86_64                     0.2.5-4.el7                          base                     8.9 k
 quota                                 x86_64                     1:4.01-17.el7                        base                     179 k
 quota-nls                             noarch                     1:4.01-17.el7                        base                      90 k
 rpcbind                               x86_64                     0.2.0-47.el7                         base                      60 k
 tcp_wrappers                          x86_64                     7.6-77.el7                           base                      78 k

Transaction Summary
======================================================================================================================================
Install  1 Package (+15 Dependent packages)

Total download size: 1.5 M
Installed size: 4.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/16): libbasicobjects-0.1.1-32.el7.x86_64.rpm                                                                |  26 kB  00:00:00
(2/16): keyutils-1.5.8-3.el7.x86_64.rpm                                                                        |  54 kB  00:00:00
(3/16): libcollection-0.7.0-32.el7.x86_64.rpm                                                                  |  42 kB  00:00:00
(4/16): gssproxy-0.7.0-21.el7.x86_64.rpm                                                                       | 109 kB  00:00:00
(5/16): libnfsidmap-0.25-19.el7.x86_64.rpm                                                                     |  50 kB  00:00:00
(6/16): libpath_utils-0.2.1-32.el7.x86_64.rpm                                                                  |  28 kB  00:00:00
(7/16): libref_array-0.1.5-32.el7.x86_64.rpm                                                                   |  27 kB  00:00:00
(8/16): libverto-libevent-0.2.5-4.el7.x86_64.rpm                                                               | 8.9 kB  00:00:00
(9/16): libini_config-1.3.1-32.el7.x86_64.rpm                                                                  |  64 kB  00:00:00
(10/16): quota-nls-4.01-17.el7.noarch.rpm                                                                      |  90 kB  00:00:00
(11/16): libtirpc-0.2.4-0.15.el7.x86_64.rpm                                                                    |  89 kB  00:00:00
(12/16): rpcbind-0.2.0-47.el7.x86_64.rpm                                                                       |  60 kB  00:00:00
(13/16): tcp_wrappers-7.6-77.el7.x86_64.rpm                                                                    |  78 kB  00:00:00
(14/16): quota-4.01-17.el7.x86_64.rpm                                                                          | 179 kB  00:00:00
(15/16): nfs-utils-1.3.0-0.61.el7.x86_64.rpm                                                                   | 410 kB  00:00:01
(16/16): libevent-2.0.21-4.el7.x86_64.rpm                                                                      | 214 kB  00:00:05
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 259 kB/s | 1.5 MB  00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libtirpc-0.2.4-0.15.el7.x86_64                                                                                    1/16
  Installing : rpcbind-0.2.0-47.el7.x86_64                                                                                       2/16
  Installing : libbasicobjects-0.1.1-32.el7.x86_64                                                                               3/16
  Installing : libref_array-0.1.5-32.el7.x86_64                                                                                  4/16
  Installing : libcollection-0.7.0-32.el7.x86_64                                                                                 5/16
  Installing : libevent-2.0.21-4.el7.x86_64                                                                                      6/16
  Installing : libverto-libevent-0.2.5-4.el7.x86_64                                                                              7/16
  Installing : tcp_wrappers-7.6-77.el7.x86_64                                                                                    8/16
  Installing : keyutils-1.5.8-3.el7.x86_64                                                                                       9/16
  Installing : libnfsidmap-0.25-19.el7.x86_64                                                                                   10/16
  Installing : libpath_utils-0.2.1-32.el7.x86_64                                                                                11/16
  Installing : libini_config-1.3.1-32.el7.x86_64                                                                                12/16
  Installing : gssproxy-0.7.0-21.el7.x86_64                                                                                     13/16
  Installing : 1:quota-nls-4.01-17.el7.noarch                                                                                   14/16
  Installing : 1:quota-4.01-17.el7.x86_64                                                                                       15/16
  Installing : 1:nfs-utils-1.3.0-0.61.el7.x86_64                                                                                16/16
  Verifying  : 1:quota-nls-4.01-17.el7.noarch                                                                                    1/16
  Verifying  : libverto-libevent-0.2.5-4.el7.x86_64                                                                              2/16
  Verifying  : libpath_utils-0.2.1-32.el7.x86_64                                                                                 3/16
  Verifying  : libnfsidmap-0.25-19.el7.x86_64                                                                                    4/16
  Verifying  : libevent-2.0.21-4.el7.x86_64                                                                                      5/16
  Verifying  : 1:nfs-utils-1.3.0-0.61.el7.x86_64                                                                                 6/16
  Verifying  : gssproxy-0.7.0-21.el7.x86_64                                                                                      7/16
  Verifying  : keyutils-1.5.8-3.el7.x86_64                                                                                       8/16
  Verifying  : rpcbind-0.2.0-47.el7.x86_64                                                                                       9/16
  Verifying  : tcp_wrappers-7.6-77.el7.x86_64                                                                                   10/16
  Verifying  : libcollection-0.7.0-32.el7.x86_64                                                                                11/16
  Verifying  : libref_array-0.1.5-32.el7.x86_64                                                                                 12/16
  Verifying  : libbasicobjects-0.1.1-32.el7.x86_64                                                                              13/16
  Verifying  : 1:quota-4.01-17.el7.x86_64                                                                                       14/16
  Verifying  : libini_config-1.3.1-32.el7.x86_64                                                                                15/16
  Verifying  : libtirpc-0.2.4-0.15.el7.x86_64                                                                                   16/16

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

Dependency Installed:
  gssproxy.x86_64 0:0.7.0-21.el7            keyutils.x86_64 0:1.5.8-3.el7                libbasicobjects.x86_64 0:0.1.1-32.el7
  libcollection.x86_64 0:0.7.0-32.el7       libevent.x86_64 0:2.0.21-4.el7               libini_config.x86_64 0:1.3.1-32.el7
  libnfsidmap.x86_64 0:0.25-19.el7          libpath_utils.x86_64 0:0.2.1-32.el7          libref_array.x86_64 0:0.1.5-32.el7
  libtirpc.x86_64 0:0.2.4-0.15.el7          libverto-libevent.x86_64 0:0.2.5-4.el7       quota.x86_64 1:4.01-17.el7
  quota-nls.noarch 1:4.01-17.el7            rpcbind.x86_64 0:0.2.0-47.el7                tcp_wrappers.x86_64 0:7.6-77.el7

Complete!
[[email protected] ~]$ 
Mount the nfs disk
Check the disk
[[email protected] ~]$ sudo mount -t nfs 192.168.72.13:/nfsserver/var/nfsshare /mnt/nfs/var/nfsshare
[[email protected] ~]$
[[email protected] ~]$ df -h
Filesystem                             Size  Used Avail Use% Mounted on
/dev/mapper/centos-root                 65G  1.2G   64G   2% /
devtmpfs                               7.8G     0  7.8G   0% /dev
tmpfs                                  7.8G     0  7.8G   0% /dev/shm
tmpfs                                  7.8G  8.9M  7.8G   1% /run
tmpfs                                  7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda1                             1014M  177M  838M  18% /boot
/dev/mapper/centos-home                 26G   67M   26G   1% /home
tmpfs                                  1.6G     0  1.6G   0% /run/user/1000
192.168.72.13:/nfsserver/var/nfsshare  2.0T  1.5T  467G  77% /mnt/nfs/var/nfsshare
[[email protected] ~]$
Edit the fstab file and insert the nfs path to make it persistent
[[email protected] ~]$ sudo vi /etc/fstab
[[email protected] ~]$

Tidak ada komentar :

Posting Komentar