Changes between Version 11 and Version 12 of epics/Archiver Appliance 運用メモ


Ignore:
Timestamp:
09/07/24 13:09:35 (7 months ago)
Author:
Shuei Yamada
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • epics/Archiver Appliance 運用メモ

    v11 v12  
    2222= AAにアーカイブするレコードを登録する =
    2323== スクリプトからレコードを登録する ==
    24 archivePV.pyを走らせて、複数のレコードをAAに登録することができます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/archivePV を使う])
     24archivePV.pyを走らせて、複数のレコードをAAに登録することができます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /archivePV を使う])
    2525* -p オプションでサンプリング間隔を指定できます
    2626* -s オプションをつけるとScanになります(デフォルトはMonitorです)
     
    6868
    6969== スクリプトから停止する ==
    70 pausePV.pyを使うと、複数のレコードのアーカイブを停止できます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/pauseArchivingPV を使う])
     70pausePV.pyを使うと、複数のレコードのアーカイブを停止できます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /pauseArchivingPV を使う])
    7171 * -h オプションをつけるとhelpが表示されます
    7272{{{
     
    126126
    127127== レコードタイプが変わった場合 ==
    128 アーカイブしているレコードの型が変わった場合、AAはそのレコードのアーカイブを停止するようになっています(参考: [https://epicsarchiver.readthedocs.io/en/latest/sysadmin/admin.html|https://epicsarchiver.readthedocs.io/en/latest/sysadmin/admin.html])。
    129  * checkTypeChangedPVs.py でレコードタイプが変わったためにアーカイブが停止しているレコードを調べます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/getPVsByDroppedEventsTypeChange を使う])
     128アーカイブしているレコードの型が変わった場合、AAはそのレコードのアーカイブを停止するようになっています(参考: [https://epicsarchiver.readthedocs.io/en/latest/sysadmin/admin.html https://epicsarchiver.readthedocs.io/en/latest/sysadmin/admin.html])。
     129 * checkTypeChangedPVs.py でレコードタイプが変わったためにアーカイブが停止しているレコードを調べます ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /getPVsByDroppedEventsTypeChange を使う])
    130130
    131131アーカイブを再開するには、次の以下の2つの方法があります:
    132132 * アーカイブ内のレコード名を変える
    133133  1. 現行のレコードをpauseする
    134   1. 新しい名前に変える ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/renamePV を使う])
     134  1. 新しい名前に変える ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /renamePV を使う])
    135135  1. 旧名のレコードを削除する
    136136  1. 新規にアーカイブに追加する
    137137 * アーカイブのレコードタイプを変える
    138138  1. レコードのアーカイブをpauseする
    139   1. consolidateDataForPV.pyでconsolidateする ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/consolidateDataForPV を使う])
     139  1. consolidateDataForPV.pyでconsolidateする ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /consolidateDataForPV を使う])
    140140  1. 過去データのpbファイルを全て書き換えるので、pbファイルをバックアップしておくのが望ましい
    141141  1. バックアップ先は、例えば /localdata/archappl/backup-typechange/YYYYMMDD/ にしておく
    142142  1. Channel Archiverから変換したデータもバックアップするか、退避してデータタイプを指定して再度変換する
    143   1. changeTypeForPV.py でレコードタイプを変える ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/changeTypeForPV を使う])
     143  1. changeTypeForPV.py でレコードタイプを変える ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /changeTypeForPV を使う])
    144144   * [http://slacmshankar.github.io/epicsarchiver_docs/api/org/epics/archiverappliance/config/ArchDBRTypes.html 指定できるレコードタイプの一覧]
    145   1. アーカイブを再開する ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|/resumeArchivingPV を使う])
     145  1. アーカイブを再開する ([https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html /resumeArchivingPV を使う])
    146146
    147147== AAとレコードのalias(と古いIOC) ==
     
    152152  * IOCのepics baseが3.14.10或いはそれ以前の場合、NAME$フィールドはありません
    153153  * レコード名が40文字以上の場合、NAMEフィールドは39文字に切り詰められます。そのため、本名のレコードを見つけることができません
    154  * 登録直後に[https://slacmshankar.github.io/epicsarchiver_docs/api/mgmt_scriptables.html|/skipAliasCheck?pv=...]を呼ぶと、aliasのチェックを省略します
     154 * 登録直後に[https://slacmshankar.github.io/epicsarchiver_docs/api/mgmt_scriptables.html /skipAliasCheck?pv=...]を呼ぶと、aliasのチェックを省略します
    155155
    156156== Aliasのみのレコード登録(路川@東日技研) ==
     
    164164= 参考 =
    165165* [https://epicsarchiver.readthedocs.io/en/latest/sysadmin/admin.html Archiver Appliance Administration Guide]
    166 * [https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html|Business Process Logics for scripting]
     166* [https://epicsarchiver.readthedocs.io/en/latest/developer/mgmt_scriptables.html Business Process Logics for scripting]