Connect the storage LUN to the server
Once the LUN is connected, the storage will be available on the server as an unpartitioned disk area.
Data exchange between the storage LUN and the server is performed via iSCSI protocol using two independent network interfaces. The LUN acts as an iSCSI target that is connected to the SAN switch, and the server acts as an iSCSI initiator.
You must connect the storage LUN separately to each server.
- Make sure that you have requested that the storage LUN connect to this server.
- Connect to the server.
- Install the iSCSI initiator. If Windows is installed on the server, skip to step 4.
- Output information about the iSCSI initiator.
- Query the parameters for connecting the storage LUN to the server.
- Configure the iSCSI connection.
- Configure MPIO.
1. Check the request to connect the storage LUN to the server
Check that in the service order ticket you requested that the storage LUN be connected to this server.
If you have not requested connection of this server, create a ticket. In the ticket, specify the UUID or IP address of the server. You can view it in the Control Panel: in the top menu, click Products and select Dedicated Servers → Servers → Server → Server page → Operating System tab → IP field.
2. Connect to the server
Linux
Windows
3. Install the iSCSI initiator
Debian and Ubuntu
CentOS
Windows
apt-get update && apt-get install open-iscsi multipath-tools
yum install iscsi-initiator-utils device-mapper-multipath
The iSCSI initiator is included in the OS. Go to the iSCSI initiator information output in step 4.
4. Output iSCSI initiator information
Linux
Windows
cat /etc/iscsi/initiatorname.iscsi
-
Run PowerShell as an administrator.
-
Output information about the iSCSI initiator:
Get-Service MSiSCSI | Set-Service -StartupType Automatic
Start-Service MSiSCSI
(Get-InitiatorPort).NodeAddress
5. Request parameters for connecting the storage LUN to the server
-
Create a ticket requesting parameters for connecting the storage LUN to the server. Specify the iSCSI initiator information that you received when you iSCSI initiator information output.
Request network settings for iSCSI-targets and CHAP authentication settings:
- The IP addresses of the iSCSI tags that are connected to the SAN switch;
- IP addresses to configure on servers to connect to iSCSI targets;
- user name (login) and password for CHAP authentication — the same pair is used for all servers.
-
Wait for a Servercore employee to respond.
6. Configure the iSCSI connection
Ubuntu
Debian
CentOS
Windows
All iSCSI connection settings are saved in the iSCSI initiator folder, directory /var/lib/iscsi.
-
Open the
netplanutility configuration file with thevitext editor:vi /etc/netplan/01-netcfg.yaml -
Configure two network interfaces on the server. Add IP addresses to the network interfaces connected to the SAN switch to access iSCSI targets:
<eth_name_1>:
addresses: [<ip_address_1>/<mask_1>]
<eth_name_2>:
addresses: [<ip_address_2>/<mask_2>]Specify:
<eth_name_1>