使用存储 2012R2 iSCSI 群集创建 SQL

来自Chinese Ikoula Wiki
Ikbot讨论 | 贡献2017年2月9日 (四) 17:37的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
Jump to navigation Jump to search

zh:使用存储 2012R2 iSCSI 群集创建 SQL he:יצירת SQL עם אחסון 2012R2 iSCSI אשכול ro:Crearea SQL cu 2012R2 stocare iSCSI clusterului pl:Tworzenie SQL z magazynu 2012R2 iSCSI klastra de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster nl:SQL maken met opslag 2012R2 iSCSI-cluster it:Creazione di SQL con cluster di iSCSI Storage 2012R2 pt:Criação de SQL com cluster de iSCSI Storage 2012R2 es:Creación de SQL con almacenamiento 2012R2 iSCSI del racimo en:Creating SQL with Storage 2012R2 iSCSI cluster ru:Создание SQL с хранения 2012R2 iSCSI кластера ja:2012R2 iSCSI のストレージ ・ クラスターで SQL を作成します。 ar:إنشاء SQL مع 2012R2 تخزين عبر بروتوكول iSCSI الكتلة fr:Creation cluster SQL avec Storage iSCSI sur 2012R2

这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码





问题

我们想要装入 cluster SQLstorage 对服务器的访问 en iSCSI在服务器上所有 Windows 2012 R2.

调试

这个平台需要 3 服务器 :

  • 2 Windows 2012R2 与 SQL 2014 与 5 港口 Ethern和 (根据需要可以减少 ) : ServSQL 01 和 ServSQL 02
  • 1 Windows 2012R2 在与存储服务器 9 港口 Ethern和 (根据需要可以减少 ) ServStor 01


解决方案

在安装的系统必备组件 Windows 2012 R2 对 3 服务器和它的更新。 这两个服务器 SQL 必须位于相同的域。

图网络 "简化 " 平台 ( switchs 不存在到监视器连接到什么 ) :

文件:Schema reseau simple.PNG

ServStor 服务器配置 01

在此服务器上我们有 9 使用的端口网络。 1 致力于管理。 2 x 4 专用端口到 iSCSI.

NIC1, NIC2 和 NIC3 对应于三本网络卡,每个都有 4 港口 gigabits. (见图确定的连接 )

为网络 iSCSI我们将使用 IP en 192.168.0.0/24 在这里 IP 在 ServStor 服务器上配置 01 :

NIC1 port 1 : Votre IP de votre serveur
NIC1 port 2 : Non utilisé
NIC1 port 3 : Non utilisé
NIC1 port 4 : Non utilisé

NIC2 Port 1 : 192.168.0.11
NIC2 Port 2 : 192.168.0.12
NIC2 Port 3 : 192.168.0.13
NIC2 Port 4 : 192.168.0.14

NIC3 Port 1 : 192.168.0.15
NIC3 Port 2 : 192.168.0.16
NIC3 Port 3 : 192.168.0.17
NIC3 Port 4 : 192.168.0.18

在所有卡 192.168.0.x 将在高级设置选项卡 DNS并在框中取消选中 "Register this connection's addresses in DNS"

文件:Register dns.PNG

服务器 ServStor 上 01它安装的角色 iSCSI Targ和 Server

文件:Roles servstor01.PNG

Server Manager我们将创建磁盘 iSCSI (是谁在结束了 VHDx ) 和 Targ和 iSCSI 去与他们 :

文件:ISCSI servstor01.PNG

它因此 :

  • task / New iSCSI virtual disk
  • 选择卷
  • 它给它一个名称 (人可以注意到其未来的路径下 )
  • 选择在大小 "Fixed Size" (离开 "Clear the virtual disk on allocation")
  • 一个人选择 "New iSCSI Target"
  • 我们给这一个名字 "iSCSI Target"
  • 单击 ADD 在部分 "access Servers"
  • 在选择中引发剂的鉴别方法,爱心筑底的 IP 和放 IP它以后将改变它。
  • 离开 CHAP et Reverse CHAP 未选中
  • 我们完成由 "Create" 然后 "close" 一旦完成

从,你有共享的磁盘 en iSCSI. 重复该操作需要很多倍。 在我们的例子中,我们创建 3 光盘 :

  • 1 对于数据库
  • 1 为日志
  • 1 为 quorum (1GB 就够了 )

配置 iSCSI 服务器 ServSQL 01 et 02

在这一部分中,我们将连接两个服务器 SQL 向服务器 storage 通过链接 iSCSI. 我们将使用 MPIO 为了使用我们 4 链接网络并共享负载。

配置 IP 服务器 :

NIC1 et NIC2 对应于服务器上的两个网络适配器。 NIC1 拥有 4 端口, NIC2 2. 这里是配置 :

ServSQL01 :

NIC1 port 1 : 192.168.0.22
NIC1 port 2 : 192.168.0.26
NIC1 port 3 : IP du serveur
NIC1 port 4 : non utilisé

NIC2 port 1 : 192.168.0.25
NIC2 port 2 : 192.168.0.21

ServSQL02 :

NIC1 port 1 : 192.168.0.24
NIC1 port 2 : 192.168.0.28
NIC1 port 3 : IP du serveur
NIC1 port 4 : non utilisé

NIC2 port 1 : 192.168.0.27
NIC2 port 2 : 192.168.0.23

在所有卡 192.168.0.x 将在高级设置选项卡 DNS并在框中取消选中 "Register this connection's addresses in DNS"

文件:Register dns.PNG

  • 在这两个服务器上安装功能 "Multipath I/O".

文件:Feature mpio.PNG

  • 一旦安装在界面中 metro de 2012R2 (所以单击开始 ) 只需键入 "MPIO" 然后点击结果 :

文件:Mpio.PNG

  • 在选项卡 "Discover Multipaths" 关于尔萨克 "Add Support for iSCSI devices" 然后点击 ADD.它提出了要重新启动,做。
  • 一旦重新启动,它重新 MPIO这确保 "微软 2005iSCSIBusType_ 0x9" 目前在 "设备硬件 id ".
  • 它然后启动 "iSCSIinitiator " 两台服务器上 SQL
  • 一个人在选项卡上 "配置 " 并且它检索 "Initiator Name" (窗体 "iqn.1991-05.com.microsoft:ServSQL01.domain.tld")
  • 它返回服务器 ServSTOR 上 01
  • Server Manager, "文件和 storage 服务 ", "iSCSI"右键点击 Target 去其属性,然后在 initiators
  • 点击 ADD
  • 关于尔萨克 "Enter a value for the selected type"
  • 一设置类型 "IQN" 我们把较早前在服务器上找到的地址 SQL.
  • 你点击确定,重复操作以添加 "IQN" 两个 SQL 对所有 Targets
  • 删除 IP 它是以前把放在这里。
  • 一旦通过验证,它在我们的服务器上返回 SQL一直在 iSCSI initiator我们走在选项卡 "Targets" 和它连接到从服务器 storage.
  • 我们走在选项卡 "Favorite Targets"是在意志上 Target 可见,然后它做 remove.
  • 返回选项卡 "Targets" 然后我们去上属性之一 Target
  • 开关关闭当前会话,然后点击 Add Session.关于尔萨克 enable Multipath点击 advanced.一个人选择 "Microsoft iSCSI initiator""local adapter".En initiator IP 它选择第一个 IP iSCSI du serveur SQL.En Target portal IP 它选择第一个 IP iSCSI 服务器 storage.它验证 2 倍。重复该操作中传递到每个网络适配器 ip 后因此。

最后必须 IPs 有关此窗体 :

Initiator IP Target Portal IP 对 le serveur
192.168.0.21 192.168.0.11 ServSQL01
192.168.0.22 192.168.0.12 ServSQL01
192.168.0.23 192.168.0.13 ServSQL02
192.168.0.24 192.168.0.14 ServSQL02
192.168.0.25 192.168.0.15 ServSQL01
192.168.0.26 192.168.0.16 ServSQL01
192.168.0.27 192.168.0.17 ServSQL02
192.168.0.28 192.168.0.18 ServSQL02
  • 它返回在 "Favorite Targets" 你看看这些细节。我们检查有良好关系 IP 在前面的表中。

配置 Failover 服务器 ServSQL 01 et 02

我们开始通过安装 feature Failover cluster对 ing 2 服务器 SQL.

在这段时间你可以进去 disk management (右键点击菜单 Windows, "disk management"). 从这里,我们通过在磁盘 "online" 和它初始化 (GPT).它还创建了分区和格式化它。


它然后启动 "Failover cluster Manager" 而且它也指出 Validate Configuration 要验证一切都好。在网络层,一些警告可能会出现。 然后是 "Create cluster" :

  • 您输入的两个服务器名称 SQL
  • 您输入的名称 cluster在我们的示例中,我们会采取 clusterSQL01
  • 它把群集 IP
  • 离开 "Add all eligible storage to the cluster" 检查
  • 它验证

现在,您必须配置 quorum.若要执行此操作,单击的名称 cluster然后 "more actions" et "configure cluster quorum settings".

  • next
  • Select the quorum witness
  • Configure a disk witness
  • 我们检查相应的磁盘到 quorum
  • next 然后 finish.
  • 它指出,其他两个棋子, "add to clustershared volume" (在 "disks"它在问题中选择光盘 )

我们得到光盘 logs 卷 1 和光盘 BDD 卷 2 在我们的案例。


我们现在有 cluster 配置。

安装 SQL 2014 en cluster

我们开始由 ServSQL01

  • 它会安装该功能 .net 3.5
  • 我们开始安装,选择 "New SQL Server Failover cluster installation"

文件:Install SQL1.PNG

  • 特性,在我们的案例的选择 (未来用 CRM 2015) 让我们看一下 Database Engine Services, SQL Server Replication, Full-Text and Semantic Extractions for Search, reporting services-native, management Tools basic / complete
  • 选择网络的名称 SQL.在我们的例子中我们将使用 SQLServ
  • Sur cluster Disk Selection 你可以选择那些您想要使用。在本例中,我们采取 cluster Disk 1 et 3 (le 2 被 quorum, le 1 et 2 被卷 databases et logs)
  • 它然后选择 ip du failover SQL
  • 我们选择的帐户和密码服务 (在我们的例子中我们已创建了专用的服务帐户 )
  • 在部分 "Database engine Configuration" 在我们的例子中,我们使用 Mixed mode. 此外在上的单击添加当前用户。
  • 总是在选项卡中的相同部分 Data Directories您指定的数据库记录 (因此,我们选择在我们卷 iSCSI)
  • reporting Services 你投入 "Install & configure"
  • 它会启动安装程序


如果您在安装过程中遇到以下错误 :

The following error has occurred:

Updating permission setting for folder 'C:\clusterstorage\Volume2' failed. The folder permission setting were supposed to be set to 'D:P(A;OICI;FA;;;BA)(A;OICI;FA;;;SY)(A;OICI;FA;;;CO)(A;OICI;FA;;;S-1-5-80-3880718306-3832830129-1677859214-2598158968-1052248003)'.

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20<span class="notranslate">SQL</span>%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0ADF5303%25400xBB814387

你应该在有关体积与资源管理器 windows若要显示隐藏的文件和受保护的系统文件和更改文件夹权限 system volume information.

完成的干预后,我们去 ServSQL02.

  • 安装 .net framework 3.5
  • 它发射与安装 "Add a node to a SQL Server Failover cluster"

文件:Install SQL2.PNG

  • 它遵循的步骤,最被预填充
  • 如有必要,它重新输入密码。
  • 它会启动安装程序


一旦完成安装后,你有你 SQL 2014 en failoverstorage 登录 iSCSIWindows 2012 R2. 你可以为之间的联系做出改进, 2 服务器 heartbeat 为例子,但是它是可选的。


您未被允许发表评论。