Newsgroup: it.comp.os.linux.iniziare
Titolo: problemi con NFS

Ciao a tutti e auguri di buone feste. Questo e' il messaggio che ho 
trovato oggi. Come lo risolvo?
 
root@casa07:/home/massimo# mount -a
mount.nfs: requested NFS version or transport protocol is not supported
 
 
grazie.
massimo

...per completezza, questo e' il messaggio che ricevo dal server in cui 
condivido due dischi:
 
 
rpc.nfsd: no process found
Stopping nfs-kernel-server (via systemctl): nfs-kernel-server.service.
Starting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceJob 
for nfs-server.service failed because the control process exited with 
error code.
See "systemctl status nfs-server.service" and "journalctl -xe" for details.
  failed!

per vedere errori io uso:
 
systemctl --failed
journalctl -b -p err
 
e i servizi per usare NFS
 
nfs-server
nfs-client
rpcbind.service
rpcbind.socket
 
abilitati e avviati


fatto. Ecco il problema rilevato:
 
root@casa00:/home/massimo# systemctl —failed
   UNIT               LOAD   ACTIVE SUB    DESCRIPTION 
 
● nfs-server.service loaded failed failed NFS server and services 
 
 
LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
 
1 loaded units listed. Pass —all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
root@casa00:/home/massimo#
 
 
Massimo Peca, [26.12.17 11:24]
root@casa00:/home/massimo# systemctl —failed
   UNIT               LOAD   ACTIVE SUB    DESCRIPTION 
 
● nfs-server.service loaded failed failed NFS server and services 
 
 
LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
 
1 loaded units listed. Pass —all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
root@casa00:/home/massimo#
 
root@casa00:/home/massimo# systemctl status nfs-kernel-server
● nfs-server.service - NFS server and services
    Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; 
vendor preset: enabled)
    Active: failed (Result: exit-code) since Mon 2017-12-25 21:05:01 
CET; 14h ago
 
dic 25 21:05:01 casa00 systemd[1]: Starting NFS server and services...
dic 25 21:05:01 casa00 exportfs[362]: exportfs: Failed to stat 
/media/massimo/dati02/dati/file-completati: No such file or directory
dic 25 21:05:01 casa00 exportfs[362]: exportfs: Failed to stat 
/media/massimo/dati01/dati: No such file or directory
dic 25 21:05:01 casa00 systemd[1]: nfs-server.service: Control process 
exited, code=exited status=1
dic 25 21:05:01 casa00 systemd[1]: Failed to start NFS server and services.
dic 25 21:05:01 casa00 systemd[1]: nfs-server.service: Unit entered 
failed state.
dic 25 21:05:01 casa00 systemd[1]: nfs-server.service: Failed with 
result 'exit-code'.
root@casa00:/home/massimo#
 
Considerata la mia ignoranza, come lo risolvo?
Grazie.
 
saluti.
massimo

 result 'exit-code'.
 
 
Mi pare chiaro,la risorsa non e' disponibile/raggiungibile,che hai in 
/etc/fstab?
riesci a pingare il server?

 riesci a pingare il server?
si, regolarmente.
 
Ti ringrazio tantissimo, Senza il tuo aiuto non avrei saputo come fare.
E' bello sapere di poter contare su delle persone competenti e 
disponibili, anche in giorni di feste, come questi.
 
Buone feste e grazie ancora,
massimo


Ringrazio io te per il feedback,d'altronde oltre 18 anni di 
"linux"(slackware e arch) qualcosina mi hanno insegnato :-),quando 
l'installer e' "testuale" ti obbliga a commutare su "ON" il 
cervello,capisciamme'|
 

 cervello,capisciamme'|
 
 
Purtroppo ci risiamo. Ho solo fatto un aggiornamento del server: da 8.9 
a 9.3 Debian ed ecco il risultato dei client (due portatili con Debian 9.3):
 
root@casa01:/home/massimo# mount -a
mount.nfs: access denied by server while mounting 
192.168.1.3:/media/dati01/dati
mount.nfs: access denied by server while mounting 
192.168.1.3:/media/dati02/dati/file-completati
 
mentre sul server, mi pare, vada tutto bene:
 
root@casa00:/home/massimo# systemctl status nfs-kernel-server
● nfs-server.service - NFS server and services
    Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; 
vendor preset: enabled)
    Active: active (exited) since Sun 2018-01-07 01:03:47 CET; 46min ago
   Process: 1174 ExecStopPost=/usr/sbin/exportfs -f (code=exited, 
status=0/SUCCESS)
   Process: 1172 ExecStopPost=/usr/sbin/exportfs -au (code=exited, 
status=0/SUCCESS)
   Process: 1169 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, 
status=0/SUCCESS)
   Process: 1189 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, 
status=0/SUCCESS)
   Process: 1187 ExecStartPre=/usr/sbin/exportfs -r (code=exited, 
status=0/SUCCESS)
  Main PID: 1189 (code=exited, status=0/SUCCESS)
     Tasks: 0 (limit: 4915)
    CGroup: /system.slice/nfs-server.service
 
gen 07 01:03:47 casa00 systemd[1]: Starting NFS server and services...
gen 07 01:03:47 casa00 systemd[1]: Started NFS server and services.
root@casa00:/home/massimo#
 
il file fstab e':
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=f6ac1813-2625-489e-a111-f1b4c2b23957 /               ext4 
errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=ac800ba3-3ffd-42af-9b85-bc7c550b5e04 none            swap    sw 
      0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
192.168.1.3:/media/dati01/dati	/home/massimo/dati01-casa00/	nfs
192.168.1.3:/media/dati02/dati/file-completati 
/home/massimo/dati02-casa00/	nfs
 
il file exports del server e':
# /etc/exports: the access control list for filesystems which may be 
exported
#    to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) 
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/media/dati01/dati  *(rw,sync,no_subtree_check)
/media/dati02/dati/file-completati  *(rw,sync,no_subtree_check)
 
Ho provato a cercare una soluzione immettendo il testo dell'errore su 
google ed ho seguito i controlli suggeriti, ma non sono riuscito a 
torvare niente che non vada.
Ma, sicuramente mi e' sfuggito qualcosa.
Cosa?
 
Grazie.
massimo