Print this page
Bump XML versions per Gordon
7651 default maximum nfs server threads is insufficient
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/fs.d/nfs/svc/server.xml
+++ new/usr/src/cmd/fs.d/nfs/svc/server.xml
1 1 <?xml version="1.0"?>
2 2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 3 <!--
4 4
5 5 CDDL HEADER START
6 6
7 7 The contents of this file are subject to the terms of the
8 8 Common Development and Distribution License (the "License").
9 9 You may not use this file except in compliance with the License.
10 10
11 11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 12 or http://www.opensolaris.org/os/licensing.
13 13 See the License for the specific language governing permissions
14 14 and limitations under the License.
|
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15
16 16 When distributing Covered Code, include this CDDL HEADER in each
17 17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 18 If applicable, add the following below this CDDL HEADER, with the
19 19 fields enclosed by brackets "[]" replaced with your own identifying
20 20 information: Portions Copyright [yyyy] [name of copyright owner]
21 21
22 22 CDDL HEADER END
23 23
24 24 Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
25 + Copyright (c) 2012 by Delphix. All rights reserved.
25 26 Copyright 2014 Nexenta Systems, Inc. All rights reserved
26 27 Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
27 28
28 29 NOTE: This service manifest is not editable; its contents will
29 30 be overwritten by package or patch operations, including
30 31 operating system upgrade. Make customizations in a different
31 32 file.
32 33
33 34 Note: if this service is modified to consist of anything other
34 35 than a single instance named 'default', you must make changes to
35 36 $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
36 37 -->
37 38
38 39 <service_bundle type='manifest' name='SUNWnfssr:nfs-server'>
39 40
40 41 <service
41 42 name='network/nfs/server'
42 43 type='service'
43 - version='1'>
44 + version='2'>
44 45
45 46 <dependency name='network'
46 47 grouping='require_any'
47 48 restart_on='error'
48 49 type='service'>
49 50 <service_fmri value='svc:/milestone/network' />
50 51 </dependency>
51 52
52 53 <dependency name='nlockmgr'
53 54 grouping='require_all'
54 55 restart_on='error'
55 56 type='service'>
56 57 <service_fmri value='svc:/network/nfs/nlockmgr' />
57 58 </dependency>
58 59
59 60 <dependency name='mapid'
60 61 grouping='optional_all'
61 62 restart_on='error'
62 63 type='service'>
63 64 <service_fmri value='svc:/network/nfs/mapid' />
64 65 </dependency>
65 66
66 67 <dependency name='rpcbind'
67 68 grouping='require_all'
68 69 restart_on='restart'
69 70 type='service'>
70 71 <service_fmri value='svc:/network/rpc/bind' />
71 72 </dependency>
72 73
73 74 <dependency name='keyserv'
74 75 grouping='optional_all'
75 76 restart_on='none'
76 77 type='service'>
77 78 <service_fmri value='svc:/network/rpc/keyserv' />
78 79 </dependency>
79 80
80 81 <dependency name='gss'
81 82 grouping='optional_all'
82 83 restart_on='none'
83 84 type='service'>
84 85 <service_fmri value='svc:/network/rpc/gss' />
85 86 </dependency>
86 87
87 88 <dependency name='share-group'
88 89 grouping='optional_all'
89 90 restart_on='none'
90 91 type='service'>
91 92 <service_fmri value='svc:/network/shares/group' />
92 93 </dependency>
93 94
94 95 <dependency name='reparse'
95 96 grouping='optional_all'
96 97 restart_on='none'
97 98 type='service'>
98 99 <service_fmri value='svc:/system/filesystem/reparse' />
99 100 </dependency>
100 101
101 102 <!-- Must have all local filesystems mounted before we share them -->
102 103 <dependency name='filesystem-local'
103 104 grouping='require_all'
104 105 restart_on='error'
105 106 type='service'>
106 107 <service_fmri value='svc:/system/filesystem/local' />
107 108 </dependency>
108 109
109 110 <dependent
110 111 name='nfs-server_multi-user-server'
111 112 grouping='optional_all'
112 113 restart_on='none'>
113 114 <service_fmri value='svc:/milestone/multi-user-server' />
114 115 </dependent>
115 116
116 117 <!--
117 118 The shareall done as part of the nfs-server method may take a
118 119 long time, as the contents of dfstab can be arbitrarily large.
119 120 Set the timeout appropriately for both 'start' and 'refresh'.
120 121 -->
121 122 <exec_method
122 123 type='method'
123 124 name='start'
124 125 exec='/lib/svc/method/nfs-server %m'
125 126 timeout_seconds='3600' />
126 127
127 128 <exec_method
128 129 type='method'
129 130 name='refresh'
130 131 exec='/lib/svc/method/nfs-server %m'
131 132 timeout_seconds='3600' />
132 133
133 134 <!--
134 135 The stop method runs unshareall as well as up to a 10 second
135 136 sleep to do graceful versus forceful shutdown of daemons. Set
136 137 the timeout appropriately.
137 138 -->
138 139 <exec_method
139 140 type='method'
140 141 name='stop'
141 142 exec='/lib/svc/method/nfs-server %m %{restarter/contract}'
142 143 timeout_seconds='3600' />
143 144
144 145 <property_group name='application' type='framework'>
145 146 <stability value='Evolving' />
146 147 <propval name='auto_enable' type='boolean' value='true' />
147 148 </property_group>
148 149
149 150 <property_group name='firewall_context' type='com.sun,fw_definition'>
150 151 <propval name='name' type='astring' value='nfsd' />
151 152 <propval name='ipf_method' type='astring'
152 153 value='/lib/svc/method/nfs-server ipfilter' />
153 154 </property_group>
154 155
155 156 <property_group name='firewall_config' type='com.sun,fw_configuration'>
156 157 <propval name='policy' type='astring' value='use_global' />
157 158 <propval name='block_policy' type='astring'
158 159 value='use_global' />
159 160 <propval name='apply_to' type='astring' value='' />
160 161 <propval name='apply_to_6' type='astring' value='' />
161 162 <propval name='exceptions' type='astring' value='' />
162 163 <propval name='exceptions_6' type='astring' value='' />
163 164 <propval name='target' type='astring' value='' />
164 165 <propval name='target_6' type='astring' value='' />
165 166 <propval name='value_authorization' type='astring'
166 167 value='solaris.smf.value.firewall.config' />
|
↓ open down ↓ |
113 lines elided |
↑ open up ↑ |
167 168 </property_group>
168 169 <instance name='default' enabled='false'>
169 170 <property_group name='nfs-props' type='com.oracle.nfs,props'>
170 171 <propval name='device' type='astring' value=''/>
171 172 <propval name='listen_backlog' type='integer' value='32'/>
172 173 <propval name='max_connections' type='integer' value='-1'/>
173 174 <propval name='protocol' type='astring' value='ALL'/>
174 175 <propval name='server_delegation' type='astring' value='on'/>
175 176 <propval name='server_versmax' type='integer' value='4'/>
176 177 <propval name='server_versmin' type='integer' value='2'/>
177 - <propval name='servers' type='integer' value='16'/>
178 + <propval name='servers' type='integer' value='1024'/>
178 179 <propval name='mountd_listen_backlog' type='integer' value='64'/>
179 180 <propval name='mountd_max_threads' type='integer' value='16'/>
180 181 </property_group>
181 182 </instance>
182 183
183 184 <stability value='Stable' />
184 185
185 186 <template>
186 187 <common_name>
187 188 <loctext xml:lang='C'>
188 189 NFS server
189 190 </loctext>
190 191 </common_name>
191 192 <documentation>
192 193 <manpage title='nfsd' section='1M'
193 194 manpath='/usr/share/man' />
194 195 </documentation>
195 196 </template>
196 197 </service>
197 198
198 199 </service_bundle>
|
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX