Re: mount nfs fallisce

2017-01-08 Per discussione Ambrogio Ratti

Il 08/01/2017 14:34, Mauro Morichi ha scritto:

e poi, comunque, male che va, puoi tentare le connessioni a mano,
senza usare fstab tutte le volte. una volta che hai risolto, puoi
inserire la stringa corretta in fstab.

cambia poco:

mount -t nfs -o rw,nfsvers=3 192.168.0.10:/lavoro /mnt/lavoro


Questo è il risultato:
root@ambro10:/home/ambrogio# mount -v -t nfs -o rw,nfsvers=3 
192.168.0.10:/lavoro /mnt/lavoro

mount.nfs: timeout set for Sun Jan  8 19:15:04 2017
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.10'
mount.nfs: prog 13, trying vers=3, prot=6
mount.nfs: trying 192.168.0.10 prog 13 vers 3 prot TCP port 2049
mount.nfs: prog 15, trying vers=3, prot=17
mount.nfs: trying 192.168.0.10 prog 15 vers 3 prot UDP port 37253
mount.nfs: portmap query failed: RPC: Authentication error
mount.nfs: access denied by server while mounting 192.168.0.10:/lavoro

Ora sembra che il problema è sul server, ma prima dell'aggiornamento 
(client) funzionava.
Potrebbe dipendere dal fatto che prima dell'aggiornamento del client nfs 
funzionava con portmap mentre ora usa rpcbind?

Non ricordo che kernel avevo prima dell'aggiornamento.

Ambrogio



Re: mount nfs fallisce

2017-01-08 Per discussione Mauro Morichi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256



Il 08/01/17 09:41, Ambrogio Ratti ha scritto:
>> 
> 192.168.0.10:/lavoro/mnt/lavoro nfs 
> user,rw,timeo=30,intr,hard  0   0

modificherei in questo modo:
192.168.0.10:/lavoro /mnt/lavoro nfs user,rw,nfsvers=3 0 0

nfsvers: obbliga al protocollo 3.
toglierei hard, perche' in caso di problemi sul server nfs, il client
ti si inchioda in attesa che la connessione venga ristabilita.

l'errore che ti ha dato nell'ultimo tentativo dovrebbe riguardare un
errore di scrittura della riga.

e poi, comunque, male che va, puoi tentare le connessioni a mano,
senza usare fstab tutte le volte. una volta che hai risolto, puoi
inserire la stringa corretta in fstab.

cambia poco:

mount -t nfs -o rw,nfsvers=3 192.168.0.10:/lavoro /mnt/lavoro
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCAAGBQJYcj/JAAoJEGBLG3R4+/Fl35cIALPgvJoCLViCo5jNUzbW+WPc
HG9bdF6pC9ybX+UbZ2fNlvNqRi0eigJV/JBj+clwHB2aM/buK6KqHyN9oMnVwp3i
dTwwD075wqK+KezgSfXdrgobR0vJ0fqwqz7tVZ64C1fKEB4dBR9j2YWZxFwUNSxc
whZGCzdl8sxXGb6y1e0XVljjhUYswmlTzIqMvnNb9FfWOlwStYa3f+uTRD0va3Me
UW7jJ/h7p8VuB0ub/gzWFRSDn7IsAIyOMSIuXKP5kCGhYxeuCpq6ZTJWXMYT7g2Q
ykCU727C4xp2+ndHpN5ttDSf+cZBhLKNTYR7eeX88n+JRHZ6DYGOi7V0QlYa8VI=
=6sFc
-END PGP SIGNATURE-



Re: mount nfs fallisce

2017-01-08 Per discussione Ambrogio Ratti

Il 08/01/2017 08:53, Mauro ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256




ci puoi postare quella riga? forse manca una virgola, l'opzione e nel
punto sbagliato.


192.168.0.10:/lavoro/mnt/lavoro nfs 
user,rw,timeo=30,intr,hard  0   0


ambrogio



Re: mount nfs fallisce

2017-01-07 Per discussione Mauro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256



Il 08/01/17 08:31, Ambrogio Ratti ha scritto:
>> 
> non funziona, il risultato è: root@ambro10:/home/ambrogio# mount -v
> /mnt/lavoro/ mount: unknown filesystem type 'nfsvers=3'

na, errore diverso.
ci puoi postare quella riga? forse manca una virgola, l'opzione e nel
punto sbagliato.

dovresti avere una cosa del genere:

192.168.0.194:/home/mail /home/net065-194 nfs
rw,noexec,nosuid,proto=tcp 0 0
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQEcBAEBCAAGBQJYce/uAAoJEGBLG3R4+/Fl/GgH/icJDwW+zJGpR0xEi6FX+VXv
t/4A9YppUjzFVcwlXxOFIoC24iXR2u1Iv1WzAluYy++PjnNbtKGrOU3FrZ67wy63
eo3sYsLwr65gaZ2ekOnFNVlfnVHFV0l4qDpshdTXRGZcV1XSDKyZFzXRELju0ZF8
7CvSX6LEQde9WgAeTTnmyw7YtZQ/EDjSlv1vmoAYKfHqwWIUDe37nD6GgtARY7tN
zIY0RB+9Unb9i/pHTiIcB3N2BXavS+n0sPM85er14mzg6c5s8yxvPhAzikUGq4Ot
io5W/ch65s3uuY3oJi1S3qaPy75LtJvCpengtW+IABrgzEi3/kJRBKV1sq+JoEw=
=STel
-END PGP SIGNATURE-



Re: mount nfs fallisce

2017-01-07 Per discussione Ambrogio Ratti


Il 08/01/2017 01:31, Gian Carlo ha scritto:


Nella riga di mount, in fstab, aggiungi l'opzione "nfsvers=3"

gc


non funziona, il risultato è:
root@ambro10:/home/ambrogio# mount -v /mnt/lavoro/
mount: unknown filesystem type 'nfsvers=3'



Re: mount nfs fallisce

2017-01-07 Per discussione Gian Carlo
Il 07/01/2017 07:50, Ambrogio Ratti ha scritto:
> Il 06/01/2017 20:22, Walter Valenti ha scritto:
>>
>> Dovresti poterlo vedere con:
>> rpcinfo -p localhost
>>
>>
> Sul server trovo:
>  root@serv1:~# rpcinfo -p localhost
>  programma vers proto   porta
> 102   tcp111  portmapper
> 102   udp111  portmapper
> 1000241   udp  59961  status
> 1000241   tcp  59676  status
> 1000211   udp  33420  nlockmgr
> 1000213   udp  33420  nlockmgr
> 1000214   udp  33420  nlockmgr
> 1000211   tcp  59487  nlockmgr
> 1000213   tcp  59487  nlockmgr
> 1000214   tcp  59487  nlockmgr
> 132   tcp   2049  nfs
> 133   tcp   2049  nfs
> 134   tcp   2049  nfs
> 132   udp   2049  nfs
> 133   udp   2049  nfs
> 134   udp   2049  nfs
> 151   udp  33562  mountd
> 151   tcp  56191  mountd
> 152   udp  33562  mountd
> 152   tcp  56191  mountd
> 153   udp  33562  mountd
> 153   tcp  56191  mountd

Nella riga di mount, in fstab, aggiungi l'opzione "nfsvers=3"

gc



Re: mount nfs fallisce

2017-01-06 Per discussione Ambrogio Ratti

Il 06/01/2017 20:22, Walter Valenti ha scritto:


Dovresti poterlo vedere con:
rpcinfo -p localhost



Sul server trovo:
 root@serv1:~# rpcinfo -p localhost
 programma vers proto   porta
102   tcp111  portmapper
102   udp111  portmapper
1000241   udp  59961  status
1000241   tcp  59676  status
1000211   udp  33420  nlockmgr
1000213   udp  33420  nlockmgr
1000214   udp  33420  nlockmgr
1000211   tcp  59487  nlockmgr
1000213   tcp  59487  nlockmgr
1000214   tcp  59487  nlockmgr
132   tcp   2049  nfs
133   tcp   2049  nfs
134   tcp   2049  nfs
132   udp   2049  nfs
133   udp   2049  nfs
134   udp   2049  nfs
151   udp  33562  mountd
151   tcp  56191  mountd
152   udp  33562  mountd
152   tcp  56191  mountd
153   udp  33562  mountd
153   tcp  56191  mountd

Sul client trovo:
root@ambro10:/home/ambrogio# rpcinfo -p localhost
   program vers proto   port  service
104   tcp111  portmapper
103   tcp111  portmapper
102   tcp111  portmapper
104   udp111  portmapper
103   udp111  portmapper
102   udp111  portmapper

Ambrogio Ratti



Re: mount nfs fallisce

2017-01-06 Per discussione Walter Valenti


> 
> Il 06/01/2017 19:51, Walter Valenti ha scritto:
>>  Il pacchetto nfs-common è presente sul PC ? 
> Si
> 
>>  Il server supporta nfs 4.x o è solo nfs 3.x ?
>> 
>> 
> Bella domanda, che anch'io mi sono posto ma non so come fare a capire.
> Sul server ho provato questo:
> root@serv1:/# lsmod | grep nfs
> nfsd  193055  13
> exportfs2586  1 nfsd
> nfs   206510  0
> lockd  49301  2 nfsd,nfs
> fscache24422  1 nfs
> nfs_acl 1695  2 nfsd,nfs
> auth_rpcgss25200  2 nfsd,nfs
> sunrpc134340  12 nfsd,nfs,lockd,nfs_acl,auth_rpcgss


Dovresti poterlo vedere con:
rpcinfo -p localhost

Walter



Re: mount nfs fallisce

2017-01-06 Per discussione Ambrogio Ratti

Il 06/01/2017 19:51, Walter Valenti ha scritto:
Il pacchetto nfs-common è presente sul PC ? 

Si

Il server supporta nfs 4.x o è solo nfs 3.x ?



Bella domanda, che anch'io mi sono posto ma non so come fare a capire.
Sul server ho provato questo:
root@serv1:/# lsmod | grep nfs
nfsd  193055  13
exportfs2586  1 nfsd
nfs   206510  0
lockd  49301  2 nfsd,nfs
fscache24422  1 nfs
nfs_acl 1695  2 nfsd,nfs
auth_rpcgss25200  2 nfsd,nfs
sunrpc134340  12 nfsd,nfs,lockd,nfs_acl,auth_rpcgss

Può essere d'aiuto?
Grazie
Ambrogio Ratti



Re: mount nfs fallisce

2017-01-06 Per discussione Walter Valenti
17 19:27

> Oggetto: mount nfs fallisce
> 
> Ho un pc con debian stretch e kernel 4.8.0-2-amd64 #1 SMP Debian 
> 4.8.11-1 (2016-12-02) x86_64 GNU/Linux.
> Dopo l'ultimo aggiornamento non riesco a montare una directory di un 
> server. Il tentativo di montare questa directory mi restituisce:
> 
> root@ambro10:/home/ambrogio# mount -v /mnt/lavoro/
> mount.nfs: timeout set for Fri Jan  6 19:22:17 2017
> mount.nfs: trying text-based options 
> 'timeo=30,intr,hard,vers=4.2,addr=192.168.0.10,clientaddr=192.168.0.14'
> mount.nfs: mount(2): Protocol not supported
> mount.nfs: trying text-based options 
> 'timeo=30,intr,hard,vers=4.1,addr=192.168.0.10,clientaddr=192.168.0.14'
> mount.nfs: mount(2): Input/output error
> mount.nfs: mount system call failed


Il pacchetto nfs-common è presente sul PC ?
Il server supporta nfs 4.x o è solo nfs 3.x ?


Walter



mount nfs fallisce

2017-01-06 Per discussione Ambrogio Ratti
Ho un pc con debian stretch e kernel 4.8.0-2-amd64 #1 SMP Debian 
4.8.11-1 (2016-12-02) x86_64 GNU/Linux.
Dopo l'ultimo aggiornamento non riesco a montare una directory di un 
server. Il tentativo di montare questa directory mi restituisce:


root@ambro10:/home/ambrogio# mount -v /mnt/lavoro/
mount.nfs: timeout set for Fri Jan  6 19:22:17 2017
mount.nfs: trying text-based options 
'timeo=30,intr,hard,vers=4.2,addr=192.168.0.10,clientaddr=192.168.0.14'

mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 
'timeo=30,intr,hard,vers=4.1,addr=192.168.0.10,clientaddr=192.168.0.14'

mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

Il server ha un sistema debian squeeze kernel 2.6.32

Ho fatto parecchie ricerche con google ma non ho risolto.
Potete aiutarmi, grazie.

Ambrogio Ratti



mount nfs fallisce

2017-01-06 Per discussione Ambrogio Ratti
Ho un pc con debian stretch e kernel 4.8.0-2-amd64 #1 SMP Debian 
4.8.11-1 (2016-12-02) x86_64 GNU/Linux.
Dopo l'ultimo aggiornamento non riesco a montare una directory di un 
server. Il tentativo di montare questa directory mi restituisce:


root@ambro10:/home/ambrogio# mount -v /mnt/lavoro/
mount.nfs: timeout set for Fri Jan  6 19:22:17 2017
mount.nfs: trying text-based options 
'timeo=30,intr,hard,vers=4.2,addr=192.168.0.10,clientaddr=192.168.0.14'

mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 
'timeo=30,intr,hard,vers=4.1,addr=192.168.0.10,clientaddr=192.168.0.14'

mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

Il server ha un sistema debian squeeze kernel 2.6.32

Ho fatto parecchie ricerche con google ma non ho risolto.
Potete aiutarmi, grazie.

Ambrogio Ratti