Cette fiche retrace les opérations  effectuées lors de la mise en place d'une surveillance NFS.

La VM Libux ne disposait pas de 'showmount' pour lister les montages disponibles sur un serveur distant :

# showmount -e serveurdistant
-bash: showmount: command not found

[11:18:28] root@sec-mut-test1:~ # yum install showmount
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager, susemanagerplugin, versionlock, yumnotify
This system is not registered with an entitlement server. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-78.el6_10.1 will be installed
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Running transaction check
---> Package keyutils.x86_64 0:1.4-5.el6 will be installed
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-15.el6 will be installed
---> Package nfs-utils-lib.x86_64 0:1.1.5-13.el6 will be installed
---> Package rpcbind.x86_64 0:0.2.0-16.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================
Installing:
nfs-utils x86_64 1:1.2.3-78.el6_10.1 susemanager:dev-res6-x86_64 336 k
Installing for dependencies:
keyutils x86_64 1.4-5.el6 susemanager:dev-res6-x86_64 38 k
libevent x86_64 1.4.13-4.el6 susemanager:dev-res6-x86_64 65 k
libgssglue x86_64 0.1-11.el6 susemanager:dev-res6-x86_64 22 k
libtirpc x86_64 0.2.1-15.el6 susemanager:dev-res6-x86_64 81 k
nfs-utils-lib x86_64 1.1.5-13.el6 susemanager:dev-res6-x86_64 70 k
rpcbind x86_64 0.2.0-16.el6 susemanager:dev-res6-x86_64 51 k

Transaction Summary
=================================================================================================================================================
Install 7 Package(s)

Total download size: 663 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): keyutils-1.4-5.el6.x86_64.rpm | 38 kB 00:00
(2/7): libevent-1.4.13-4.el6.x86_64.rpm | 65 kB 00:00
(3/7): libgssglue-0.1-11.el6.x86_64.rpm | 22 kB 00:00
(4/7): libtirpc-0.2.1-15.el6.x86_64.rpm | 81 kB 00:00
(5/7): nfs-utils-1.2.3-78.el6_10.1.x86_64.rpm | 336 kB 00:00
(6/7): nfs-utils-lib-1.1.5-13.el6.x86_64.rpm | 70 kB 00:00
(7/7): rpcbind-0.2.0-16.el6.x86_64.rpm | 51 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.2 MB/s | 663 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgssglue-0.1-11.el6.x86_64 1/7
Installing : libtirpc-0.2.1-15.el6.x86_64 2/7
Installing : rpcbind-0.2.0-16.el6.x86_64 3/7
Installing : libevent-1.4.13-4.el6.x86_64 4/7
Installing : keyutils-1.4-5.el6.x86_64 5/7
Installing : nfs-utils-lib-1.1.5-13.el6.x86_64 6/7
Installing : 1:nfs-utils-1.2.3-78.el6_10.1.x86_64 7/7
Verifying : rpcbind-0.2.0-16.el6.x86_64 1/7
Verifying : keyutils-1.4-5.el6.x86_64 2/7
Verifying : libevent-1.4.13-4.el6.x86_64 3/7
Verifying : nfs-utils-lib-1.1.5-13.el6.x86_64 4/7
Verifying : libtirpc-0.2.1-15.el6.x86_64 5/7
Verifying : 1:nfs-utils-1.2.3-78.el6_10.1.x86_64 6/7
Verifying : libgssglue-0.1-11.el6.x86_64 7/7

Installed:
nfs-utils.x86_64 1:1.2.3-78.el6_10.1

Dependency Installed:
keyutils.x86_64 0:1.4-5.el6 libevent.x86_64 0:1.4.13-4.el6 libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-15.el6
nfs-utils-lib.x86_64 0:1.1.5-13.el6 rpcbind.x86_64 0:0.2.0-16.el6

Complete!

 Nous essayons alors de monter un FS AIX :

# mount -t nfs serveurNFS:/exports /mnt
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

 Il est possible de rajouter l'option '-o nolock' pour effectuer le montage mais ce n'est pas la meilleure solution.

Vérifier que le service 'rpcbind' est actif. Sinon, démarrez-le :

service rpcbind status
rpcbind is stopped
# service rpcbind start
Starting rpcbind: [ OK ]

 Vérifier que le service 'nfslock' est bien actif :

# service nfslock status

Les fichiers de configuration des montages NFS sont '/etc/fstab' et '/etc/nfsmount.conf'.

 

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone