Creating SQL with Storage 2012R2 iSCSI cluster
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
fr:Creation cluster SQL avec Storage iSCSI sur 2012R2
This article has been created by an automatic translation software. You can view the article source here.
Problem
We want to mount a <noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad>cluster SQL with a storage on a server accessibthe en iSCSI, all on servers in Windows 2012 R2.
Debug
This platform requires 3 servers :
- 2 Windows 2012R2 with SQL 2014 with 5 ports Ethernet (This number can be reduced according to the needs ) : ServSQL01 and ServSQL 02
- 1 Windows 2012R2 in storage server with 9 ports Ethernet (This number can be reduced according to the needs ) ServStor01
Solution
In prerequisites, installing Windows 2012 R2 on the 3 servers and it updates. the two servers SQL must be on the same domain.
Diagram network "simplified " platform (The switchs are not present to monitor which is connected to what ) :
ServStor Server Configuration 01
On this server we have 9 port networks used.
1 dedicated to management.
2 x 4 dedicated ports to the iSCSI.
NIC1, NIC2 and NIC3 correspond to the three present networks cards, each with 4 ports gigabits. (See diagram to identify the connections )
For the network iSCSI, we will use a IP en 192.168.0.0/24 Here the IP configured on the server 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
For all cards in 192.168.0.x will in the Advanced Settings tab
DNS, and on the box unchecks "Register this connection's addresses in DNS
"
On the server ServStor 01, it installs the role iSCSI Target Server
In the Server Manager, we will create disks iSCSI (who are at the end of the VHDx ) and the Target iSCSI that go them with :
It therefore :
task / New iSCSI virtual disk
- Select the volume
- It gives it a name (one can notice its future path down )
- Choose the size in "Fixed Size" (Leave "Clear the virtual disk on allocation")
- One chooses "New iSCSI Target"
- We give a name to this "iSCSI Target"
- Click on ADD in part "access Servers"
- In the choice of the method of identification of the initiator, soldarity bottom by IP and put a IPIt will change it later.
- Leave CHAP and Reverse CHAP unchecked
- We finish by "Create" Then "close" Once completed
From the, you have a shared disk en iSCSI. Repeat the operation as many times as necessary. In our case we create 3 discs :
- 1 for databases
- 1 for the logs
- 1 for the quorum (1GB will suffice )
Configuration iSCSI servers ServSQL 01 and 02
In this part, we will connect the two servers SQL to the server of storage by links iSCSI. We will use the MPIO in order to use our 4 links networks and to share the load.
Configuration IP servers :
NIC1 and NIC2 correspond to the two network adapters on servers. NIC1 owns 4 ports, NIC2 a 2. Here is the Configuration :
ServSQL01 : NIC1 port 1 : 192.168.0.22 NIC1 port 2 : 192.168.0.26 NIC1 port 3 : IP the 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 the serveur NIC1 port 4 : non utilisé
NIC2 port 1 : 192.168.0.27 NIC2 port 2 : 192.168.0.23
For all cards in 192.168.0.x will in the Advanced Settings tabDNS, and on the box unchecks "Register this connection's addresses in DNS"
- Once installed in the interface
metro de 2012R2 (started so click ) just type "MPIO" and click on the result :
- In the tab
"Discover Multipaths" on coche "Add Support for iSCSI devices" then clicked on ADD. It proposes to restart, is done.
- Once restarted, it relaunches MPIO, and this ensures that "MSFT2005iSCSIBusType_0x9" is present in the "device hardware id".
- It then launches "iSCSIinitiator " on both servers SQL
- One goes on the tab "configuration" and it retrieves the "Initiator Name" (the form "iqn.1991-05.com.microsoft:ServSQL01.domain.tld")
- It returns on the server ServSTOR 01
- In Server Manager, "File and storage Services", "iSCSI", right click on the Target then in initiators
- Clicked on ADD
- On coche "Enter a value for the selected type"
- One sets type "IQN" and we put the address found earlier on the server SQL.
- You click on OK, repeat the operation to add the "IQN" of the two SQL on all the Targets
- Removing the IP It was previously put here.
- Once validated, it returns on our servers SQL, always in the iSCSI initiator, we go in the tab "Targets" and it connects to the server from storage.
- We go in the tab "Favorite Targets", one on the Target visible then it made remove.
- Returns the tab "Targets" then we go on properties for one of Target
- The switching off the current session, and then clicked on Add Session. On coche Multipath, clicked on advanced. One chooses "Microsoft iSCSI initiator". En initiator IP it chooses the first IP iSCSI Server SQL. En Targand portal IP it chooses the first IP iSCSI Server of storage. It validates 2 times. Repeat the operation for each network adapter in passing to the ip following therefore.
In the end must be the IPs related to this form :
<table "1">
border=Initiator IP Target Portal IP On the server 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- It returns in "Favorite Targets" and you look at the details of these. We check that there are good relations with IP in the preceding table.
Configuration of Failover servers ServSQL 01 and 02
We begin by installing the feature Failover clustering on the 2 servers SQL.
During this time you can go in the disk management (right click on the menu Windows, "disk management"). From here we pass disks in "online" and it initializes (GPT). It also created the partitions and formats it.
It then launches "Failover cluster Manager" and it pointed Validate Configuration to verify that everything is ok. Some warnings may be present at the network level.
Is then "Create cluster" :
- You enter the name of the two servers SQL
- You enter the name of cluster, in our example we'll take clusterSQL01
- Leave "Add all eligible storage to the cluster" checked
- It validates
Once created, down in "cluster core resources", we click right "ip address" / properties. One chooses the ip du cluster. Then we redid right click on it and been "bring online" You must now configure the quorum. To do this, you click on the name of clusterand then "more actions" and "configure cluster quorum settings".
- Been next
- Select the quorum witness
- Configure a disk witness
- We check the corresponding disk to the quorum
- been next Then finish.
- The other two discs, it pointed "add to clustershared volume"
We gand the disc a logs volume 1 and the disc a BDD volume 2 in our case.
We now have a cluster configured.
Installation of SQL 2014 en cluster
We begin by VMSQL01
- It installs the feature .nand 3.5
- We start the installation, choose "New SQL Server Failover cluster installation"
- The choice of features, in our case (future use with
CRM 2015) Let's check Database Engine Services, SQL Server Replication, Full-Text and Semantic Extractions for Search, reporting services, management Tools basic / complete
- Choose a network name for the SQL. In our case we will use SQLServ
- On cluster Disk Selection You can choose those you want to use. In our case, we take the cluster Disk 1 et 3 (le 2 being the quorum, le 1 et 2 being volumes databases et logs)
- It then chooses the ip du failover SQL
- We choose the accounts and passwords for services (in our case we have created dedicated services accounts )
- In part "Database engine Configuration" in our case we use the Mixed mode.
- Always in the same part in the tab Data Directories, you specify the database records (We therefore choose our volumes in iSCSI)
- For the reporting Services one puts "Install & configure"
- It launches the Setup
If you encounter the following error during installation :
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;ERE ;FA;;;BA)(A;ERE ;FA;;;SY)(A;ERE ;FA;;;CO)(A;ERE ;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%20SQL<span class="notranslate">%20Server&EvtSrc=Setup.rll &EvtID=50000&Collectorexception.ProdVer =12.0.2000.8&EvtType=0x0ADF5303%25400xBB814387 </span>
You should go in the volume concerned with Explorer windowsto display the hidden files and protected system files and change the rights on the folder system volume information.
Once the intervention is finished, we go to VMSQL02.
- Installing the .net framework 3.5
- It launches the Setup with "Add a node to a SQL Server Failover cluster"
- It follows the steps, most being pre-filled
- It retyped passwords if necessary.
- It launches the Setup
Once the installation is complete, you have your SQL 2014 en failover with storage logged in iSCSI on a Windows 2012 R2.
You can make improvements, as a link between the 2 servers for the heartbeat for example, but it is optional.
Enable comment auto-refresher