> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 分散ファイル システムを設定する

> ABBYY FlexiCapture Processing Server のファイル ストレージを、DFS Namespaces と DFS Replication を使用してフェールセーフ化する方法について、役割、共有フォルダー、名前空間を含めて説明します。

クラスターにインストールされている場合、Processing Server は一時ファイルの保存にファイル ストレージを使用します。ファイル ストレージで障害が発生すると、クラスター全体が停止します。クラスターを継続的に運用するには、ファイル ストレージをフェールセーフ化する必要があります。

<Warning>
  文書画像と抽出データを保存する[ファイル ストレージ](/ja/flexi-capture/admin-guide/architecture-ag)には、ハードウェア ソリューション (たとえば、RAID ディスク) を使用する必要があります。ソフトウェア ベースの分散ストレージ ソリューションはサポートされていません。
</Warning>

このトピックでは、DFS Namespaces と DFS Replication を使用してフェールセーフなファイル ストレージを実装する方法の一例を説明します。DFS Namespaces は、異なるサーバー上にある複数のフォルダーの仮想ディレクトリを作成する機能で、いずれかのサーバーで障害が発生しても引き続きアクセスできます。DFS Replication は、`ServerSettings.xml` ファイルの変更を自動的に追跡し、バックアップ フォルダーに複製します。

<Note>
  以下の手順では、`DCsrv` という名前のコンピューターをホスト サーバーとして使用しますが、DFS の役割が設定されている任意のコンピューターを使用できます。
</Note>

開始する前に、次のものが必要です。

* クラスター ノードまたはファイル ストレージとして使用されていない、Windows Server 2012 以降を実行するコンピューター
* そのコンピューターに設定された DFS Namespaces と DFS Replication の役割
* すべてのノードに設定された DFS Namespaces と DFS Replication の役割
* `node1admin` ユーザーおよび `node2admin` ユーザーにフル コントロールのアクセス許可が付与された共有フォルダー。この共有フォルダーは、メインの共有フォルダーにアクセスできなくなった場合にバックアップとして機能します

分散ファイル システムを設定するには、次の手順を実行します。

1. [DFS の役割を追加する](#dfs-roles)。
2. [共有フォルダーを作成する](#dfs-file-share)。
3. [名前空間を作成する](#dfs-namespace)。
4. [共有フォルダーを名前空間に追加する](#dfs-adding-file-shares-to-namaspace)。
5. [レプリケーションを設定する](#dfs-replication)。
6. [フォルダー ターゲットの優先順位を設定する](#dfs-priority)。
7. [ABBYY FlexiCapture Processing Server サービスを構成する](#dfs-setting-fcprocessingserver)。

## <a id="dfs-roles" />DFS の役割を追加

1. **Server Manager** を開き、**Add Roles and Features** をクリックします。
2. **Select server roles** ステージで、**File and Storage Services** を展開し、**DFS Namespaces** と **DFS Replication** の項目を選択します。

<Frame>
  <img src="https://mintcdn.com/abbyy/39LtOHLEp1q7pm1x/images/flexi-capture/Add_Roles_and_Features_Wizard.png?fit=max&auto=format&n=39LtOHLEp1q7pm1x&q=85&s=dd1199bd57fe1490c61f3cd7d84916a9" alt="File and Storage Services の下で DFS Namespaces と DFS Replication が選択されている、Select server roles ステージの Add Roles and Features Wizard のスクリーンショット。" width="786" height="560" data-path="images/flexi-capture/Add_Roles_and_Features_Wizard.png" />
</Frame>

## <a id="dfs-file-share" />共有フォルダーの作成

共有フォルダーは、次の条件を満たす必要があります。

* クラスターからレプリケートされたデータの保存にのみ使用してください。
* このフォルダーは、クラスター ノード上にもファイル ストレージ内にも配置しないでください。
* このフォルダーには、すべてのノードからアクセスできる必要があります。

共有フォルダーを作成するには、**Server Manager** を開き、**File and Storage Services → Shares** をクリックしてから、**Tasks → New Share...** をクリックします。次に、[Processing Server サービス用の共有フォルダーの作成](/ja/flexi-capture/admin-guide/fail-safety-proc#network-folder)で説明されている手順 2 ～ 14 を実行します。

## <a id="dfs-namespace" />名前空間を作成

名前空間は **DFS Management** コンソールで作成および設定します。ここで、サーバーを選択し、ユーザーにアクセス権限を付与して、名前空間の型を指定します。

1. **Server Manager** を開き、**Tools → DFS Management** をクリックします。開いた DFS Management スナップインで、**New Namespace...** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS1.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=3f52d9ae99266252121871343daf4544" alt="Namespaces が選択され、操作ペインで New Namespace コマンドを使用できる DFS Management コンソールのスクリーンショット。" width="935" height="708" data-path="images/flexi-capture/DFS1.png" />
   </Frame>

2. 名前空間をホストするサーバー名を指定し、**Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS2.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=35e654f0f54da24a59316ade02289c44" alt="New Namespace Wizard の Namespace Server ステップで、名前空間をホストするサーバーとして DCsrv が入力されているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS2.png" />
   </Frame>

3. 名前空間の名前を指定し、**Edit Settings...** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS3.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=05f58936333aa5a2eb6941783099c1c1" alt="New Namespace Wizard の Namespace Name and Settings ステップで、名前空間名として DFS が入力され、Edit Settings ボタンを使用できるスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS3.png" />
   </Frame>

4. **Edit Settings** ダイアログで、**Use custom permissions** オプションを選択し、**Customize...** をクリックします。次に、共有フォルダーに対するフル コントロールのアクセス許可を `node1admin` ユーザーと `node2admin` ユーザーに付与します。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS15.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=44bbea4d9e8f537c8a777fd3a5243493" alt="DFS 名前空間の共有フォルダーに対する Edit Settings ダイアログで、Use custom permissions オプションが選択され、Customize ボタンを使用できるスクリーンショット。" width="390" height="489" data-path="images/flexi-capture/DFS15.png" />
   </Frame>

5. **Namespace Type** ステップで **Domain-based namespace** を選択し、続いて **Enable Windows Server 2008 mode** オプションを選択して **Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS17.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=590850891666e6fc60231b051478b66b" alt="New Namespace Wizard の Namespace Type ステップで、Domain-based namespace が選択され、Enable Windows Server 2008 mode オプションがオンになっているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS17.png" />
   </Frame>

6. 指定した設定が正しいことを確認し、**Create** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS18.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=300ef2a1857b953fb3a80401e467461d" alt="New Namespace Wizard の Review Settings and Create Namespace ステップで、作成前のドメイン ベースの名前空間設定の概要が表示されているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS18.png" />
   </Frame>

7. **Close** をクリックしてウィザードを閉じます。

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS19.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=14f935da356ccbe0eff56c3d44bb2e55" alt="New Namespace Wizard の Confirmation ステップで、Create namespace タスクが Success ステータスで完了したことが表示されているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS19.png" />
</Frame>

## <a id="dfs-adding-file-shares-to-namaspace" />共有フォルダーを名前空間に追加する

メインの共有フォルダーとバックアップ用の共有フォルダーを名前空間に追加します。

1. DFS Management スナップインで、**新しいフォルダー...** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS47.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=5b07fb1da2328d23a4c9c9a45e2c7ad8" alt="cluster2016.com の DFS 名前空間が表示され、操作ペインで [新しいフォルダー] コマンドが強調表示されている DFS Management コンソールのスクリーンショット。" width="2479" height="1780" data-path="images/flexi-capture/DFS47.png" />
   </Frame>

2. 開いたダイアログでフォルダー名を指定し、**追加...** をクリックします。指定した名前は分散ファイル システムの名前空間に表示されます。

<Note>
  共有フォルダーに指定する名前は、レプリケートされるフォルダーの名前と同じにしないでください。
</Note>

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS20.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=a7942043a2c143a5386b59cc8d50c744" alt="フォルダー名として FC12ClusterTemp が入力され、空の [Folder targets] リストと使用可能な [追加] ボタンが表示されている [新しいフォルダー] ダイアログのスクリーンショット。" width="394" height="416" data-path="images/flexi-capture/DFS20.png" />
</Frame>

3. 共有フォルダーへのパスを指定し、**OK** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS13.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=69e103485f71e81b4c8195b00352e221" alt="[Path to folder target] field に共有フォルダー ターゲットへのパスが入力されている [Folder Target の追加] ダイアログのスクリーンショット。" width="394" height="168" data-path="images/flexi-capture/DFS13.png" />
   </Frame>

4. 再度 **追加...** をクリックし、バックアップ フォルダーへのパスを指定します。両方のフォルダー ターゲットが **Folder targets** リストに表示されます。設定が終わったら、**OK** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS24.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=e07edf3aa7d90c11b70940ec0095b982" alt="メイン共有フォルダーとバックアップ共有フォルダーのパスが [Folder targets] リストに表示されている [新しいフォルダー] ダイアログのスクリーンショット。" width="394" height="416" data-path="images/flexi-capture/DFS24.png" />
   </Frame>

5. レプリケーション グループを作成するかどうかを確認するメッセージが表示されます。レプリケーション グループを作成してレプリケーションの設定を開始するには、**はい** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS25.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=b8693d61ca37b5e3783daf2d8fcd88d4" alt="フォルダー ターゲットを同期するためのレプリケーション グループを作成するかどうかを確認するレプリケーション メッセージ ボックスと、[はい] ボタンおよび [いいえ] ボタンが表示されているスクリーンショット。" width="483" height="193" data-path="images/flexi-capture/DFS25.png" />
</Frame>

## <a id="dfs-replication" />レプリケーションの設定

レプリケーションの設定では、レプリケーション グループを作成し、サーバーを指定し、グループメンバー間の接続トポロジを選択し、レプリケーションスケジュールを選択し、レプリケーション帯域幅を指定します。これらはすべて **Replicate Folder Wizard** で設定します。

1. ウィザードにより、レプリケーション グループとレプリケートするフォルダーの名前が提案されます。必要に応じてこれらの名前を編集するか、デフォルト名のまま **Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS26.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=59b6e24f260f907f726e2b2c082662a6" alt="レプリケーション グループと FC12ClusterTemp のレプリケートするフォルダーについて、提案された名前が表示されている Replicate Folder Wizard の Replication Group and Replicated Folder Name ステップのスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS26.png" />
   </Frame>

2. フォルダー ターゲットがレプリケーションに参加できるかどうかがウィザードに表示されます。**Eligibility** 列の情報を確認し、**Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS27.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=4b133a62277252b2776911ea3a124d2b" alt="Replicate Folder Wizard の Replication Eligibility ステップで、両方のフォルダー ターゲットが Eligibility 列で Add as DFS Replication member と表示されているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS27.png" />
   </Frame>

3. フォルダー ターゲットにレプリケートするデータが含まれているサーバーを選択し、**Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS28.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=ddee4dd605929e38f3bffee9f1b80590" alt="レプリケートされるコンテンツを保持するプライマリメンバーとして FC12ProcServer が選択されている Replicate Folder Wizard の Primary Member ステップのスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS28.png" />
   </Frame>

4. 使用するトポロジとして **Full mesh** を選択し、**Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS29.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=6f7667458586d18d5d7cdceb5b4dbec7" alt="Full mesh トポロジオプションが選択されている Replicate Folder Wizard の Topology Selection ステップのスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS29.png" />
   </Frame>

5. レプリケーションスケジュールでは、**Replicate continuously using the specified bandwidth** を選択します。**Bandwidth** ドロップダウンリストから **Full** を選択し、**Next** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS30.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=b3b75371f0c84f23badfc62faa9a7593" alt="Replicate Folder Wizard の Replication Group Schedule and Bandwidth ステップで、Replicate continuously using the specified bandwidth が選択され、Bandwidth が Full に設定されているスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS30.png" />
   </Frame>

6. 指定した設定が正しいことを確認し、**Create** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS31.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=ab2c23e92c7951c390110bf17d3082d0" alt="作成前にレプリケーション グループフォルダー、メンバー、プライマリフォルダー ターゲットの概要が表示されている Replicate Folder Wizard の Review Settings and Create Replication Group ステップのスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS31.png" />
   </Frame>

7. レプリケーション グループが作成されたら、ウィザードを閉じるため **Close** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS32.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=b5b91f5d1a5e734f31098a0861dd1430" alt="レプリケーション グループ作成のすべてのタスクが Success ステータスで完了したことが報告されている Replicate Folder Wizard の Confirmation ステップのスクリーンショット。" width="714" height="574" data-path="images/flexi-capture/DFS32.png" />
   </Frame>

8. **Replication Delay** の警告が表示された場合は、**OK** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS7.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=11e5da68e30f66a8fe5cae3f035a7acc" alt="レプリケーション グループのメンバーが構成を取得するまでレプリケーションが開始されないことを警告する Replication Delay 情報メッセージのスクリーンショット。" width="470" height="158" data-path="images/flexi-capture/DFS7.png" />
</Frame>

レプリケーションを設定したら、正しく動作することを確認するためにテストすることをお勧めします。これを行うには、**DFS Management** スナップインを開き、新しく作成したレプリケーション グループを選択して **Create Diagnostic Report** をクリックします。

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS8.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=0a6f46fee3bd92f6f59871454795be4a" alt="FC12ClusterTemp のレプリケートするフォルダーのメンバーシップが選択され、操作ペインで Create Diagnostic Report コマンドが強調表示されている DFS Management コンソールのスクリーンショット。" width="986" height="708" data-path="images/flexi-capture/DFS8.png" />
</Frame>

開いた **Diagnostic Report Wizard** で **Propagation test** オプションを選択し、ウィザードの指示に従います (デフォルト設定のままにしておくことをお勧めします) 。

診断が完了すると、**Diagnostic Report Wizard** に診断レポートが表示されます。

## <a id="dfs-priority" />フォルダー ターゲットの優先順位を設定する

誤動作のリスクを最小限に抑えるため、フォルダー ターゲットの優先順位を設定することをお勧めします。

<Note>
  これは、フォルダー ターゲットの優先順位設定の一例です。ニーズに応じて、別の設定も可能です。ターゲットの優先順位を設定する詳しい手順については、[Microsoft Web サイトのこちらのページ](https://docs.microsoft.com/en-us/windows-server/storage/dfs-namespaces/set-target-priority-to-override-referral-ordering)を参照してください。
</Note>

1. 名前空間を開き、共有フォルダーのプロパティを開きます。

   <Frame>
     <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS48.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=756f2e1e88e75d99ad3f03e16211f53a" alt="DFS Management コンソールで、FC12ClusterTemp のフォルダー ターゲットが表示され、選択したフォルダー ターゲットに対する Properties コマンドが操作ペインで強調表示されているスクリーンショット。" width="3453" height="2479" data-path="images/flexi-capture/DFS48.png" />
   </Frame>

2. **Advanced** をクリックし、**Override referral ordering** オプションを選択してから、**First among all targets** を選択します。このオプションは、アクセス可能な場合、ユーザーが常に選択したフォルダー ターゲットに誘導されることを意味します。

<Frame>
  <img src="https://mintcdn.com/abbyy/IFr-A2MDVJd80FDs/images/flexi-capture/DFS49.png?fit=max&auto=format&n=IFr-A2MDVJd80FDs&q=85&s=2aa734100a82c5609c28550716361e13" alt="フォルダー ターゲットの Properties ダイアログの Advanced タブで、Override referral ordering オプションが有効になっており、First among all targets が選択されているスクリーンショット。" width="400" height="455" data-path="images/flexi-capture/DFS49.png" />
</Frame>

## <a id="dfs-setting-fcprocessingserver" />ABBYY FlexiCapture Processing Server サービスの構成

ファイル ストレージに障害が発生した場合でも、ABBYY FlexiCapture Processing Server サービスをホストするクラスターを継続的に稼働させるには、次の手順を実行します。

<Warning>
  ファイル ストレージに障害が発生すると、障害発生時に開いていたセッションに関するデータが失われる可能性があります。
</Warning>

1. [ABBYY FlexiCapture Processing Server サービスの設定](/ja/flexi-capture/admin-guide/fail-safety-proc#procserv-local-setup)に記載されている手順 1 ～ 4 を実行します。ただし、手順 1 では、Processing Server の設定が含まれているファイルへのパスを変更してください。手順 1 のコマンドは次のとおりです。

```
sc config ABBYY.ProcServer.FlexiCapture.12.0 binpath= "%systemdrive%\Program Files\ABBYY FlexiCapture 12 Servers\FlexiBRSvc.exe \service -stationType:server -inifile:\\cluster2016.com\DFS\FC12ClusterTemp\serversettings.xml"
```

<Warning>
  上記のコマンドをコピーして貼り付けると、不要な改行文字が含まれ、エラーが発生する場合があります。その場合は、コマンドを手入力してください。
</Warning>

2. Windows レジストリで `%appdata%` 変数を `\\cluster2016.com\DFS\FC12ClusterTemp` に直接変更します ([%appdata% 変数の変更](/ja/flexi-capture/admin-guide/fail-safety-proc#appdata-changing) を参照)。
