Print this page
    
11083 support NFS server in zone
Portions contributed by: Dan Kruchinin <dan.kruchinin@nexenta.com>
Portions contributed by: Stepan Zastupov <stepan.zastupov@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Portions contributed by: Mike Zeller <mike@mikezeller.net>
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Portions contributed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Change-Id: I22f289d357503f9b48a0bc2482cc4328a6d43d16
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/cmd/fs.d/nfs/svc/nlockmgr.xml
          +++ new/usr/src/cmd/fs.d/nfs/svc/nlockmgr.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   CDDL HEADER START
   5    5  
   6    6   The contents of this file are subject to the terms of the
   7    7   Common Development and Distribution License (the "License").
   8    8   You may not use this file except in compliance with the License.
   9    9  
  10   10   You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11   11   or http://www.opensolaris.org/os/licensing.
  12   12   See the License for the specific language governing permissions
  13   13   and limitations under the License.
  14   14  
  
    | 
      ↓ open down ↓ | 
    14 lines elided | 
    
      ↑ open up ↑ | 
  
  15   15   When distributing Covered Code, include this CDDL HEADER in each
  16   16   file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   17   If applicable, add the following below this CDDL HEADER, with the
  18   18   fields enclosed by brackets "[]" replaced with your own identifying
  19   19   information: Portions Copyright [yyyy] [name of copyright owner]
  20   20  
  21   21   CDDL HEADER END
  22   22  
  23   23          Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24          Copyright (c) 2012, 2015 by Delphix. All rights reserved.
       25 +        Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
       26 +        Copyright 2019 Nexenta by DDN, Inc.  All rights reserved.
  25   27  
  26   28          NOTE:  This service manifest is not editable; its contents will
  27   29          be overwritten by package or patch operations, including
  28   30          operating system upgrade.  Make customizations in a different
  29   31          file.
  30   32  
  31   33          Note: if this service is modified to consist of anything other
  32   34          than a single instance named 'default', you must make changes to
  33   35          $SRC/head/rpcsvc/daemon_utils.h and libnsl:open_daemon_lock().
  34   36  -->
  35   37  
  36   38  <service_bundle type='manifest' name='SUNWnfscr:nfs-nlockmgr'>
  37   39  
  38   40  <service
  39   41          name='network/nfs/nlockmgr'
  40   42          type='service'
  41   43          version='2'>
  42   44  
  43   45          <dependency name='network'
  44   46              grouping='require_any'
  45   47              restart_on='error'
  46   48              type='service'>
  47   49                  <service_fmri value='svc:/milestone/network' />
  48   50          </dependency>
  49   51  
  50   52          <dependency name='rpcbind'
  51   53              grouping='require_all'
  52   54              restart_on='restart'
  53   55              type='service'>
  54   56                  <service_fmri value='svc:/network/rpc/bind' />
  55   57          </dependency>
  56   58  
  57   59          <dependency name='status'
  
    | 
      ↓ open down ↓ | 
    23 lines elided | 
    
      ↑ open up ↑ | 
  
  58   60              grouping='require_all'
  59   61              restart_on='error'
  60   62              type='service'>
  61   63                  <service_fmri value='svc:/network/nfs/status' />
  62   64          </dependency>
  63   65  
  64   66          <dependency name='filesystem-minimal'
  65   67              grouping='require_all'
  66   68              restart_on='error'
  67   69              type='service'>
  68      -                <service_fmri value='svc:/system/filesystem/minimal' />
       70 +                <service_fmri value='svc:/system/filesystem/minimal' />
  69   71          </dependency>
  70   72  
  71   73          <exec_method
  72   74              type='method'
  73   75              name='start'
  74   76              exec='/lib/svc/method/nlockmgr'
  75   77              timeout_seconds='300' />
  76   78  
  77   79          <exec_method
  78   80              type='method'
  79   81              name='stop'
  80   82              exec=':kill'
  81   83              timeout_seconds='60' />
  82   84  
  83   85          <property_group name='firewall_context' type='com.sun,fw_definition'>
  84   86                  <propval name='isrpc' type='boolean' value='true' />
  85   87                  <propval name='name' type='astring' value='nlockmgr' />
  
    | 
      ↓ open down ↓ | 
    7 lines elided | 
    
      ↑ open up ↑ | 
  
  86   88                  <propval name='ipf_method' type='astring'
  87   89                          value='/lib/svc/method/nfs-server ipfilter' />
  88   90          </property_group>
  89   91  
  90   92          <property_group name='application' type='framework'>
  91   93                  <stability value='Evolving' />
  92   94                  <propval name='auto_enable' type='boolean' value='true' />
  93   95          </property_group>
  94   96          <instance name='default' enabled='false'>
  95   97            <property_group name='nfs-props' type='com.oracle.nfs,props'>
  96      -            <propval name='grace_period' type='integer' value='90'/>
       98 +            <propval name='grace_period' type='integer' value='60'/>
  97   99              <propval name='lockd_listen_backlog' type='integer' value='32'/>
  98  100              <propval name='lockd_retransmit_timeout' type='integer' value='5'/>
  99  101              <propval name='lockd_servers' type='integer' value='256'/>
 100  102            </property_group>
 101  103          </instance>
 102  104          <stability value='Stable' />
 103  105  
 104  106          <template>
 105  107                  <common_name>
 106  108                          <loctext xml:lang='C'>
 107  109                                  NFS lock manager
 108  110                          </loctext>
 109  111                  </common_name>
 110  112                  <documentation>
 111  113                          <manpage title='lockd' section='1M'
 112  114                                  manpath='/usr/share/man' />
 113  115                  </documentation>
 114  116          </template>
 115  117  </service>
 116  118  
 117  119  </service_bundle>
  
    | 
      ↓ open down ↓ | 
    11 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX