DB 2故障モニタツールLinux® 版とUNIX版


DB2® 障害モニタツールはUNIXベースのみ® のシステムで使用できます.このツールは、DB 2データベースマネージャのインスタンスを監視し、早期に終了したインスタンスを再起動することで、DB 2データベースを正常に動作させます.
故障モニタコーディネータ(FMC)は、UNIXブートシーケンスで起動される「故障モニタツール」のプロセスである.InitデーモンはFMCを起動し、FMC異常終了時にFMCを再起動します.FMCは、DB 2インスタンスごとに障害モニタを起動する.各障害モニタは、デーモンとして実行され、DB 2インスタンスと同じユーザー特権を有します.
障害モニタを起動すると、DB 2インスタンスが早期に終了しないように監視されます.障害モニタに障害が発生した場合、FMCで再起動します.各障害モニタは、DB 2インスタンスを順次監視します.DB 2インスタンスが早期に終了すると、障害モニタが再起動します.障害モニタは、db 2 stopコマンドが発行された場合にのみ非アクティブになります.DB 2インスタンスが他の方法でオフになっている場合、障害モニタは再起動します.

DB 2故障モニタ制限


インスタンスの起動と停止はクラスタ製品によって制御されるため、高可用性クラスタ製品(例えばHACMP)が使用されている場合™、MSCSまたはIBM® Tivoli® System Automation for titolatforms)では、障害モニタツールを閉じる必要があります.

DB 2故障モニタとDB 2運転状況モニタの違い


実行状況モニタと障害モニタは、単一のデータベース・インスタンスに使用するツールです.稼働状況モニタは、稼働状況インジケータを使用して、データベース・マネージャのパフォーマンスまたはデータベース・パフォーマンスの特定の側面の稼働状況を評価します.実行状況インジケータは、特定の種類のデータベース・オブジェクト(表領域など)の特定の態様の実行状況を測定します.実行状況インジケータは、特定の条件について評価され、クラスのデータベース・オブジェクトの実行状況を決定できます.また、実行状況インジケータがしきい値を超えたり、データベース・オブジェクトが非正常であることを示したりすると、実行状況インジケータはアラートを生成して通知します.
対照的に、障害モニタは、監視されているインスタンスを正常に動作させるだけです.監視されているDB 2インスタンスが予期せずに終了した場合、障害モニタはインスタンスを再起動します.Windowsで障害モニター® は使用できません.

db2fm - DB2 fault monitor command


Controls the DB2® fault monitor daemon. You can use db2fm to configure the fault monitor.
This command is only available on UNIX operating systems.

Authorization


Authorization over the instance against which you are running the command.

Required connection


None

Command syntax


>>-db2fm--+- -t--service--+-- -m--module path------------------->
          '- -i--instance-'                     

>--+--------------+--------------------------------------------><
   +- -u----------+   
   +- -d----------+   
   +- -s----------+   
   +- -k----------+   
   +- -U----------+   
   +- -D----------+   
   +- -S----------+   
   +- -K----------+   
   +- -f--+-on--+-+   
   |      '-off-' |   
   +- -a--+-on--+-+   
   |      '-off-' |   
   +- -T--T1/T2---+   
   +- -l--I1/I2---+   
   +- -R--R1/R2---+   
   +- -n--email---+   
   +- -h----------+   
   '- -?----------'   


Command parameters


-m module-path
Defines the full path of the fault monitor shared library for the product being monitored. The default is $INSTANCEHOME/sqllib/lib/libdb2gcf.
-t service
Gives the unique text descriptor for a service.
-i instance
Defines the instance of the service.
-u
Brings the service up.
-U
Brings the fault monitor daemon up.
-d
Brings the instance down.
-D
Brings the fault monitor daemon down.
-k
Kills the service.
-K
Kills the fault monitor daemon.
-s
Returns the status of the service.
-S
Returns the status of the fault monitor daemon. The status of the service or fault monitor can be one of the following
Not properly installed,
INSTALLED PROPERLY but NOT ALIVE,
ALIVE but NOT AVAILABLE (maintenance),
AVAILABLE, or
UNKNOWN
-f on | off
Turns fault monitor ON or OFF. If this option is set off, the fault monitor daemon will not be started, or the daemon will exit if it was running.
-a on | off
Activates or deactivates fault monitoring. If this option if set to OFF, the fault monitor will not be actively monitoring, which means if the service goes down it will not try to bring it back.
-T T1/T2
Overwrites the start and stop time-out.
For example:
-T 15/10 updates the two time-outs respectively
-T 15 updates the start time-out to 15 secs
-T/10 updates the stop time-out to 10 secs
-I I1/I2
Sets the status interval and time-out respectively.
-R R1/R2
Sets the number of retries for the status method and action before giving up.
-n email
Sets the email address for notification of events.
-h | -?
Displays command usage help.

Usage notes


If you want to set up e-mail notifications to be sent by the fault monitor daemon, you must have SMTP running on the local host.