[Samba] Again NFSv4 and Kerberos at the 'samba way'...

Marco Gaiarin gaio at sv.lnf.it
Wed Oct 31 10:09:00 UTC 2018


Mandi! L.P.H. van Belle via samba
  In chel di` si favelave...

> And no, /etc/default/nfs-common is not ignored. Its just harder to see it. 

Ok. Good. But...


> All i did for the server was systemctl enable nfs-server
> And for the client systemctl enable nfs-client
> After the setup, all other servers start if needed based on the settings in 
> /etc/default/nfs-common and/or /etc/default/nfs-kernel-server 

...but 'nfs-client' is not a .service, but a .target, so there's no way
to enable or start it:

	root at vdmpp2:~# systemctl enable nfs-client
	Failed to enable unit: File nfs-client.service: No such file or directory
	root at vdmpp2:~# systemctl restart nfs-client
	Failed to restart nfs-client.service: Unit nfs-client.service not found.

but... AHA! i need to explicitly run with '.target'!

Anyway seems there's no way to restart it:

 root at vdmpp2:~# systemctl stop nfs-client.target
 root at vdmpp2:~# systemctl status nfs-client.target
 ● nfs-client.target - NFS client services
    Loaded: loaded (/lib/systemd/system/nfs-client.target; enabled; vendor preset: enabled)
    Active: inactive (dead) since Wed 2018-10-31 10:57:58 CET; 4s ago
 
 ott 31 10:57:46 vdmpp2 systemd[1]: Reached target NFS client services.
 ott 31 10:57:58 vdmpp2 systemd[1]: Stopped target NFS client services.
 root at vdmpp2:~# ps aux | grep rpc
 root       491  0.0  0.0      0     0 ?        S<   ott24   0:00 [rpciod]
 root      1327  0.0  0.0  49872  3372 ?        Ss   10:52   0:00 /sbin/rpcbind -f -w
 root      1339  0.0  0.0  37012  3180 ?        Ss   10:52   0:00 /usr/sbin/rpc.svcgssd
 root      1340  0.0  0.0  33180  2604 ?        Ss   10:52   0:00 /usr/sbin/rpc.gssd
 root      1400  0.0  0.0  12784   940 pts/0    S+   10:58   0:00 grep rpc


And killing by hand and try to start it again seems does not read the
/etc/default/nfs-commonf files,  where i've set some options for gssd:

 root at vdmpp2:~# kill 1339
 root at vdmpp2:~# kill 1340
 root at vdmpp2:~# ps aux | grep rpc
 root       491  0.0  0.0      0     0 ?        S<   ott24   0:00 [rpciod]
 root      1327  0.0  0.0  49872  3372 ?        Ss   10:52   0:00 /sbin/rpcbind -f -w
 root      1404  0.0  0.0  12784   960 pts/0    S+   10:58   0:00 grep rpc
 root at vdmpp2:~# systemctl start nfs-client.target
 root at vdmpp2:~# systemctl status nfs-client.target
 ● nfs-client.target - NFS client services
    Loaded: loaded (/lib/systemd/system/nfs-client.target; enabled; vendor preset: enabled)
    Active: active since Wed 2018-10-31 10:58:47 CET; 3s ago
 
 ott 31 10:58:47 vdmpp2 systemd[1]: Reached target NFS client services.
 root at vdmpp2:~# ps aux | grep rpc
 root       491  0.0  0.0      0     0 ?        S<   ott24   0:00 [rpciod]
 root      1327  0.0  0.0  49872  3372 ?        Ss   10:52   0:00 /sbin/rpcbind -f -w
 root      1414  0.0  0.0  33180  2460 ?        Ss   10:58   0:00 /usr/sbin/rpc.gssd
 root      1415  0.0  0.0  37012  3376 ?        Ss   10:58   0:00 /usr/sbin/rpc.svcgssd
 root      1420  0.0  0.0  12784   936 pts/0    S+   10:58   0:00 grep rpc
 root at vdmpp2:~# grep ^RPCGSSDOPTS= /etc/default/nfs-common
 RPCGSSDOPTS="-vvvvvvvvvv"

So 'nfs-client.target' is probably the right way to start/check nfs
client services are run on startup, but still seems not usable to
restart nfs client on a just booted system.


> If its really a computer, you should not see the Account tab. 

No, there's no 'Account' TAB. Seeems a computer. ;-)

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the samba mailing list