Difference between revisions of "Creating SQL with Storage 2012R2 iSCSI cluster"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
Line 1: Line 1:
<span data-link_translate_de_title="Erstellen von SQL mit Storage 2012R2 iSCSI cluster"  data-link_translate_de_url="Erstellen+von+SQL+mit+Storage+2012R2+iSCSI+cluster"></span>[[:de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]][[de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]]
 
<span data-link_translate_nl_title="SQL maken met opslag 2012R2 iSCSI-cluster"  data-link_translate_nl_url="SQL+maken+met+opslag+2012R2+iSCSI-cluster"></span>[[:nl:SQL maken met opslag 2012R2 iSCSI-cluster]][[nl:SQL maken met opslag 2012R2 iSCSI-cluster]]
 
<span data-link_translate_it_title="Creazione di SQL con cluster di iSCSI Storage 2012R2"  data-link_translate_it_url="Creazione+di+SQL+con+cluster+di+iSCSI+Storage+2012R2"></span>[[:it:Creazione di SQL con cluster di iSCSI Storage 2012R2]][[it:Creazione di SQL con cluster di iSCSI Storage 2012R2]]
 
<span data-link_translate_pt_title="Criação de SQL com cluster de iSCSI Storage 2012R2"  data-link_translate_pt_url="Cria%C3%A7%C3%A3o+de+SQL+com+cluster+de+iSCSI+Storage+2012R2"></span>[[:pt:Criação de SQL com cluster de iSCSI Storage 2012R2]][[pt:Criação de SQL com cluster de iSCSI Storage 2012R2]]
 
<span data-link_translate_es_title="Creación de SQL con almacenamiento 2012R2 iSCSI del racimo"  data-link_translate_es_url="Creaci%C3%B3n+de+SQL+con+almacenamiento+2012R2+iSCSI+del+racimo"></span>[[:es:Creación de SQL con almacenamiento 2012R2 iSCSI del racimo]][[es:Creación de SQL con almacenamiento 2012R2 iSCSI del racimo]]
 
<span data-link_translate_fr_title="Creation cluster SQL avec Storage iSCSI sur 2012R2"  data-link_translate_fr_url="Creation_cluster_SQL_avec_Storage_iSCSI_sur_2012R2"></span>[[:fr:Creation cluster SQL avec Storage iSCSI sur 2012R2]][[fr:Creation cluster SQL avec Storage iSCSI sur 2012R2]]
 
 
<br />
 
<br />
  
 
This article has been created by an automatic translation software. You can view the article source [[:fr:Creation cluster SQL avec Storage iSCSI sur 2012R2|here]].<br /><span data-translate="fr"></span>
 
This article has been created by an automatic translation software. You can view the article source [[:fr:Creation cluster SQL avec Storage iSCSI sur 2012R2|here]].<br /><span data-translate="fr"></span>
  
 +
<noTad><span data-link_Tanslate_de_titt="Erstellen von SQL mit Storage 2012R2 iSCSI cluster"  data-link_Tanslate_de_url="Erstellen+von+SQL+mit+Storage+2012R2+iSCSI+cluster"><noTad></span></noTad></noTad><noTad>[[:de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]]</noTad><noTad>[[de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]]
 +
<span data-link_translate_de_title="Erstellen von SQL mit Storage 2012R2 iSCSI cluster"  data-link_translate_de_url="Erstellen+von+SQL+mit+Storage+2012R2+iSCSI+cluster"></span>[[:fr::de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]][[:fr:de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster]]
  
  
== Problem ==
+
 
We want to mount a <noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><noTR ad><span class="noTR anslate">cluster<span class="notranslate"> </span>SQL<span class="notranslate"> with a </span>storage<span class="notranslate"> on a server accessibthe en </span>iSCSI<span class="notranslate">, all on servers in </span>Windows<span class="notranslate"> 2012 R2.
+
 
 +
 
 +
== Problem ==
 +
We want to mount a cluster SQL<span class="notranslate"> with a </span>storage<span class="notranslate"> on a server accessible en </span>iSCSI<span class="notranslate">, all on servers in </span>Windows<span class="notranslate"> 2012 R2.
  
 
== Debug ==
 
== Debug ==
  
This platform requires 3 servers  :
+
This platform requires 3 servers  :
* 2 </span>Windows<span class="notranslate"> 2012R2 with </span>SQL<span class="notranslate"> 2014 with 5 ports </span>Ethernet<span class="notranslate"> (This number can be reduced according to the needs ) : ServSQL01 and ServSQL 02
+
* 2 </span>Windows<span class="notranslate"> 2012R2 wit </span>SQL<span class="notranslate"> 2014 wit 5 ports </span>Etherna<span class="notranslate"> (This number can be raced according to the needs ) : ServSQL01 and ServS02
* 1 </span>Windows<span class="notranslate"> 2012R2 in storage server with 9 ports </span>Ethernet<span class="notranslate"> (This number can be reduced according to the needs ) ServStor01
+
* 1 </span>Windows<span class="notranslate"> 2012R2 in storage server with   9 ports </span>Etherna<span class="notranslate"> (This number can be retced according to the needs ) ServStor01
  
  
 
== Solution ==
 
== Solution ==
In prerequisites, installing </span>Windows<span class="notranslate"> 2012 R2 on the 3 servers and it updates.
+
In prerequisites, install </span>Windows<span class="notranslate"> 2012 R2 on the 3 servers and it updates.
the two servers </span>SQL<span class="notranslate"> must be on the same domain.
+
the two servers </span>SQL<span class="notranslate"> must be on the same domain.
  
Diagram network "simplified " platform (The </span>switchs<span class="notranslate"> are not present to monitor which is connected to what ) :
+
Diagram nawor "simplifie" platform (Th </span>switchs<span class="notranslate"> are not present to monitor which is connected to what ) :
  
 
</span>
 
</span>
Line 31: Line 30:
 
=== ServStor Server Configuration 01 ===
 
=== ServStor Server Configuration 01 ===
  
On this server we have 9 port networks used.
+
On this server we have 9 port naworks used.
 
1 dedicated to management.
 
1 dedicated to management.
2 x 4 dedicated ports to the [[File:schema_reseau_simple.PNG]]iSCSI<span class="notranslate">.
+
2 x 4 dedicated ports to <span class="notranslate">iSCSI</span>.
  
</span>NIC<span class="notranslate">1, </span>NIC<span class="notranslate">2 and </span>NIC<span class="notranslate">3 correspond to the three present networks cards, each with 4 ports </span>gigabits<span class="notranslate">.
+
[[File:schema_reseau_simple.PNG]]NIC<span class="notranslate">1, </span>NIC<span class="notranslate">2 et </span>NIC<span class="notranslate">3 correspond to the three present networks cards, each with 4 ports </span>gigabits<span class="notranslate">.
 
(See diagram to identify the connections )
 
(See diagram to identify the connections )
  
For the network </span>iSCSI<span class="notranslate">, we will use a </span> IP <span class="notranslate">en 192.168.0.0/24
+
For the networ </span>iSCSI<span class="notranslate">, we will use a </span> IP <span class="notranslate">en 192.168.0.0/24
Here the </span> IP <span class="notranslate">configured on the server ServStor 01 :  
+
Here the</span> IP <span class="notranslate">configured on the server ServStor 01 :  
 
</span>
 
</span>
 
NIC1 port 1 : Votre IP de votre serveur
 
NIC1 port 1 : Votre IP de votre serveur
Line 55: Line 54:
 
NIC3 Port 3 : 192.168.0.17
 
NIC3 Port 3 : 192.168.0.17
 
NIC3 Port 4 : 192.168.0.18
 
NIC3 Port 4 : 192.168.0.18
<pre>
+
<span class="notranslate">
  
For all cards in 192.168.0.x will in the Advanced Settings tab </pre>DNS<span class="notranslate">, and on the box unchecks "</span>Register this connection's addresses in <span class="notranslate"></span>DNS<span class="notranslate">"
+
For all cards in 192.168.0.x will in the Advanced Settings tab </span>DNS<pre>, and on the box unchec "</pre>Register this connection's addresses in <span class="notranslate"></span>DNS<span class="notranslate">"
  
 
</span>
 
</span>
  
On the server ServStor 01, it installs the role [[File:register_dns.PNG]]''iSCSI<span class="notranslate"> </span>Target<span class="notranslate"></span> Server<span class="notranslate"></span>
+
On the server ServStor01, it installs the rol <span class="notranslate"></span>iSCSI[[File:register_dns.PNG]] ''Target<span class="notranslate"></span> Server<span class="notranslate"></span>
  
''
+
<span class="notranslate">
  
In the [[File:roles_servstor01.PNG]]Server Manager<span class="notranslate">, we will create disks </span>iSCSI<span class="notranslate"> (who are at the end of the VHDx ) and the </span>Target<span class="notranslate"> </span>iSCSI<span class="notranslate"> that go them with :
+
In the </span>Server Manager'', we will create disks  [[File:roles_servstor01.PNG]]iSCSI<span class="notranslate"> (who are at the end of the) and t </span>Target<span class="notranslate"> </span>iSCSI<span class="notranslate"> that go them with :
  
 
</span>
 
</span>
  
It therefore :  
+
It therefor :  
* [[File:iSCSI_servstor01.PNG]]task / New iSCSI virtual disk<span class="notranslate">
+
* <span class="notranslate">task / New iSCSI virtual disk</span>
 
* Select the volume  
 
* Select the volume  
 
* It gives it a name (one can notice its future path down )
 
* It gives it a name (one can notice its future path down )
* Choose the size in </span>"Fixed Size"<span class="notranslate"> (Leave </span>"Clear the virtual disk on allocation"<span class="notranslate">)
+
* Choose the size in [[File:iSCSI_servstor01.PNG]]"Fixed Size"<span class="notranslate"> (Leave </span>"Clear the virtual disk on allocation"<span class="notranslate">)
* One chooses </span>"New iSCSI Target<span class="notranslate">"
+
* One choos </span>"New iSCSI Target<span class="notranslate">"
* We give a name to this "</span>iSCSI<span class="notranslate"> </span>Target<span class="notranslate">"
+
* We give a name to this "</span>iSCSI<span class="notranslate"> </span>Target<span class="notranslate">"
* Click on </span>ADD<span class="notranslate"> in part "</span>access Servers<span class="notranslate">"
+
* Click on </span>ADD<span class="notranslate"> in part "</span>access Servers<span class="notranslate">"
* In the choice of the method of identification of the initiator, soldarity bottom by </span> IP <span class="notranslate">and put a </span> IP<span class="notranslate">It will change it later.
+
* In the choice of the method of identification of the initiator, soldarity bottom </span> IP <span class="notranslate">and put a </span> IP<span class="notranslate">It will change it later.
* Leave </span> CHAP<span class="notranslate"> and </span> Reverse CHAP<span class="notranslate"> unchecked
+
* Leave </span> CHAP<span class="notranslate"> et </span> Reverse CHAP<span class="notranslate"> unchecke
* We finish by </span>"Create"<span class="notranslate"> Then </span>"close"<span class="notranslate"> Once completed  
+
* We finish by </span>"Create"<span class="notranslate"> The </span>"close"<span class="notranslate"> Once completed  
  
From the, you have a shared disk en </span>iSCSI<span class="notranslate">.
+
From the, you have a shared disk en </span>iSCSI<span class="notranslate">.
 
Repeat the operation as many times as necessary.
 
Repeat the operation as many times as necessary.
In our case we create 3 discs :
+
In our case we create 3 discs   :
 
* 1 for databases  
 
* 1 for databases  
* 1 for the logs  
+
* 1 for the logs
* 1 for the </span>quorum<span class="notranslate"> (1GB will suffice )
+
* 1 for th </span>quorum<span class="notranslate"> (1GB will s)
  
=== Configuration </span>iSCSI<span class="notranslate"> servers ServSQL 01 and 02 ===
+
=== Configuration </span>iSCSI<span class="notranslate"> servers ServSQL 01 et 02 ===
  
In this part, we will connect the two servers </span>SQL<span class="notranslate"> to the server of </span>storage<span class="notranslate"> by links </span>iSCSI<span class="notranslate">.
+
In this part, we will connect the two servers </span>SQL<span class="notranslate"> to the serve </span>storage<span class="notranslate"> by links </span>iSCSI<span class="notranslate">.
We will use the </span>MPIO<span class="notranslate"> in order to use our 4 links networks and to share the load.
+
We will use the </span>MPIO<span class="notranslate"> in order to use ou 4 links networks and to share the load.
  
 
Configuration</span> IP <span class="notranslate">servers :  
 
Configuration</span> IP <span class="notranslate">servers :  
  
</span>NIC<span class="notranslate">1 and </span>NIC<span class="notranslate">2 correspond to the two network adapters on servers. </span>NIC<span class="notranslate">1 owns 4 ports, </span>NIC<span class="notranslate">2 a 2.
+
</span>NIC<span class="notranslate">1 et </span>NIC<span class="notranslate">2 correspond to the two network adapters on servers. </span>NIC<span class="notranslate">1 owns 4 ports, </span>NIC<span class="notranslate">2 a 2.
Here is the Configuration  :  
+
Here is the configura :  
  
 
ServSQL01 :
 
ServSQL01 :
Line 102: Line 101:
 
NIC1 port 1 : 192.168.0.22
 
NIC1 port 1 : 192.168.0.22
 
NIC1 port 2 : 192.168.0.26
 
NIC1 port 2 : 192.168.0.26
NIC1 port 3 : IP the serveur
+
NIC1 port 3 : IP Server
 
NIC1 port 4 : non utilisé
 
NIC1 port 4 : non utilisé
  
 
NIC2 port 1 : 192.168.0.25
 
NIC2 port 1 : 192.168.0.25
 
NIC2 port 2 : 192.168.0.21
 
NIC2 port 2 : 192.168.0.21
<pre>
+
<span class="notranslate">
 
ServSQL02 :
 
ServSQL02 :
</pre>
+
</span>
 
NIC1 port 1 : 192.168.0.24
 
NIC1 port 1 : 192.168.0.24
 
NIC1 port 2 : 192.168.0.28
 
NIC1 port 2 : 192.168.0.28
NIC1 port 3 : IP the serveur
+
NIC1 port 3 : IP du serveur
 
NIC1 port 4 : non utilisé
 
NIC1 port 4 : non utilisé
  
Line 119: Line 118:
 
<pre>
 
<pre>
  
For all cards in 192.168.0.x will in the Advanced Settings tab </pre>DNS<span class="notranslate">, and on the box unchecks "</span>Register this connection's addresses in <span class="notranslate"></span>DNS<span class="notranslate">"
+
For all cards in 192.168.0.x will in the Advanced Settings tab </pre>DNS<pre>, and on the box unchec "</pre>Register this connection's addresses in <span class="notranslate"></span>DNS<span class="notranslate">"
  
 
</span>
 
</span>
  
* On both servers, installing the feature [[File:Register dns.PNG]]"Multipath I/O"<span class="notranslate">.
+
* On both servers, installing the feature <span class="notranslate">"Multipath I/O"</span>.
  
</span>
+
[[File:Register dns.PNG]]
  
* Once installed in the interface [[File:Feature_mpio.PNG]]metro<span class="notranslate"> de 2012R2 (started so click ) just type "</span>MPIO<span class="notranslate">" and click on the result :
+
* Once installed in the interface <span class="notranslate">metro</span> de 2012R2 (started so click ) just type "[[File:Feature_mpio.PNG]]MPIO<span class="notranslate">" and click on the result :
  
 
</span>
 
</span>
  
* In the tab [[File:Mpio.PNG]]"Discover Multipaths"<span class="notranslate"> on coche </span>"Add Support for iSCSI devices"<span class="notranslate"> then clicked on </span>ADD<span class="notranslate">. It proposes to restart, is done.
+
* In the tab <span class="notranslate">"Discover Multipaths"</span> on coche [[File:Mpio.PNG]]"Add Support for iSCSI devices"<span class="notranslate"> then clicked on </span>ADD<span class="notranslate">. It proposes to restart, is done.
* Once restarted, it relaunches </span>MPIO<span class="notranslate">, and this ensures that "MSFT2005</span>iSCSI<span class="notranslate">BusType_0x9" is present in the "device hardware id".
+
* Once restarted, it relaunches </span>MPIO<span class="notranslate">, and this ensures "MSFT2005</span>iSCSI<span class="notranslate">BusType_0x9" is present in the "device hardware id".
  
* It then launches "</span>iSCSIinitiator<span class="notranslate"> " on both servers </span>SQL<span class="notranslate">
+
* It then launche "</span>iSCSIinitiator<span class="notranslate"> " on both servers </span>SQL<span class="notranslate">
* One goes on the tab "configuration" and it retrieves the </span>"Initiator Name"<span class="notranslate"> (the form </span>"iqn.1991-05.com.microsoft:ServSQL01.domain.tld"<span class="notranslate">)
+
* One goes on the tab "Configuratio" and it retrieves t </span>"Initiator Name"<span class="notranslate"> (the form </span>"iqn.1991-05.com.microsoft:ServSQL01.domain.tld"<span class="notranslate">)
 
* It returns on the server ServSTOR 01
 
* It returns on the server ServSTOR 01
* In </span>Server Manager<span class="notranslate">, "File and </span>storage<span class="notranslate"> Services", "</span>iSCSI<span class="notranslate">", right click on the </span>Target<span class="notranslate"> then in initiators  
+
* In </span>Server Manager<span class="notranslate">, "File and </span>storage<span class="notranslate"> Services", "</span>iSCSI<span class="notranslate">", right click on the </span>Target<span class="notranslate"> then in initiators  
* Clicked on </span>ADD<span class="notranslate">
+
* Clicked on </span>ADD<span class="notranslate">
 
* On coche </span>"Enter a value for the selected type"<span class="notranslate">
 
* On coche </span>"Enter a value for the selected type"<span class="notranslate">
* One sets type </span>"IQN"<span class="notranslate"> and we put the address found earlier on the server </span>SQL<span class="notranslate">.
+
* One sets type </span>"IQN"<span class="notranslate"> and we put the address found earlier on the server </span>SQL<span class="notranslate">.
* You click on OK, repeat the operation to add the </span>"IQN"<span class="notranslate"> of the two </span>SQL<span class="notranslate"> on all the </span>Targets<span class="notranslate">
+
* You click on OK, repeat the operation to add the </span>"IQN"<span class="notranslate"> of the </span>SQL<span class="notranslate"> on all the </span>Targets<span class="notranslate">
* Removing the </span>IP<span class="notranslate"> It was previously put here.
+
* Removing th</span>IP<span class="notranslate"> It was previously put here.
* Once validated, it returns on our servers </span>SQL<span class="notranslate">, always in the </span>iSCSI initiator<span class="notranslate">, we go in the tab "</span>Targets<span class="notranslate">" and it connects to the server from </span>storage<span class="notranslate">.
+
* Once validated, it returns on our servers </span>SQL<span class="notranslate">, always in the </span>iSCSI initiator<span class="notranslate">, we go in the tab "</span>Targets<span class="notranslate">" and it connects to the server </span>storage<span class="notranslate">.
* We go in the tab </span>"Favorite Targets<span class="notranslate">", one on the </span>Target<span class="notranslate"> visible then it made </span>remove<span class="notranslate">.
+
* We go in the tab </span>"Favorite Targets<span class="notranslate">", one on t </span>Target<span class="notranslate"> visible then it mad </span>remove<span class="notranslate">.
* Returns the tab "</span>Targets<span class="notranslate">" then we go on properties for one of </span>Target<span class="notranslate">
+
* Returns the tab "</span>Targets<span class="notranslate">" then we go on properties for one of </span>Target<span class="notranslate">
* The switching off the current session, and then clicked on </span>Add Session<span class="notranslate">. On coche </span>Multipath<span class="notranslate">, clicked on </span>advanced<span class="notranslate">. One chooses </span>"Microsoft iSCSI initiator"<span class="notranslate">. En </span>initiator IP <span class="notranslate">it chooses the first </span> IP <span class="notranslate"></span>iSCSI<span class="notranslate"> Server </span>SQL<span class="notranslate">. En </span>Targand portal IP <span class="notranslate">it chooses the first </span> IP <span class="notranslate"></span>iSCSI<span class="notranslate"> Server of </span>storage<span class="notranslate">. It validates 2 times. Repeat the operation for each network adapter in passing to the </span>ip<span class="notranslate"> following therefore.
+
* The switching off the current session, and then clicke </span>Add Session<span class="notranslate">. On coche </span>Multipath<span class="notranslate">, clicked on </span>advanced<span class="notranslate">. One choos </span>"Microsoft iSCSI initiator"<span class="notranslate">. En </span>initiator IP <span class="notranslate">it chooses the first </span> IP <span class="notranslate"></span>iSCSI<span class="notranslate"> du serveur </span>SQL<span class="notranslate">. En </span>Target portal IP <span class="notranslate">it chooses the first </span> IP <span class="notranslate"></span>iSCSI<span class="notranslate"> Server of </span>storage<span class="notranslate">. It valid 2 times. Repeat the operation for each network adapter in passing to the </span>ip<span class="notranslate"> following therefore.
In the end must be the </span>IPs<span class="notranslate">  related to this form :  
+
In the end must be the </span>IPs<span class="notranslate">  related to this form :  
  
 
<table </span>"1">
 
<table </span>"1">
 
<tr>
 
<tr>
<th>border=Initiator IP<span class="notranslate"></span>
+
<th><span class="notranslate">Initiator IP</span>border=
<th></th>Target<span class="notranslate"> Portal IP</span>
+
<th><span class="notranslate">Target</span> Portal IP</th>
<th>On the server </th>
+
<th>On the server<span class="notranslate">
</th>
+
</span>
 
<tr>
 
<tr>
<th>192.168.0.21</tr>
+
<th>192.168.0.21</th>
 
<th>192.168.0.11</th>
 
<th>192.168.0.11</th>
<th>ServSQL01</th>
+
<th>ServSQL01</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.22</tr>
+
<th>192.168.0.22</th>
 
<th>192.168.0.12</th>
 
<th>192.168.0.12</th>
<th>ServSQL01</th>
+
<th>ServSQL01</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.23</tr>
+
<th>192.168.0.23</th>
 
<th>192.168.0.13</th>
 
<th>192.168.0.13</th>
<th>ServSQL02</th>
+
<th>ServSQL02</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.24</tr>
+
<th>192.168.0.24</th>
 
<th>192.168.0.14</th>
 
<th>192.168.0.14</th>
<th>ServSQL02</th>
+
<th>ServSQL02</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.25</tr>
+
<th>192.168.0.25</th>
 
<th>192.168.0.15</th>
 
<th>192.168.0.15</th>
<th>ServSQL01</th>
+
<th>ServSQL01</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.26</tr>
+
<th>192.168.0.26</th>
 
<th>192.168.0.16</th>
 
<th>192.168.0.16</th>
<th>ServSQL01</th>
+
<th>ServSQL01</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.27</tr>
+
<th>192.168.0.27</th>
 
<th>192.168.0.17</th>
 
<th>192.168.0.17</th>
<th>ServSQL02</th>
+
<th>ServSQL02</tr>
 
</th>
 
</th>
 
<tr>
 
<tr>
<th>192.168.0.28</tr>
+
<th>192.168.0.28</th>
 
<th>192.168.0.18</th>
 
<th>192.168.0.18</th>
<th>ServSQL02</th>
+
<th>ServSQL02</tr>
 +
</th>
 
</th>
 
</th>
</tr>
 
  
* It returns in </table>"Favorite Targets<span class="notranslate">" and you look at the details of these. We check that there are good relations with </span>IP<span class="notranslate"> in the preceding table.
+
* It returns in </th>"Favorite Targets</tr>" and you look at the details of these. We check that there are good relations with </table>IP<span class="notranslate"> in the preceding table.
  
=== Configuration of </span>Failover<span class="notranslate"> servers ServSQL 01 and 02 ===
+
=== Configuration o </span>Failover<span class="notranslate"> servers ServSQL 01 et 02 ===
  
We begin by installing the </span>feature Failover<span class="notranslate"> </span>cluster<span class="notranslate">ing on the 2 servers </span>SQL<span class="notranslate">.
+
We begin by installing the </span>feature Failover<span class="notranslate"> </span>cluster<span class="notranslate">ing on the 2 servers </span>SQL<span class="notranslate">.
  
During this time you can go in the </span>disk management<span class="notranslate"> (right click on the menu </span>Windows, "disk management"<span class="notranslate">).  
+
During this time you can go in the </span>disk management<span class="notranslate"> (right click on the me </span>Windows, "disk management"<span class="notranslate">).  
From here we pass disks in </span>"online"<span class="notranslate"> and it initializes (</span>GPT<span class="notranslate">). It also created the partitions and formats it.
+
From here we pass disks in </span>"online"<span class="notranslate"> and it initializes (</span>GPT<span class="notranslate">). It also created the partitions and formats it.
  
  
It then launches </span>"Failover cluster Manager"<span class="notranslate"> and it pointed </span>Validate Configuration<span class="notranslate">  to verify that everything is ok. Some warnings may be present at the network level.
+
It then launche </span>"Failover cluster Manager"<span class="notranslate"> and it po </span>Validate Configuration<span class="notranslate">  to verify that everything is ok. Some warnings may be present at the network level.
Is then </span>"Create cluster<span class="notranslate">" :
+
Is then </span>"Create cluster<span class="notranslate">" :
* You enter the name of the two servers </span>SQL<span class="notranslate">
+
* You enter the name of the two se </span>SQL<span class="notranslate">
* You enter the name of </span>cluster<span class="notranslate">, in our example we'll take </span>clusterSQL<span class="notranslate">01
+
* You enter the nam </span>cluster<span class="notranslate">, in our example we'll take </span>clusterSQL<span class="notranslate">01
* Leave </span>"Add all eligible storage to the cluster<span class="notranslate">" checked
+
* Leave </span>"Add all eligible storage to the cluster<span class="notranslate">" check
* It validates
+
* It valid
  
Once created, down in "</span>cluster core resources"<span class="notranslate">, we click right </span>"ip address" /  properties.<span class="notranslate">  One chooses the </span>ip<span class="notranslate"> du </span>cluster<span class="notranslate">. Then we redid right click on it and been </span>"bring online"<span class="notranslate">
+
Once created, down in "</span>cluster core resources"<span class="notranslate">, we click right </span>"ip address" /  properties.<span class="notranslate">  One chooses </span>ip<span class="notranslate"> du </span>cluster<span class="notranslate">. Then we redid right click on it and been </span>"bring online"<span class="notranslate">
You must now configure the </span>quorum<span class="notranslate">. To do this, you click on the name of </span>cluster<span class="notranslate">and then </span>"more actions"<span class="notranslate"> and </span>"configure cluster<span class="notranslate"> </span>quorum settings"<span class="notranslate">.
+
You must now configure the </span>quorum<span class="notranslate">. To do this, you click on the na </span>cluster<span class="notranslate">and t </span>"more actions"<span class="notranslate"> et </span>"configure cluster<span class="notranslate"> </span>quorum settings"<span class="notranslate">.
* Been </span>next<span class="notranslate">
+
* Been </span>next<span class="notranslate">
 
* </span>Select the quorum witness<span class="notranslate">  
 
* </span>Select the quorum witness<span class="notranslate">  
 
* </span>Configure a disk witness<span class="notranslate">  
 
* </span>Configure a disk witness<span class="notranslate">  
* We check the corresponding disk to the </span>quorum<span class="notranslate">
+
* We check the corresponding disk to </span>quorum<span class="notranslate">
* been </span>next<span class="notranslate"> Then </span>finish<span class="notranslate">.
+
* been </span>next<span class="notranslate"> The </span>finish<span class="notranslate">.
* The other two discs, it pointed </span>"add to clustershared volume" <span class="notranslate">  
+
* The other two discs, it pointed </span>"add to clustershared volume" <span class="notranslate">  
  
We gand the disc a </span>logs<span class="notranslate"> volume 1 and the disc a </span>BDD<span class="notranslate"> volume 2 in our case.
+
We get the disc a </span>logs<span class="notranslate"> volume 1 and the disc a </span>BDD<span class="notranslate"> volume 2 in our case.
  
  
We now have a </span>cluster<span class="notranslate"> configured.
+
We now have a </span>cluster<span class="notranslate"> configured.
  
=== Installation of </span>SQL<span class="notranslate"> 2014 en </span>cluster<span class="notranslate"> ===
+
=== Installation o </span>SQL<span class="notranslate"> 2014 en </span>cluster<span class="notranslate"> ===
  
We begin by </span>VMSQL01<span class="notranslate">
+
We begin by </span>VMSQL01<span class="notranslate">
  
* It installs the feature </span>.nand 3.5<span class="notranslate">
+
* It installs the feature </span>.net 3.5<span class="notranslate">
* We start the installation, choose </span>"New SQL Server Failover cluster installation"<span class="notranslate">
+
* We start the installation, choose </span>"New SQL Server Failover cluster installation"<span class="notranslate">
  
 
</span>
 
</span>
  
* The choice of features, in our case (future use with [[File:Install_SQL1.PNG]]CRM 2015<span class="notranslate">) Let's check </span>Database Engine Services<span class="notranslate">, </span>SQL Server Replication, Full-Text and Semantic Extractions for Search, reporting services, management Tools basic / complete<span class="notranslate">
+
* The choice of features, in our case (future use with <span class="notranslate">CRM 2015</span>) Let's check [[File:Install_SQL1.PNG]]Database Engine Services<span class="notranslate">, </span>SQL Server Replication, Full-Text and Semantic Extractions for Search, reporting services, management Tools basic / complete<span class="notranslate">
* Choose a network name for the </span>SQL<span class="notranslate">. In our case we will use </span>SQLServ<span class="notranslate">
+
* Choose a network name for the </span>SQL<span class="notranslate">. In our case we will use </span>SQLServ<span class="notranslate">
* On </span>cluster Disk Selection <span class="notranslate">You can choose those you want to use. In our case, we take the </span>cluster Disk<span class="notranslate">  1 et 3 (le 2 being the </span>quorum<span class="notranslate">, le 1 et 2 being volumes </span>databases<span class="notranslate"> et </span>logs<span class="notranslate">)
+
* On </span>cluster Disk Selection <span class="notranslate">You can choose those you want to use. In our case, we take the </span>cluster Disk<span class="notranslate">  1 et 3 (le 2 being th </span>quorum<span class="notranslate">, le 1 et 2 being volumes </span>databases<span class="notranslate"> et </span>logs<span class="notranslate">)
 
* It then chooses the </span>ip<span class="notranslate"> du </span>failover<span class="notranslate"> </span>SQL<span class="notranslate">
 
* It then chooses the </span>ip<span class="notranslate"> du </span>failover<span class="notranslate"> </span>SQL<span class="notranslate">
* We choose the accounts and passwords for services (in our case we have created dedicated services accounts )
+
* We choose the accounts and passwords for services (in our case we have created dedicated services accounts )
* In part </span>"Database engine Configuration"<span class="notranslate"> in our case we use the </span>Mixed mode.<span class="notranslate">
+
* In part </span>"Database engine Configuration"<span class="notranslate"> in our case we use the </span>Mixed mode.<span class="notranslate">
* Always in the same part in the tab </span>Data Directories<span class="notranslate">, you specify the database records (We therefore choose our volumes in </span>iSCSI<span class="notranslate">)
+
* Always in the same part in the tab </span>Data Directories<span class="notranslate">, you specify the database records (We therefore choose our volum </span>iSCSI<span class="notranslate">)
* For the </span>reporting Services<span class="notranslate"> one puts </span>"Install & configure"<span class="notranslate">
+
* For th </span>reporting Services<span class="notranslate"> one p </span>"Install & configure"<span class="notranslate">
 
* It launches the Setup  
 
* It launches the Setup  
  
  
If you encounter the following error during installation :  
+
If you encounter the following error during installation :  
  
 
</span>
 
</span>
Line 254: Line 253:
 
The following error has occurred:
 
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)'.
+
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.
 
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
  
For help, click: <pre>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
+
For help, click: </span><span class="notranslate">SQL<pre>%20Server&EvtSrc=Setup.rl&EvtID=50000&Collec=12.0.2000.8&EvtType=0x0ADF5303%25400xBB814387
</span>
+
http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20
</pre>
+
<span class="notranslate">
  
You should go in the volume concerned with Explorer </span>windows<span class="notranslate">to display the hidden files and protected system files and change the rights on the folder </span>system volume information<span class="notranslate">.
+
You should go in the volume concerned with Explorer </span>windows</pre>to display the hidden files and protected system files and change the rights on the folder </span>system volume information<span class="notranslate">.
  
Once the intervention is finished, we go to </span>VMSQL02<span class="notranslate">.
+
Once the intervention is finished, we go to </span>VMSQL02<span class="notranslate">.
* Installing the </span>.net framework 3.5<span class="notranslate">
+
* Installing th </span>.net framework 3.5<span class="notranslate">
* It launches the Setup with </span>"Add a node to a SQL Server Failover cluster<span class="notranslate">"
+
* It launches the Setup with </span>"Add a node to a SQL Server Failover cluster<span class="notranslate">"
  
 
</span>
 
</span>
Line 275: Line 274:
  
  
Once the installation is complete, you have your [[File:Install_SQL2.PNG]]SQL<span class="notranslate"> 2014 en </span>failover<span class="notranslate"> with </span>storage<span class="notranslate"> logged in </span>iSCSI<span class="notranslate"> on a </span>Windows<span class="notranslate"> 2012 R2.
+
Once the installation is complete, you have your <span class="notranslate">SQL</span> 2014 en [[File:Install_SQL2.PNG]]failover<span class="notranslate"> wit </span>storage<span class="notranslate"> logged in </span>iSCSI<span class="notranslate"> on a </span>Windows<span class="notranslate"> 2012 R2.
You can make improvements, as a link between the 2 servers for the </span>heartbeat<span class="notranslate"> for example, but it is optional.
+
You can make improvements, as a link between the 2 servers for the </span>heartbeat<span class="notranslate"> for example, but it is optional.
 
+
</span>
 +
<span class="notranslate">
 +
</span>
 +
<br />
 +
<comments />
 +
<br />
 +
<comments />
 +
<br />
 +
<comments />
 
<br />
 
<br />
 
<comments />
 
<comments />
 +
<br />

Revision as of 15:54, 6 October 2015


This article has been created by an automatic translation software. You can view the article source here.

<noTad><noTad></noTad></noTad><noTad>de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster</noTad><noTad> fr::de:Erstellen von SQL mit Storage 2012R2 iSCSI clusterfr:de:Erstellen von SQL mit Storage 2012R2 iSCSI cluster



Problem

We want to mount a cluster SQL with a storage on a server accessible en iSCSI, all on servers in Windows 2012 R2.

Debug

This platform requires 3 servers :

  • 2 Windows 2012R2 wit SQL 2014 wit 5 ports Etherna (This number can be raced according to the needs ) : ServSQL01 and ServS02
  • 1 Windows 2012R2 in storage server with 9 ports Etherna (This number can be retced according to the needs ) ServStor01


Solution

In prerequisites, install Windows 2012 R2 on the 3 servers and it updates. the two servers SQL must be on the same domain.

Diagram nawor "simplifie" platform (Th switchs are not present to monitor which is connected to what ) :

ServStor Server Configuration 01

On this server we have 9 port naworks used. 1 dedicated to management. 2 x 4 dedicated ports to iSCSI.

Schema reseau simple.PNGNIC1, NIC2 et NIC3 correspond to the three present networks cards, each with 4 ports gigabits. (See diagram to identify the connections )

For the networ 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 unchec "

Register this connection's addresses in DNS

"

On the server ServStor01, it installs the rol iSCSIRegister dns.PNG Target Server

In the Server Manager, we will create disks Roles servstor01.PNGiSCSI (who are at the end of the) and t Target iSCSI that go them with :

It therefor :

  • task / New iSCSI virtual disk
  • Select the volume
  • It gives it a name (one can notice its future path down )
  • Choose the size in ISCSI servstor01.PNG"Fixed Size" (Leave "Clear the virtual disk on allocation")
  • One choos "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 IP and put a IPIt will change it later.
  • Leave CHAP et Reverse CHAP unchecke
  • We finish by "Create" The "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 th quorum (1GB will s)

Configuration iSCSI servers ServSQL 01 et 02

In this part, we will connect the two servers SQL to the serve storage by links iSCSI. We will use the MPIO in order to use ou 4 links networks and to share the load.

Configuration IP servers :

NIC1 et NIC2 correspond to the two network adapters on servers. NIC1 owns 4 ports, NIC2 a 2. Here is the configura :

ServSQL01 : NIC1 port 1 : 192.168.0.22 NIC1 port 2 : 192.168.0.26 NIC1 port 3 : IP Server 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


For all cards in  192.168.0.x will in the Advanced Settings tab  
DNS
, and on the box unchec "
Register this connection's addresses in DNS"

  • On both servers, installing the feature "Multipath I/O".

Register dns.PNG

  • Once installed in the interface metro de 2012R2 (started so click ) just type "Feature mpio.PNGMPIO" and click on the result :

  • In the tab "Discover Multipaths" on coche Mpio.PNG"Add Support for iSCSI devices" then clicked on ADD. It proposes to restart, is done.
  • Once restarted, it relaunches MPIO, and this ensures "MSFT2005iSCSIBusType_0x9" is present in the "device hardware id".
  • It then launche "iSCSIinitiator " on both servers SQL
  • One goes on the tab "Configuratio" and it retrieves t "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 SQL on all the Targets
  • Removing thIP 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 storage.
  • We go in the tab "Favorite Targets", one on t Target visible then it mad remove.
  • Returns the tab "Targets" then we go on properties for one of Target
  • The switching off the current session, and then clicke Add Session. On coche Multipath, clicked on advanced. One choos "Microsoft iSCSI initiator". En initiator IP it chooses the first IP iSCSI du serveur SQL. En Target portal IP it chooses the first IP iSCSI Server of storage. It valid 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">

Initiator IPborder= 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 o Failover servers ServSQL 01 et 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 me Windows, "disk management"). From here we pass disks in "online" and it initializes (GPT). It also created the partitions and formats it.


It then launche "Failover cluster Manager" and it po 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 se SQL
  • You enter the nam cluster, in our example we'll take clusterSQL01
  • Leave "Add all eligible storage to the cluster" check
  • It valid

Once created, down in "cluster core resources", we click right "ip address" / properties. One chooses 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 na clusterand t "more actions" et "configure cluster quorum settings".

  • Been next
  • Select the quorum witness
  • Configure a disk witness
  • We check the corresponding disk to quorum
  • been next The finish.
  • The other two discs, it pointed "add to clustershared volume"

We get the disc a logs volume 1 and the disc a BDD volume 2 in our case.


We now have a cluster configured.

Installation o SQL 2014 en cluster

We begin by VMSQL01

  • It installs the feature .net 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 Install SQL1.PNGDatabase 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 th 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 volum iSCSI)
  • For th reporting Services one p "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:
SQL
%20Server&EvtSrc=Setup.rl&EvtID=50000&Collec=12.0.2000.8&EvtType=0x0ADF5303%25400xBB814387
http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20
<span class="notranslate">

You should go in the volume concerned with Explorer  </span>windows
to 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 th .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 Install SQL2.PNGfailover wit 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.


You are not allowed to post comments.


<comments />
<comments />
<comments />