NFS はサーバーノードのディレクトリをクライアントノードにマウントします。

NFS はサーバーノードのディレクトリをクライアントノードにマウントします。

CentOS 7ジョブでは、管理対象ノードの/ homeディレクトリをクライアントノードにNFSマウントしようとしました。以下で試したコマンドを指定しました。

ファイアウォールを無効にしようとしましたが、私が持っていないパスワードを要求して動作しませんでした。その後、エクスポートファイルを次のように変更しましたが、何の効果もありませんでした。私が実行したPFBコマンド:

[user@node-1 ~]$ ssh -i ~/.ssh/key node-2
Last login: Wed Sep 19 12:56:36 2018 from 192.18.0.3
[user@node-2 ~]$ sudo mount -t nfs 192.18.0.3:/home /home          
mount.nfs: access denied by server while mounting 192.18.0.3:/home
[user@node-2 ~]$ exit
logout
Connection to node-2 closed.
[user@node-1 ~]$ systemctl disable firewalld
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: Cloud User (user)
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to execute operation: Access denied
[user@node-1 ~]$ sudo vi /etc/exports

エクスポートファイルの変更は次のとおりです。

/home 192.18.0.*(rw,sync,no_root_squash,no_all_squash)

その後、変更を更新しようとしましたが、別のエラーが発生します。

[user@node-1 ~]$ exportfs -ra
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 
(Permission denied)
exportfs: can't lock /var/lib/nfs/etab for writing

管理サーバーからクライアントサーバーに/ homeディレクトリをマウントするのに役立つ人はいますか?

ベストアンサー1

192.18.0.*有効なIPまたはサブネットではありません。試して192.18.0.0/24みてください。

  • 注:192.18.0.0 - 192.18.194.255 IPの範囲はOracle Corporationに属します。 Oracle社員以外で使用しないでください。

おすすめ記事