2017-10-11 16:02:55 +00:00
|
|
|
-------------------------------------
|
|
|
|
iSCSI Initiator for Microsoft Windows
|
|
|
|
-------------------------------------
|
2017-07-06 17:31:39 +00:00
|
|
|
|
|
|
|
**Prerequisite:**
|
|
|
|
|
2017-11-03 14:09:38 +00:00
|
|
|
- Microsoft Windows Server 2016
|
2017-07-06 17:31:39 +00:00
|
|
|
|
|
|
|
**iSCSI Initiator, Discovery and Setup:**
|
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. Install the iSCSI initiator driver and MPIO tools.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-11-03 14:09:38 +00:00
|
|
|
#. Launch the MPIO program, click on the "Discover Multi-Paths" tab, check the
|
|
|
|
"Add support for iSCSI devices” box, and click "Add". This will require a
|
|
|
|
reboot.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. On the iSCSI Initiator Properties window, on the "Discovery" tab, add a target
|
2017-07-06 17:31:39 +00:00
|
|
|
portal. Enter the IP address or DNS name and Port of the Ceph iSCSI gateway.
|
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. On the “Targets” tab, select the target and click on “Connect”.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. On the “Connect To Target” window, select the “Enable multi-path” option, and
|
2017-07-06 17:31:39 +00:00
|
|
|
click the “Advanced” button.
|
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. Under the "Connet using" section, select a “Target portal IP” . Select the
|
2017-07-06 17:31:39 +00:00
|
|
|
“Enable CHAP login on” and enter the "Name" and "Target secret" values from the
|
|
|
|
Ceph iSCSI Ansible client credentials section, and click OK.
|
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. Repeat steps 5 and 6 for each target portal defined when setting up
|
2017-07-06 17:31:39 +00:00
|
|
|
the iSCSI gateway.
|
|
|
|
|
|
|
|
**Multipath IO Setup:**
|
|
|
|
|
|
|
|
Configuring the MPIO load balancing policy, setting the timeout and
|
|
|
|
retry options are using PowerShell with the ``mpclaim`` command. The
|
2017-11-03 14:09:38 +00:00
|
|
|
rest is done in the iSCSI Initiator tool.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-08-08 23:14:57 +00:00
|
|
|
.. note::
|
2017-07-06 17:31:39 +00:00
|
|
|
It is recommended to increase the ``PDORemovePeriod`` option to 120
|
|
|
|
seconds from PowerShell. This value might need to be adjusted based
|
|
|
|
on the application. When all paths are down, and 120 seconds
|
|
|
|
expires, the operating system will start failing IO requests.
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
Set-MPIOSetting -NewPDORemovePeriod 120
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mpclaim.exe -l -m 1
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mpclaim -s -m
|
|
|
|
MSDSM-wide Load Balance Policy: Fail Over Only
|
|
|
|
|
2017-11-03 14:09:38 +00:00
|
|
|
#. Using the iSCSI Initiator tool, from the “Targets” tab, click on
|
|
|
|
the “Devices...” button.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. From the Devices window, select a disk and click the
|
2017-08-08 23:14:57 +00:00
|
|
|
“MPIO...” button.
|
2017-07-06 17:31:39 +00:00
|
|
|
|
2017-07-12 22:11:25 +00:00
|
|
|
#. On the "Device Details" window the paths to each target portal is
|
2017-08-08 23:14:57 +00:00
|
|
|
displayed. If using the ``ceph-ansible`` setup method, the
|
2017-07-06 17:31:39 +00:00
|
|
|
iSCSI gateway will use ALUA to tell the iSCSI initiator which path
|
|
|
|
and iSCSI gateway should be used as the primary path. The Load
|
|
|
|
Balancing Policy “Fail Over Only” must be selected
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
mpclaim -s -d $MPIO_DISK_ID
|
|
|
|
|
2017-08-08 23:14:57 +00:00
|
|
|
.. note::
|
|
|
|
For the ``ceph-ansible`` setup method, there will be one
|
2017-07-06 17:31:39 +00:00
|
|
|
Active/Optimized path which is the path to the iSCSI gateway node
|
|
|
|
that owns the LUN, and there will be an Active/Unoptimized path for
|
|
|
|
each other iSCSI gateway node.
|
|
|
|
|
|
|
|
**Tuning:**
|
|
|
|
|
|
|
|
Consider using the following registry settings:
|
|
|
|
|
|
|
|
- Windows Disk Timeout
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Disk
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2017-08-08 23:14:57 +00:00
|
|
|
TimeOutValue = 65
|
2017-07-06 17:31:39 +00:00
|
|
|
|
|
|
|
- Microsoft iSCSI Initiator Driver
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
HKEY_LOCAL_MACHINE\\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\<Instance_Number>\Parameters
|
|
|
|
|
|
|
|
::
|
2017-08-08 23:14:57 +00:00
|
|
|
LinkDownTime = 25
|
|
|
|
SRBTimeoutDelta = 15
|