Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Re: [~amd64] NFS server broken again :(
Date: Tue, 28 Oct 2014 03:22:53
Message-Id: CAOdo=SyQ=Jb5-g=Uau1C1GKGYN0LXEaAXqvpg-MbHqPm5Wc5BQ@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: [~amd64] NFS server broken again :( by Tom H
1 On Mon, Oct 27, 2014 at 10:49 PM, Tom H <tomh0665@×××××.com> wrote:
2
3 > Does rpcbind.target exist? Does rpcbind.service have a "Requires" or
4 > "Wants" for rpcbind.target? Is rpcbind.service enabled?
5
6 ...
7
8 > I don't have access to a Gentoo box with nfs at the moment in order to
9 > check this but IIRC Gentoo used to use OPTS_RPC_NFSD, OPTS_RPC_MOUNTD,
10 > OPTS_RPC_STATD but it's now using upstream's RPCNFSDARGS,
11 > RPCMOUNTDARGS, STATDARGS, at least in its systemd units. Again IIRC
12 > the ebuild only changes the upstream "EnvironmentFile=" value and
13 > deep-sixes nfs-config.service.
14
15 I've just had the unoriginal idea of looking at my portage tree's
16 nfs-utils and rpcbind ebuilds and files...
17
18 The 1.2.9 nfs-utils ebuild has "systemd_dounit
19 "${FILESDIR}"/nfsd.service" where nfsd.service has
20 "Requires=rpcbind.service" and "After=rpcbind.service".
21
22 The 1.3.0 nfs-utils ebuild has "systemd_dounit
23 systemd/*.{mount,service,target}" where nfs-server.service has
24 "Requires=rpcbind.target" and After=rpcbind.target".
25
26 The rpcbind ebuild has "systemd_dounit "${FILESDIR}"/${PN}.service" so
27 there's no "${PN}.target" (and there isn't a ".target" unit in
28 $FILESDIR).
29
30 And, I was wrong:
31
32 cat $FILESDIR/nfs.confd
33 # /etc/conf.d/nfs
34
35 # If you wish to set the port numbers for lockd,
36 # please see /etc/sysctl.conf
37
38 # Optional services to include in default `/etc/init.d/nfs start`
39 # For NFSv4 users, you'll want to add "rpc.idmapd" here.
40 NFS_NEEDED_SERVICES=""
41
42 # Number of servers to be started up by default
43 OPTS_RPC_NFSD="8"
44
45 # Options to pass to rpc.mountd
46 # ex. OPTS_RPC_MOUNTD="-p 32767"
47 OPTS_RPC_MOUNTD=""
48
49 # Options to pass to rpc.statd
50 # ex. OPTS_RPC_STATD="-p 32765 -o 32766"
51 OPTS_RPC_STATD=""
52
53 # Options to pass to rpc.idmapd
54 OPTS_RPC_IDMAPD=""
55
56 # Options to pass to rpc.gssd
57 OPTS_RPC_GSSD=""
58
59 # Options to pass to rpc.svcgssd
60 OPTS_RPC_SVCGSSD=""
61
62 # Options to pass to rpc.rquotad (requires sys-fs/quota)
63 OPTS_RPC_RQUOTAD=""
64
65 # Timeout (in seconds) for exportfs
66 EXPORTFS_TIMEOUT=30
67
68 # Options to set in the nfsd filesystem (/proc/fs/nfsd/).
69 # Format is <option>=<value>. Multiple options are allowed.
70 #OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"
71
72 so if you're using the 1.3.0 nfs-utils ebuild, you have to set up the
73 variables yourself, if you need to pass different values to the
74 daemons.

Replies

Subject Author
[gentoo-user] Re: [~amd64] NFS server broken again :( walt <w41ter@×××××.com>