Gentoo Archives: gentoo-user

From: Timur Aydin <ta@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] configuring NFS server to handle client reboots
Date: Sun, 30 Jun 2013 17:27:50
Message-Id: 51D06A39.7090308@taydin.org
In Reply to: [gentoo-user] configuring NFS server to handle client reboots by Timur Aydin
1 The server configuration is as follows:
2
3 ===================================================================================
4
5 bonsai ~ # cat /etc/conf.d/nfs
6 # /etc/conf.d/nfs
7
8 # If you wish to set the port numbers for lockd,
9 # please see /etc/sysctl.conf
10
11 # Optional services to include in default `/etc/init.d/nfs start`
12 # For NFSv4 users, you'll want to add "rpc.idmapd" here.
13 NFS_NEEDED_SERVICES="rpc.idmapd"
14
15 # Number of servers to be started up by default
16 OPTS_RPC_NFSD="8"
17
18 # Options to pass to rpc.mountd
19 # ex. OPTS_RPC_MOUNTD="-p 32767"
20 OPTS_RPC_MOUNTD=""
21
22 # Options to pass to rpc.statd
23 # ex. OPTS_RPC_STATD="-p 32765 -o 32766"
24 OPTS_RPC_STATD=""
25
26 # Options to pass to rpc.idmapd
27 OPTS_RPC_IDMAPD=""
28
29 # Options to pass to rpc.gssd
30 OPTS_RPC_GSSD=""
31
32 # Options to pass to rpc.svcgssd
33 OPTS_RPC_SVCGSSD=""
34
35 # Options to pass to rpc.rquotad (requires sys-fs/quota)
36 OPTS_RPC_RQUOTAD=""
37
38 # Timeout (in seconds) for exportfs
39 EXPORTFS_TIMEOUT=30
40
41 # Options to set in the nfsd filesystem (/proc/fs/nfsd/).
42 # Format is <option>=<value>. Multiple options are allowed.
43 #OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"
44
45 ===================================================================================
46
47 bonsai ~ # cat /etc/exports
48 /home/ta/uclinux_2011R1
49 *(rw,sync,all_squash,anonuid=1000,anongid=100,no_subtree_check)
50 /home/ta/tmp/flash_nfsroot
51 *(rw,sync,all_squash,anonuid=1000,anongid=100,no_subtree_check)
52
53 --
54 Timur