> For the complete documentation index, see [llms.txt](https://emstone.gitbook.io/guide-jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emstone.gitbook.io/guide-jp/nvr-vms/failover.md).

# フェイルオーバー(Failover)設定

NVR/VMSの障害が発生したときにデータの損失を防ぐため、別のNVR/VMSで障害対応を行うことができます。

フェイルオーバーサーバーは通常、メインのNVR/VMSを監視します。

メインのNVR/VMSに障害発生したとき、メインのNVR/VMSの環境に自動的に切り替えて運用します。

メインのNVR/VMSが復旧すると、再び待機状態に戻ります。

## フェイルオーバー設定 - 1:1の設定

同じチャンネル数のメインNVR/VMSとフェイルオーバーサーバーを1:1に設定する方法です。

<figure><img src="/files/jkdm7cIWQ1jLxA3vahzg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zOvVwXNyz4PZVgz8CPX0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Wh6DhpYBGInucLk4DE6N" alt=""><figcaption></figcaption></figure>

<mark style="color:red;">**フェイルオーバー設定は、メインのNVR/VMSではなく、フェイルオーバーのNVR/VMSで行います。**</mark>

設定 - 詳細 - フェイルオーバー設定をクリックします。

<figure><img src="/files/0wlaltiE4YFGkQEovNT3" alt=""><figcaption></figcaption></figure>

NVR追加ボタンを押して、メインNVR/VMSを選択して、ユーザーとパスワードを入力して確認します。

<figure><img src="/files/kTf4HrVBmeBeqevGy36q" alt=""><figcaption></figcaption></figure>

メインのNVR/VMSのチャンネル情報が入力され、OKボタンを押して保存します。

そのあと、フェイルオーバー監視モードで動作し、メインのNVR/VMSで障害が発生したとき自動的に設定が切り替わります。

## フェイルオーバー設定 - N:1の構成

複数のメインのNVR/VMSを1台のフェイルオーバーサーバーとして構成する方法です。

障害が発生してフェイルオーバーサーバーが稼働している間に他のメインのNVR/VMSに障害が発生したとき、追加の対応はできません。

<figure><img src="/files/kTf4HrVBmeBeqevGy36q" alt=""><figcaption></figcaption></figure>

最初のメインのNVR/VMSを追加したあと、NVR追加ボタンを押して次のメインのNVR/VMSを追加します。

<figure><img src="/files/AkvAnTwohMiK6mt3zHjK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rNt4DJcG8qF41jQ09bvQ" alt=""><figcaption></figcaption></figure>

設定内容に追加したNVR/VMSの情報を確認して、順番にNVR/VMSを追加します。

追加が完了したら、OKボタンを押して保存します。

そのあと、フェイルオーバー監視モードで動作し、メインのNVR/VMSで障害が発生したとき自動的に設定が切り替わります。

## フェイルオーバー設定 - N:1の構成（高チャンネルフェイルオーバーサーバーを使用）

1台のフェイルオーバーサーバーがメインのNVR/VMSのすべてのチャンネルに対応できる場合に使用します。

たとえば、4台の25ch NVRを100chフェイルオーバーサーバーに適用できます。

<figure><img src="/files/Eybijl1fX5rOTz1uIP8c" alt=""><figcaption></figcaption></figure>

メインのNVR/VMS 25chのとき、図のように次のメインのNVR/VMSを追加するときの開始チャンネルを26に設定します。

これを行うと、1番目のメインのNVR/VMSはフェイルオーバーサーバーの1〜25ch、2番目のメインのNVR/VMSはフェイルオーバーサーバーの26〜50chに接続されます。

上記の方法により、100chフェイルオーバーサーバーに25chずつNVR/VMSのフェイルオーバー設定が可能となります。

すべてのメインのNVR/VMSを開始チャンネルに注意して追加します。追加が完了したら、OKボタンを押して保存します。

そのあと、フェイルオーバー監視モードで動作し、メインのNVR/VMSで障害が発生したとき自動的に設定が切り替わります。

{% hint style="warning" %}

#### メモ

NVR+/VMS のとき、各サーバーごとにフェイルオーバー設定を行う必要があります。

メインサーバー1<-フェイルオーバーサーバー1

メインサーバー2<-フェイルオーバーサーバー2

フェイルオーバーは30秒間隔でメインNVR/VMSを監視することによって機能します。.
{% endhint %}

{% hint style="info" %}

#### メモ

フェイルオーバーNVR/VMSにディスク割り当てがなされて、録画が可能となります。.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://emstone.gitbook.io/guide-jp/nvr-vms/failover.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
