xml BrickstorOS上的RSF1 HA群集服务的SMF清单。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml BrickstorOS上的RSF1 HA群集服务的SMF清单。相关的知识,希望对你有一定的参考价值。

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='BrickstorOS-High-Availability:bsros-ha'>
  <service name='racktop/system/cluster' type='service' version='0'>
    <dependency
      name='network'
      grouping='require_any'
      restart_on='error'
      type='service'>
      <service_fmri value='svc:/milestone/network'/>
    </dependency>

    <dependency
      name='filesystem-local'
      grouping='require_all'
      restart_on='error'
      type='service'>
      <service_fmri value='svc:/system/filesystem/local'/>
    </dependency>

    <dependency name='multi-user' grouping='require_all' restart_on='none' type='service'>
      <service_fmri value='svc:/milestone/multi-user'/>
    </dependency>

  <instance name='default' enabled='false'>
    <exec_method name='start' type='method' exec='/opt/HAC/RSF-1/bin/rsfctl %m' timeout_seconds='60'/>
    <exec_method name='refresh' type='method' exec='true' timeout_seconds='5'/>
    <exec_method name='stop' type='method' exec='/opt/HAC/RSF-1/bin/rsfctl %m' timeout_seconds='120'/>

<!-- Example of HA service instance. Multiple instances are possible and should eventually
     be handled through creating individual SMF instances for each service. There is not
     that requirement yet.
     ipdevice names should be vnics created with dladm. By convention use floatX with 0
     being the first float device. Both nodes in a 2-way cluster should have same vnics
     otherwise service will not work correctly. The vnic property is used to determine on
     boot which vnics should be created as enabled interfaces with `ipadm`. By default,
     all interfaces are non-persistent, due to their floating nature. It is best to keep the
     vnics themselves persistent, but all the IP-level configuration should occur on demand only
     and not be persistent across reboots.

    <property_group name='service-name-from-rsf1-config' type='com.racktopsystems,ha_service'>
      <stability value='Unstable'/>
      <propval name='foobar' value='Random String' type='astring'/>
            <property name='ipdevice' type='astring'>
             <astring_list>
               <value_node value='float0'/>
               <value_node value='float1'/>
             </astring_list>
            </property>
    </property_group>
-->
    <property_group name='spearhead' type='com.racktopsystems,ha_service'>
      <stability value='Unstable'/>
      <propval name='foobar' value='Random String' type='astring'/>
            <property name='ipdevice' type='astring'>
             <astring_list>
               <value_node value='float0'/>
               <value_node value='float1'/>
             </astring_list>
            </property>
    </property_group>

    <property_group name='ha-config' type='application'>
      <stability value='Unstable'/>
      <propval name='config_file' type='astring'
          value='/etc/cluster/config' />
      <property name='services' type='astring'>
         <astring_list>
               <value_node value='spearhead'/>
               <value_node value='NULL'/>
         </astring_list>
        </property>
    </property_group>
    </instance>
    <stability value='Stable'/>

    <template>
      <common_name>
        <loctext xml:lang='C'>Brickstor High-Availability Cluster</loctext>
      </common_name>
      <documentation>
        <manpage title='cluster' section='1M' manpath='/usr/share/man'/>
      </documentation>
    </template>
  </service>
</service_bundle>

以上是关于xml BrickstorOS上的RSF1 HA群集服务的SMF清单。的主要内容,如果未能解决你的问题,请参考以下文章

text BrickstorOS上的示例grub条目,启用了串行端口重定向

sh BrickStorOS配置调整脚本

sh BrickstorOS的容量,使用和配额

sh BrickstorOS过程信息

sh BrickstorOS安装程序

sh BrickStorOS基本健康和系统信息收集脚本