1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SQLServer冗長化~ActiveDirectoryのセットアップ編~

Last updated at Posted at 2022-11-02

こんにちは!haruです。
今回は SQL Server の Always On 構成を構築するための必須要素である Active Directory をセットアップしていきます。

Active Directory とは

「Windowsに付いている、ネットワークにつながっているパソコンとかをまとめて管理するための仕組み」とのことです。
参考はこちら
あるサーバーのディレクトリを共有ディスクとして使用する場合は、このような仕組みが必要なんですね。

検証環境

今回の検証は以下の構成で作成していきます。

  • NODE1
  • NODE2
  • Active Directory サーバー

Active Directory の構築 ※ADサーバーで実行

1.「サーバーマネージャー」を起動し、「役割と機能の追加」を選択
image.png

2.次へ
image.png

3.「役割ベースまたは機能ベースのインストール」を選択して次へ
image.png

4.「サーバープールからサーバーを選択」を選択して次へ
image.png

5.「Active Directory ドメインサービス」のチェックボックスを選択
image.png

6.「機能の追加」をクリックして次へ
image.png

7.「機能」は特に選択せず次へ
image.png

8.次へ
image.png

9.「必要に応じて対象サーバーを自動的に再起動する」を選択して、出てきたポップアップは「はい」を選択
image.png

10.インストールを実行
image.png
image.png
閉じるを選択
image.png

Active Directory のセットアップ ※AD サーバーで実行

1.「サーバーマネージャー」の旗マークをクリックして、「このサーバーをドメインコントローラーに昇格する」をクリック
image.png

2.「新しいフォレストを追加する」を選択して、「ルートドメイン名」に任意の名称を入力して次へ
image.png

3.「ドメインコントローラーオプション」でパスワードを入力して次へ
image.png

4.特に選択せずに次へ
image.png

5.特に選択せずに次へ
image.png

6.特に選択せずに次へ
image.png

7.特に選択せずに次へ
image.png

8.前提条件のチェックを行いインストールを実行
image.png

自動で再起動します。
これでActive Directory のインストールが終了しました。

image.png

ドメインに参加 ※NODE1とNODE2サーバーで実行

1.ネットワークのプロパティを選択し、「インターネットプロトコルバージョン4(TCP/IPv4)」をクリック
image.png

2.DNSサーバーの「優先DNSサーバー」の欄にADサーバーのIPアドレスを入力してOKをクリック
image.png

3.システムのプロパティを開き、設定済みのドメインを入力してOKをクリック
image.png

4.WindowsOSのユーザー名パスワードを入力してOKをクリック
image.png

ようこそ。
image.png

再起動します。
image.png

5.「Active Directory ユーザーとコンピュータ」を起動します ※ADサーバーで実行
image.png

6.「ドメイン名」→「Builtin」→「Computers」を選択し認識されているコンピュータを確認 ※ADサーバーで実行
image.png

認識したみたいですね。
これで設定完了です!

以上です!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?