Go to main content
Oracle® Solaris 11.3 でのシステムサービスの管理

印刷ビューの終了

更新: 2016 年 11 月
 
 

競合する構成

プロファイルを作成するときには、定義される構成が、同じサービスまたはサービスインスタンスの別のプロファイルで同じレイヤー内に定義された構成と競合していないことを確認してください。

競合する構成には、同じプロパティーに異なる値を定義したり、同じプロパティーまたはプロパティーグループに異なるタイプを定義したりするものがあります。

ある単一レイヤー内の複数のファイルで構成が競合し、その構成が上位のレイヤーでは設定されていない場合、manifest-import サービスログにはこの競合が記され、競合している構成を使用したサービスは開始されず、maintenance 状態に移されます。

それぞれが同じプロファイルに対して異なる値を指定した 2 つのプロファイルファイルを作成し、両方を /etc/svc/profile/site ディレクトリに配置してシステムをリブートすると、次のような結果が得られます。

  • 通知を構成している場合は、通知によって競合が報告されます。次の例は、サービス状態の遷移の通知です。

    HOSTNAME: host
    TIMESTAMP: June 27, 2016 at 04:15:43 PM PDT
    FMRI: svc:/site/example:default
    FROM-STATE: uninitialized
    TO-STATE: maintenance
    DESCRIPTION: The indicated service has transitioned to the maintenance state
    REASON: the instance is in conflict

    次の例は、FMA イベント通知です。「Impact」と「Recommended Action」のセクションの情報を書きとめてください。

    SUNW-MSG-ID: SMF-8001-02, TYPE: Defect, VER: 1, SEVERITY: Major
    EVENT-TIME: Mon Jun 27 16:14:07 PDT 2016
    PLATFORM: Ultra 24, CSN: 0817FMB003, HOSTNAME: host
    SOURCE: software-diagnosis, REV: 0.2
    EVENT-ID: c46b48bb-484d-4c9f-a82b-e1349a0ddce6
    DESC: The Solaris Service manager tried to import a manifest or apply a profile defining
    the service, but detected one or more entities with conflicting definitions.
    AUTO-RESPONSE: The service may have been placed into the maintenance state.
    IMPACT: The service is not running.  It will not be started until the conflict is resolved
    and the maintenance state is cleared.  Services with require-type dependencies on the
    service will not be started.  (Use 'svcs -xv svc:/site/nm_example:default' to see a list
    of services waiting for the service to start.)
    REC-ACTION: Edit the problematic manifest or profile to resolve the conflict and reimport
    or reapply it, or use svccfg to administratively override the conflicting definitions.
    Then clear the maintenance state. Please refer to the associated reference document at
    http://support.oracle.com/msg/SMF-8001-02 for the latest service procedures and policies
    regarding this diagnosis.
  • svcs -x コマンドにより競合が報告されます。

    $  svcs -x
    svc:/site/example:default (site/example)
     State: maintenance since Mon Jun 27 16:32:36 2016
    Reason: Instance has conflicts.
    Conflicting value: FMRI="svc:/site/example"; Name of conflicting property="config/prop1"; from file="/etc/svc/profile/site/example_prof1.xml";
       See: http://support.oracle.com/msg/SMF-8001-02
       See: /var/svc/log/site-example:default.log
    Impact: This service is not running.
  • manifest-import サービスログファイルで競合が報告されます。

    $ tail `svcs -L manifest-import`
    Applying profile to admin layer: /etc/svc/profile/site/example_prof2.xml
    Applying profile to admin layer: /etc/svc/profile/site/example_prof1.xml
    svccfg: svc:/site/example: property group "config" has a conflict.
    Conflicting value: FMRI="svc:/site/example"; Name of conflicting property="config/prop1"; from file="/etc/svc/profile/site/example_prof1.xml";

svccfg listprop コマンドの -l-f、および -o オプションを使用して、競合の原因を調べることもできます。値が設定されているレイヤーの表示および構成に関係したファイルの表示を参照してください。