Codice: Seleziona tutto
rpcinfo -p <ip_del_server_nfs>
Provalo sia dalla macchina del server nfs che da quella del client.
Moderatore: Staff
Codice: Seleziona tutto
rpcinfo -p <ip_del_server_nfs>
Codice: Seleziona tutto
bash-5.0# rpcinfo -p 192.168.1.10
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 36014 status
100024 1 tcp 49457 status
100011 1 udp 52201 rquotad
100011 2 udp 52201 rquotad
100011 1 tcp 52319 rquotad
100011 2 tcp 52319 rquotad
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100021 1 udp 59769 nlockmgr
100021 3 udp 59769 nlockmgr
100021 4 udp 59769 nlockmgr
100021 1 tcp 35313 nlockmgr
100021 3 tcp 35313 nlockmgr
100021 4 tcp 35313 nlockmgr
100005 1 udp 36058 mountd
100005 1 tcp 55849 mountd
100005 2 udp 40768 mountd
100005 2 tcp 51137 mountd
100005 3 udp 49040 mountd
100005 3 tcp 44841 mountd
Codice: Seleziona tutto
root@pi4:~# rpcinfo -p 192.168.1.10
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 36014 status
100024 1 tcp 49457 status
100011 1 udp 52201 rquotad
100011 2 udp 52201 rquotad
100011 1 tcp 52319 rquotad
100011 2 tcp 52319 rquotad
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
100021 1 udp 59769 nlockmgr
100021 3 udp 59769 nlockmgr
100021 4 udp 59769 nlockmgr
100021 1 tcp 35313 nlockmgr
100021 3 tcp 35313 nlockmgr
100021 4 tcp 35313 nlockmgr
100005 1 udp 36058 mountd
100005 1 tcp 55849 mountd
100005 2 udp 40768 mountd
100005 2 tcp 51137 mountd
100005 3 udp 49040 mountd
100005 3 tcp 44841 mountd
Codice: Seleziona tutto
/mnt/wd2 192.168.1.86(rw,fsid=0,no_subtree_check,sync,no_root_squash,anonuid=1000,anongid=1000,insecure,nohide)
Codice: Seleziona tutto
/mnt 192.168.1.86(rw,fsid=0,no_subtree_check,sync,no_root_squash,insecure)
/mnt/wd1 192.168.1.86(rw,no_subtree_check,sync,no_root_squash,anonuid=1000,anongid=1000,insecure,nohide)
/mnt/wd2 192.168.1.86(rw,no_subtree_check,sync,no_root_squash,anonuid=1000,anongid=1000,insecure,nohide)
Codice: Seleziona tutto
/mnt/hd_wd 192.168.0.0/24(rw,async,no_subtree_check,no_root_squash,nohide)
/opt/slackers 192.168.0.0/24(rw,async,no_subtree_check,no_root_squash,nohide)
Codice: Seleziona tutto
/export 192.168.0.0/24(rw,fsid=0,async,no_subtree_check,no_root_squash)
/export/hd_wd 192.168.0.0/24(rw,async,no_subtree_check,no_root_squash,nohide)
/export/slackers 192.168.0.0/24(rw,async,no_subtree_check,no_root_squash,nohide)
Codice: Seleziona tutto
/opt/slackers /export/slackers none bind 0 0
/mnt/hd_wd /export/hd_wd none bind 0 0
Sembra che slackware al momento non supporti NFS4.sya54M ha scritto:Codice: Seleziona tutto
rpcinfo -p 192.168.1.10 program vers proto port service [...] 100003 3 tcp 2049 nfs 100227 3 tcp 2049 nfs_acl
Tuttavia sembra che quel '--enable-nfsv4=no' non sia sufficiente a disabilitare il supporto alla versione 4, dato che basta un riavvio del server per farlo apparire magicamente nell'output di rpcinfo:# No NFSv4 yet -- it requires additional libraries.Codice: Seleziona tutto
# No NFSv4 yet -- it requires additional libraries. [....] ./configure \ [...] --enable-nfsv4=no \ [...] # No NFSv4 yet, so remove these: rm -f $PKG/sbin/*nfs4
Codice: Seleziona tutto
/etc/rc.d/rc.nfsd restart
Starting NFS server daemons:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd 8
/usr/sbin/rpc.mountd
Codice: Seleziona tutto
rpcinfo -p localhost | grep nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
Codice: Seleziona tutto
RPC_NFSD_OPTS="-N 4"
Codice: Seleziona tutto
etc/rc.d/rc.nfsd restart
Starting NFS server daemons:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd -N 4 8
/usr/sbin/rpc.mountd
Codice: Seleziona tutto
root@current:~# rpcinfo -p localhost | grep nfs
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
Codice: Seleziona tutto
mkdir -pv /srv/nfs/{wd1,wd2}
chown -v 1000:1000 /srv/nfs/{wd1,wd2}
Codice: Seleziona tutto
cat /etc/exports
/srv/nfs/wd1 192.168.0.0/16(rw,no_root_squash,no_subtree_check)
/srv/nfs/wd2 192.168.0.0/16(rw,no_root_squash,no_subtree_check)
Codice: Seleziona tutto
exportfs -avr
exporting 192.168.0.0/16:/srv/nfs/wd2
exporting 192.168.0.0/16:/srv/nfs/wd1
Codice: Seleziona tutto
sudo mount -v 192.168.122.51:/srv/nfs/wd1 ~/nfs
mount.nfs: timeout set for Thu Sep 19 17:38:37 2019
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.122.51,clientaddr=192.168.122.1'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.122.51,clientaddr=192.168.122.1'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4,addr=192.168.122.51,clientaddr=192.168.122.1'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=192.168.122.51'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.122.51 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.122.51 prog 100005 vers 3 prot UDP port 48321
Codice: Seleziona tutto
root@pi4:~# cat /etc/default/nfs
# See also /etc/default/rpc
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support:
#RPC_NFSD_OPTS="-N 2 -N 3"
# Turn off v4 protocol support:
RPC_NFSD_OPTS="-N 4"
# Number of nfs server processes to be started.
# The default is 8.
#RPC_NFSD_COUNT=8
root@pi4:~# cat /etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
/mnt/wd1 192.168.1.86(rw,sync,no_subtree_check,no_root_squash)
/mnt/wd2 192.168.1.86(rw,sync,no_subtree_check,no_root_squash)
root@pi4:~# rpcinfo -p localhost | grep nfs
100003 3 tcp 2049 nfs
100227 3 tcp 2049 nfs_acl
Codice: Seleziona tutto
bash-5.0# mount -v -o vers=3 192.168.1.10:/mnt/wd2 /mnt/wd2
mount.nfs: timeout set for Fri Sep 20 09:34:05 2019
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: trying text-based options 'vers=3,addr=192.168.1.10'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot UDP port 51298
mount.nfs: portmap query retrying: RPC: Unable to receive - Success
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.1.10 prog 100005 vers 3 prot TCP port 55901
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
Ok, l'errore è chiaro - non c'entra con la configurazione.sya54M ha scritto:sya54M ha scritto:Codice: Seleziona tutto
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
Codice: Seleziona tutto
ps ax | grep rpc
Codice: Seleziona tutto
root@pi4:~# ps ax | grep rpc
40 ? I< 0:00 [rpciod]
2891 ? Ss 0:00 /sbin/rpcbind -l
2896 ? Ss 0:00 /sbin/rpc.statd
16799 ? Ss 0:00 /usr/sbin/rpc.rquotad
16981 pts/0 S+ 0:00 grep rpc
Codice: Seleziona tutto
bash-5.0# ps ax | grep rpc
732 ? I< 0:00 [rpciod]
1637 pts/2 S+ 0:00 grep rpc
4023 ? Ss 0:00 /sbin/rpcbind -l
4028 ? Ss 0:00 /sbin/rpc.statd
Manca rpc.mountd. Ci credo che non va.sya54M ha scritto:sul server:Codice: Seleziona tutto
root@pi4:~# ps ax | grep rpc 40 ? I< 0:00 [rpciod] 2891 ? Ss 0:00 /sbin/rpcbind -l 2896 ? Ss 0:00 /sbin/rpc.statd 16799 ? Ss 0:00 /usr/sbin/rpc.rquotad 16981 pts/0 S+ 0:00 grep rpc
Codice: Seleziona tutto
which rpc.mountd
Codice: Seleziona tutto
root@pi4:/etc/rc.d# which rpc.mountd
/usr/sbin/rpc.mountd
Codice: Seleziona tutto
/usr/sbin/rpc.mountd
/etc/rc.d/rc.nfsd restart
ps ax | grep rpc
Codice: Seleziona tutto
root@pi4:/etc/rc.d# ps ax | grep rpc
40 ? I< 0:00 [rpciod]
2891 ? Ss 0:00 /sbin/rpcbind -l
2896 ? Ss 0:00 /sbin/rpc.statd
17047 ? Ss 0:00 /usr/sbin/rpc.rquotad
17059 ? Ss 0:00 /usr/sbin/rpc.mountd
17061 pts/0 S+ 0:00 grep rpc
Codice: Seleziona tutto
/etc/rc.d/rc.nfsd stop
/usr/sbin/rpc.mountd
/etc/rc.d/rc.nfsd start
ps ax | grep rpc
Codice: Seleziona tutto
root@pi4:/etc/rc.d# /etc/rc.d/rc.nfsd stop
root@pi4:/etc/rc.d# /usr/sbin/rpc.mountd
root@pi4:/etc/rc.d# /etc/rc.d/rc.nfsd start
Starting NFS server daemons:
/usr/sbin/exportfs -r
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.nfsd -N 4 8
/usr/sbin/rpc.mountd
root@pi4:/etc/rc.d# ps ax | grep rpc
40 ? I< 0:00 [rpciod]
2891 ? Ss 0:00 /sbin/rpcbind -l
2896 ? Ss 0:00 /sbin/rpc.statd
17131 ? Ss 0:00 /usr/sbin/rpc.rquotad
17145 pts/0 S+ 0:00 grep rpc
sya54M ha scritto:è partito ma non cambia niente
È tutto molto strano. Perché non lo fa partire lo script /etc/rc.d/rc.nfsd?sya54M ha scritto:è sparito di nuovo stoppando rc.nfsd
Codice: Seleziona tutto
38 ? I< 0:00 [rpciod]
1024 ? Ss 0:00 /sbin/rpcbind -l -w
1029 ? Ss 0:00 /sbin/rpc.statd
1365 ? Ss 0:00 /usr/sbin/rpc.rquotad
1377 ? Ss 0:00 /usr/sbin/rpc.mountd