MacOS Mojaveを実行しているノートブックとYoctoで構築されたUbuntu Linuxを実行しているSAMA5D27ボードを使用するクライアントにNFSサーバーをインストールしようとしています。
SAMA5D27ボードにIPアドレスを割り当てました。ラップトップでSAMA5D27ボードをpingしたり、その逆にpingしたりできます。だから彼らはお互いに見えます。
私のラップトップで/etc/exportsファイルを編集して、以下を指定しました。
/Users/mntpnt 192.168.1.100(rw, no_root_squash)
その後、次のコマンドを実行してラップトップでnfsdを起動しました。
$ sudo nfsd enable
$ sudo nfsd start
$ sudo nfsd status
nfsd service is enabled
nfsd is running (pid 24885, 8 threads)
SAMA5D27で次のコマンドを実行します(サーバーIP:192.168.1.8)。
$ showmount -e 192.168.1.8
示す:
Export list for 192.168.1.8:
/Users/mntpnt 192.168.1.100
その後、クライアントSAMA5D27で次のコマンドを使用してインストールを試みました。
$ sudo mount -v -t nfs 192.168.1.8:/Users/mntpnt /mntpnt
mount.nfs: timeout set for Thu ApNF 9 00:37:14 2020S: bad mount option value specified: minorversion=1
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.1.8'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query retrying: RPC: Timed out
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100005 vers 3 prot TCP port 872
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.8:/Users/mntpnt
また、/etc/exportsの権限を編集して、次の内容を読んでみました。
/Users/mntpnt -network 192.168.1.8 (rw, no_root_squash) -mask 255.255.255.0
$ sudo nfsd restart
後でMacOSでも1つ作りました。
SAMA5D27のアクセス拒否エラーは消えましたが、まったく応答を受けません。
$ sudo mount -v -t nfs 192.168.1.8:/Users/mntpnt /mntpnt
mount.nfs: timeout set for Thu Apr 9 00:45:43 2020NFS: bad mount option value specified: minorversion=1
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.1.8'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query retrying: RPC: Program not registered
mount.nfs: prog 100003, trying vers=3, prot=17
接続がタイムアウトするまで永遠に繰り返されるようです。
どのアイデアが間違っている可能性がありますか?
編集する:
@NasirRiley - はい、再試行する前にsudo nfsd restartを実行しました。
提案されたコマンドの出力は次のとおりです。
$ sudo mount -v -t nfs 192.168.1.8:/Users/mntpnt /mntpnt
mount.nfs: timeout set for Thu NFr 9 00:04:29 2020S: bad mount option value specified: minorversion=1
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.8,clientaddr=192.168.1.100'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.1.8'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query retrying: RPC: Timed out
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100005 vers 3 prot TCP port 718
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.8:/Users/mntpnt
これが出力です
$ sudo mount -v -t nfs -o nfsvers=3 192.168.1.8:/Users/mntpnt /mntpnt
mount.nfs: timeout set for Thu Apr 9 00:06:33 2020
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.1.8'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query retrying: RPC: Timed out
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.8 prog 100005 vers 3 prot TCP port 718
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 192.168.1.8:/Users/mntpnt