Encontrar

Artículo
· 16 hr atrás Lectura de 5 min

ミラーの現在の状態&情報をコマンドで確認する方法

これは InterSystems FAQ サイトの記事です。

ミラーの現在の状態は、管理ポータルのミラーモニタで確認できます。

こちらのトピックでは、それらの情報をコマンドで確認する方法をご紹介します。


(1) フェイルオーバメンバ(プライマリ・バックアップ)の状態を確認する

(2) 非同期メンバの状態を確認する

(3) ISCAgentの状態を確認する

(4) 定期的にミラーステータスを取得するサンプル(ツール)のご紹介


では、以下のようなミラーの状態を確認してみます(以下はフェイルオーバーメンバ・プライマリの状態)。

 
 

(1) フェイルオーバメンバ(プライマリ・バックアップ)の状態を確認する

フェイルオーバメンバのミラーの状態は、SYS.Mirror クラスの GetFailoverMemberStatus メソッドで確認できます。
結果は出力引数に$list形式で返されます。詳細はクラスリファレンスをご覧ください。

   例)
    プライマリ、バックアップともActiveな状態

// フェイルオーバーメンバ(プライマリまたはバックアップ)で確認
// 以下はプライマリで実行した例
%SYS>set x=##class(SYS.Mirror).GetFailoverMemberStatus(.thismember,.othermember)
 
%SYS>zwrite thismember
thismember=$lb("MACHINEA","10.0.0.244|2188","Primary","Active","10.0.0.244|1972","10.0.0.244|1972")
 
%SYS>zwrite othermember
othermember=$lb("MACHINEB","10.0.0.151|2188","Backup","Active","10.0.0.151|1972","10.0.0.151|1972")


1.1) 自ノードがプライマリメンバーの場合、$list() の4番目に返される Status値には以下のような状態が返ります。

 Active
 Restart
 Trouble
 Failover
 Recovery
 Deciding
 Exit
 Inactive 


1.2) 自ノードがメンバーのバックアップメンバーの場合、Statusには以下のような状態が返ります。

 Active
 Catchup
 Restart
 Trouble
 Failover
 Recovery
 Deciding
 Exit
 Inactive 


(2) 非同期メンバの状態を確認する

非同期メンバではAsyncDejournalStatus() の戻り値のStatusで確認します。

// 非同期DRで実行
%SYS>write ##class(SYS.Mirror).AsyncDejournalStatus("TESTMIRROR")
running

フェイルオーバ・バックアップメンバまたは非同期DRメンバでの遅延状態は、以下のクラスメソッドで確認できます。
戻り値が 1の場合は遅延はない状況となります。

%SYS>write ##class(SYS.Mirror).DistanceFromPrimaryJournalFiles()
1
%SYS>write ##class(SYS.Mirror).DistanceFromPrimaryDatabases()
1


また、以下のクラスメソッドは、遅延がある場合、その遅延時間(秒)を戻り値として返します。

%SYS>write ##class(SYS.Mirror).JournalFilesLatency()
0         // 遅延なし
%SYS>write ##class(SYS.Mirror).DatabasesLatency()
0         // 遅延なし


(3) ISCAgentの状態を確認する

ISCAgent が動作しているかどうかは、以下のように確認できます。

%SYS>write ##class(SYS.Agent).IsRunning()
1


(4) 定期的にミラーステータスを取得するサンプル(ツール)のご紹介

このツールでは、システムクラス SYS.Mirror のクエリMemberStatusList を使用しています。
do ##class(%ResultSet).RunQuery("SYS.Mirror","MemberStatusList") と同様の内容です。

%SYSネームスペースに、zmirrorstat.mac の名前で保存・コンパイルします。

Start(int,n,mirror)	;
    do Header()
	;
    for i=1:1:n {
	    Do MirrorStatus(mirror)
	    Hang int
    }
	;
 	Quit
MirrorStatus(mirror) {
	set rs=##class(%ResultSet).%New("SYS.Mirror:MemberStatusList")	
	set n=rs.GetColumnCount()
	do rs.Execute(mirror)
	while rs.Next() {
		write $ZDATE($P($H,",",1)),",",$ZTIME($P($H,",",2)),","
    	for i=1:1:n Write rs.GetData(i) w:i'=n ","
    	write !
	}
}
Header() {
	set hd1="Date,Time"
	write hd1,","
	set rs=##class(%ResultSet).%New("SYS.Mirror:MemberStatusList")	
	set n=rs.GetColumnCount()
    for i=1:1:n Write rs.GetColumnHeader(i) w:i'=n ","
	write !
}

例:ミラー名:MIRRORTEST のステータスを、1秒おきに3回実行します

%SYS>do ^zmirrorstat(1,3,"TESTMIRROR")
Date,Time,Member Name,Current Role,Current Status,Journal Transfer Latency,Dejournal Latency,Journal Transfer Time Latency,Dejournal Time Latency,Display Type,Display Status
08/01/2025,11:17:26,MACHINEA,プライマリ,動作中,N/A,N/A,N/A,N/A,フェイルオーバー,プライマリ
08/01/2025,11:17:26,MACHINEB,バックアップ,動作中,動作中,キャッチアップ,動作中,キャッチアップ,フェイルオーバー,バックアップ
08/01/2025,11:17:26,MACHINEC,非同期,非同期,キャッチアップ,キャッチアップ,キャッチアップ,キャッチアップ,災害復旧,接続しました
08/01/2025,11:17:28,MACHINEA,プライマリ,動作中,N/A,N/A,N/A,N/A,フェイルオーバー,プライマリ
08/01/2025,11:17:28,MACHINEB,バックアップ,動作中,動作中,キャッチアップ,動作中,キャッチアップ,フェイルオーバー,バックアップ
08/01/2025,11:17:28,MACHINEC,非同期,非同期,キャッチアップ,キャッチアップ,キャッチアップ,キャッチアップ,災害復旧,接続しました
08/01/2025,11:17:29,MACHINEA,プライマリ,動作中,N/A,N/A,N/A,N/A,フェイルオーバー,プライマリ
08/01/2025,11:17:29,MACHINEB,バックアップ,動作中,動作中,キャッチアップ,動作中,キャッチアップ,フェイルオーバー,バックアップ
08/01/2025,11:17:29,MACHINEC,非同期,非同期,キャッチアップ,キャッチアップ,キャッチアップ,キャッチアップ,災害復旧,接続しました
 
%SYS>
Comentarios (0)0
Inicie sesión o regístrese para continuar
Pregunta
· 8 ene, 2026

What First-Time Car Owners in Claymont Should Know About Long-Term Vehicle Care

Owning your first vehicle is exciting, but it also comes with responsibilities that many drivers underestimate. Beyond fuel and insurance, long-term reliability depends on understanding how small maintenance decisions affect performance, safety, and resale value. For Claymont drivers, local conditions and driving patterns make informed care even more important.

New car owners often assume that maintenance only matters once warning lights appear. In reality, consistent attention and Quality Car Services help prevent early wear, reduce unexpected expenses, and keep vehicles running efficiently well past their warranty period. Preventive maintenance builds a foundation for reliability rather than reacting to problems after damage has occurred.

One of the biggest challenges for new drivers is knowing where to go for honest advice. Choosing the Best mechanic shop means working with professionals who explain issues clearly, prioritize safety, and recommend only necessary repairs. Trustworthy guidance helps first-time owners avoid overpaying while learning how their vehicle truly operates.

Local expertise becomes especially valuable when dealing with everyday wear and tear. Shops specializing in Auto repair Claymont DE understand how traffic patterns, road conditions, and seasonal changes impact vehicles differently than other regions. This insight allows car mechanics to tailor inspections and repairs more accurately.

Many beginners overlook the exhaust system because issues aren’t always obvious. However, professional Exhaust system repair services support fuel efficiency, emissions control, and engine performance. Early inspections can catch corrosion or airflow problems before they affect drivability or inspection results.

Braking confidence is critical for new drivers, especially in busy or unfamiliar traffic situations. Searching for Brakes service near me should be part of routine ownership, not just an emergency response. Regular brake checks help maintain stopping power and reduce the risk of sudden system failure.

Noise changes are another common concern for first-time owners. Rattling or humming often points to issues requiring Muffler repair, which improves ride comfort and protects surrounding exhaust components from damage caused by vibration or leaks.

Beyond these essentials, long-term vehicle health depends on a balanced approach to maintenance. Services such as oil change near me scheduling, tire repair shop visits, collision repair readiness, and auto body repair shop support all contribute to overall automotive care. Many leading competitors rank highly by offering complete automotive services through a trusted auto repair shop that emphasizes communication and reliability.

Search trends like mechanic near me and car repair shop continue to grow because drivers value accessibility, transparency, and consistent results. For first-time owners, building a relationship with skilled automotive experts early creates confidence and prevents costly mistakes down the road.

Share your reviews here: https://maps.app.goo.gl/yhkeWS7NVtXvFKD88 

Contact Us Today!

Website: https://claymontauto.com/

Location: 3506 Philadelphia Pike Claymont DE 19703

Contact: 302-792-1700          

Email: contact@claymont.com

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 8 ene, 2026

*New Course* Developing Custom Components for Integrations – In Person February 10-12, 2026 / Registration space available

Developing Custom Components for Integrations – In Person (Boston, MA) February 10-12, 2026

  • This 3-day course teaches implementation partners, integrators, developers, and analysts how to create custom interfaces using InterSystems integration technologies.
  • Students build a Production using InterSystems® Objects, graphical tools in the Management Portal, Business Process Language (BPL), the adapter library, and an IDE.
  • Students create business services, business processes, business operations, and messages.
  • This course is applicable for users of InterSystems IRIS® data platform, InterSystems IRIS® for Health, and HealthShare® Health Connect.
  • Prior experience with InterSystems Objects programming is required. Refer to the course description page for more information.

SELF REGISTER HERE

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 8 ene, 2026

Bircata

Bircata is a premier online destination for luxury furniture and home décor, offering a thoughtfully curated collection of high-quality indoor and outdoor pieces that transform every room with style and comfort. Known for its extensive range of elegant furniture — from sophisticated living room sets and dining room collections to cozy bedroom essentials and stylish office accents — Bircata combines timeless design with affordable pricing and free shipping on most orders, making it a go-to choice for homeowners seeking premium furniture without compromise. With a commitment to customer satisfaction and expert craftsmanship, Bircata continues to elevate living spaces with beautifully designed products and an enjoyable, reliable shopping experience.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 8 ene, 2026

[Video] Setting Up a Mirrored Pair with Configuration Merge

Hi, Community!

Ready to strengthen your deployment of InterSystems IRIS® data platform?

👨‍💻See how to configure a mirrored pair to preserve the integrity of your data:

Setting Up a Mirrored Pair with Configuration Merge

In this video, you will see how to configure a mirrored pair in InterSystems IRIS. You will learn how to create and modify a configuration parameter file on each mirror member.

Want to learn more? Explore best practices for mirroring in InterSystems IRIS (video, 18m).

With a good mirroring setup, you will maintain high availability even during failovers!

Comentarios (0)1
Inicie sesión o regístrese para continuar