Iscsi
Содержание:
Create an iSCSI target and LUN on the ES NAS
Follow the steps below to create an iSCSI target and LUN on the NAS.
- Go to “Storage Manager” > “iSCSI Storage” > “Create” to launch the Quick Configuration Wizard.
- Select «iSCSI Target with a mapped LUN».
- Confirm that the wizard will help you create an iSCSI target with a mapped LUN. Then click «Next.»
- Enter the target name and alias. The «Data Digest» and «Header Digest» are optional fields (under «CRC/Checksum») and are the parameters for which the iSCSI initiator is verified using cyclic redundancy check. Click «Next.»
- Enter the CHAP authentication settings and click «Next». Check «Use CHAP authentication» and only the initiator will be authenticated by the iSCSI target, and users of the initiators are required to enter the username and password specified here to access the target. Check «Mutual CHAP» for two-way authentication between the iSCSI target and the initiator. The target authenticates the initiator using the first set of username and password. The initiator authenticates the target using the «Mutual CHAP» settings. Observer the following limitation on username and password:
- Username limitation: The only valid characters are 0-9, a-z, A-Z and the maximum length is 256 characters.
- Password limitation: The only valid characters are 0-9, a-z, A-Z and must contain 12-16 characters.
- Select the interface the target uses for data transfer. Then click “Next”.
- Specify the access rights for existing hosts to access the target or add a new host (more on add a new host below). Note that at least one host on the list must have the “All Access” access right (you can click the field under “Access” to edit the access right for that host.) Click “Next”.
- To add a new host:
- Click “Create Host”
- Enter the host name in the Host Alias Name field. Click “+” in the “IPv4 Address/Subnet” or “IPv6 Address/Subnet” to add a new host by entering its IP address or network ID with subnet mask using CIDR notation.
- Select the hosts’ operating system and then click “Apply”.
- Confirm your settings and make sure that the access right is “All Access” for the added hosts. Then click “Next”.
- To add a new host:
- Create an iSCSI LUN by completing the following:
- -Specify the name of the LUN
- -Choose the LUN allocation method
- Thin Provisioning: Allocate the disk space in a flexible manner. The disk space can be allocated to the target anytime regardless of the current storage capacity available on the NAS. Over-allocation is allowed as the storage capacity of the NAS can be expanded using online RAID capacity expansion.
- Instant Allocation: Allocate the disk space to the LUN instantly. This option guarantees the disk space assigned to the LUN but may require more time to create the LUN.
- -Choose the LUN location (storage pool on the NAS), the capacity, and the alert threshold.
- -Choose the performance profile (generic, Hyper-V, VMware, database, or customized) from the drop-down list. Each option will set a different block size for the created LUN for optimized performance. If you are not sure about which one to choose, select “generic”.
- -SSD cache: Enable SSD cache on this share folder. An SSD cache can be used to accelerate the performance of the NAS. Please note that at least one SSD needs to be installed to enable this function.
- -Deduplication: ZFS deduplication is the other data reduction method available on the ES NAS. This option allows the system to reduce the amount of storage needed by eliminating duplicate copies of data. However, it must be used with caution as it can become very computationally intensive in some workloads (e.g. streaming workloads). If enabling this option, it is recommended only to use this shared folder for workloads for which it works well and put other workloads on other shared folders that use compression instead.
- -Compression: The ES NAS utilizes ZFS’s inline data reduction, offering compression and deduplication options. When this option is enabled, more CPU resources of the NAS will be used but the size of the shared folder can be reduced.
- -Encryption: Enter the encryption password to encrypt the LUN. The password must be 8-16 characters long. Symbols (! @ # $ % ^ & * ( )_+ = ?) are supported. The iSCSI LUN can be encrypted using 256-bit AES encryption to provide data breach protection. Encrypted LUNs can only be mapped to an iSCSI target for normal read/write access with the authorized password. Select “Save the encryption key” for automatic unlocking and mapping the encrypted LUN when the NAS restarts.
- Confirm the settings and click «Next».
- Click “Finish” and the target and the mapped LUN will both show up in the list.
Сервисы[править | править код]
iSNS обеспечивает четыре основных сервиса:
Регистрация имён и поиск ресурсов хранения данныхправить | править код
Сервис регистрации имён предоставляет всем объектам в сети возможность зарегистрироваться и опрашивать базы данных для поиска ресурсов хранения данных. Например, клиенты-инициаторы могут получить от iSNS сервера информацию о других инициаторах (например, iSCSI-инициаторах) и конечных объектах (например, iSCSI-целях (iSCSI Target)).
Исследование домена и авторизацииправить | править код
Администраторы могут использовать домены обнаружения для разделения устройств хранения данных на управляемые группы. Для этой группировки администраторы могут ограничивать авторизацию каждого узла в наиболее подходящей подсети, зарегистрированной в iSNS, что позволяет расширить сеть хранилищ данных за счет сокращения числа ненужных запросов на авторизацию путём ограничения времени, которое каждый узел тратит на установление входа в сеть.
Каждый узел может использовать Login Control для делегирования своего управления доступом и политики авторизации iSNS серверу. Такое делегирование призвано содействовать централизации управления доступом.
Основные уведомления об измененияхправить | править код
Сервис уведомления об изменениях (SCN) позволяет серверам iSNS выдавать уведомления о каждом событии, которое затрагивает узлы хранения данных управляемой ими сети. Каждый клиент iSNS может зарегистрироваться для получения уведомлений от имени своих узлов хранения, и каждый клиент будет реагировать на это в соответствии со своими собственными требованиями и реализацией.
Двунаправленные отображения между Fibre Channel и ISCSI устройствамиправить | править код
Из-за того, что в базах данных iSNS сохраняются имена и поисковая информация об Fibre Channel и ISCSI устройствах, iSNS серверы способны хранить отображения Fibre Channel устройств к прокси-устройствам ISCSI в сети IP. Эти отображения может быть также сделаны и в противоположном направлении, что позволяет iSNS серверам хранить отображения ISCSI устройств к прокси-WWNs.
Mount iSCSI virtual disk
After the target has been connected, Windows will detect its presence and treat it as if a new hard disk drive has been added. The new iSCSI disk needs to be initialized and formatted before we can use it.
- In “Dashboard” on the left menu, go to “Tools” (in the top right corner) > “Computer Management”.
- Under the Storage folder in the left pane, select “Disk Management”. You should see a new disk appears as “Offline” in the bottom panel. Click “Offline” and select “Online” to bring this disk online.
- The disk status becomes Not Initialized. Before you can use a disk, you must first initialize it. Click on “Not Initialized” and select “Initialize Disk” to initialize this disk.
- The disk has been initialized. You can now create a volume on it. Click on the disk and select “New Simple Volume”.
- Follow the on-screen instruction of the “New Simple Volume Wizard” to create a new volume and assign a drive letter to this volume. After the volume is formatted, a new drive is attached to your PC. You can now use this iSCSI target as a regular disk partition.
Note: For more information on disk management, visit Disk Management on the Microsoft TechNet website.
Адресация[править | править код]
iSCSI использует TCP (обычно TCP-порты 860 и 3260) для самого протокола, с высокоуровневыми именами, используемыми для адресации объектов внутри самого протокола. Специальные имена присваиваются как iSCSI-инициаторам (initiators), так и целям (targets). iSCSI обеспечивает три формата имен:
iSCSI-типизированные имена (iSCSI Qualified Name) IQN
- буквенная аббревиатура iqn
- дата (гггг-мм), когда блок присвоения имен завладел доменом
- имя домена в обратном порядке (org.example)
- необязательное «:», служащее префиксом для имени хранилища, указанного блоком присвоения имен.
| Type | . | дата | . | имя домена | имя хранилища | |
|---|---|---|---|---|---|---|
| iqn | . | 2018-12 | . | com.example | storage:diskarrays-sn-a1235512 | |
| iqn | . | 2018-12 | . | com.example | storage:disk2.sys.prof |
Расширенный уникальный идентификатор (Extended Uniq Identifier) EUI
Формат: eui.{EUI-64-битный адрес} (прим. eui.02004567A425678D)
T11 администрация сетевого адреса (T11 Network Address Authority) NAA
Формат: naa.{NAA 64- или 128-битный идентификатор} (прим. naa.52004567BA64678D)
Имена формата IQN используются чаще всего, они определяются датой, поскольку у доменного имени может истечь срок или оно может быть приобретено кем-то другим.
Обычно участники обмена в iSCSI определяются с помощью трех или четырех полей:
- Имя хоста или IP-адрес (прим. iscsi.example.com)
- Номер порта
- iSCSI-имя (в одном из 3 форматов)
- Необязательный протокол аутентификации с косвенным согласованием.
Настройка iSCSI Initiator в Windows Server 2019
Следующий шаг – подключение к созданному iSCSI диску со второго сервера-инициатора. Перейдите в панель управления Control Panel, запустите iSCSI initiator (или выполните команду ).

В консоли управления службами services.msc поставьте автоматический тип запуска для службы Microsoft iSCSI Initiator Service, Или используйте команду:
Перейдите на вкладку Discovery, нажмите на кнопку Discover Portal и введите ввести IP-адрес первого сервера (iSCSI-таргет). Чтобы трафик ходил только через определённый сетевой интерфейс, нужно нажать кнопку Advanced, и изменить значения по умолчанию в выпадающих списках: Local Adapter –> Microsoft iSCSI Initiator, Initiator IP –> 172.17.244.8.

Для подключения к iSCSI хранилищу необходимо открыть порты 860 и 3260 в Windows Firewall.
Теперь переключитесь на первую вкладку Targets, на ней появится новое подключение. Чтобы включить его, нажмите Connect -> Advanced, выберите значения из выпадающих полей, включите галочку Enable CHAP log on, укажите имя пользователя и 12-значный пароль.

Осталось инициализировать сам iSCSI-диск, который сначала находится в состоянии Offline. Для этого на сервере-инициаторе необходимо в консоли Disk Management в контекстном меню нового диска выбрать пункт Online, а затем – Initialize Disk. Создайте на новом диске один или несколько разделов, присвойте метку и букву диска. Отформатируйте в файловой системе NTFS.
Для быстрой инициализации и форматирования нового диска можно использовать следующий однострочный PowerShell (см. пример в статье об управления дисками и разделами из PowerShell):
Примечание: iSCSI-диски не поддерживают файловую систему ReFS.
Теперь этот виртуальный диск, подключенный с другого сервера по протоколу iSCSI можно использовать как обычный локально подключенный диск.

Такие виртуальные iSCSI диски можно использовать в Windows Server для создания виртуального RAM диска в оперативной памяти.
Также вы можете подключить iSCSI диск на инициаторе из PowerShell. Чтобы получить IQN таргета, используйте командлет .
Чтобы подключится к iSCSI таргет выполните команду:

Если использовалась дополнительная проверка аутентификации CHAP, то необходимо будет это указать, используя следующую конструкцию:
Если вы хотите обеспечить высокую доступность и балансировку нагрузки для iSCSI дисков, можно использовать несколько избыточные сетевые компоненты (сетевые карты, коммутаторы) и модуль MPIO.
Конфигурация инициатора iSCSI в Debian
Следующим шагом в использовании ранее настроенной цели iSCSI является конфигурация инициатора iSCSI .
В качестве инициатора в этой статье будет использоваться другая система Debian 9, но любая система, которая может использовать протокол iSCSI, может подключиться к ранее настроенной цели; это может включать гипервизоры, такие как XenServer / ESXi или другие дистрибутивы, такие как Red Hat, Debian или Ubuntu.
Первым шагом в этом процессе для этого инициатора Debian является установка соответствующих пакетов для iSCSI .
# apt-get update # apt-get install open-iscsi
После того как apt завершит настройку пакетов open-iscsi , может начаться конфигурация инициатора iSCSI . Первым шагом будет соединение с целью получения исходной информации о конфигурации для подготовленной цели.
# iscsiadm -m discovery -t st -p 192.168.56.101
Когда эта команда будет запущена, она ответит назад с именем lun, настроенным ранее для этого конкретного хоста. Вышеприведенная команда также генерирует два файла для вновь обнаруженной информации LUN.
Подключение целевого сервера iSCSI
Теперь для файла, созданного для этого узла, должна быть настроена информация CHAP,чтобы эта цель iSCSI действительно была доступна инициатору .
Технически эта информация может быть настроена для всей системы в целом, но в том случае, если хост подключается к различным LUN с разными учетными данными, размещение этих учетных данных в файле конфигурации конкретного узла может смягчить любые проблемы.
Файл конфигурации узла будет существовать в каталоге « / etc / iscsi / nodes / » и будет иметь каталог для каждого LUN. В случае этой статьи (обратите внимание, что изменения будут изменяться, если имена / IP-адреса будут изменены)
# /etc/iscsi/nodes/iqn.2018-02.tecmint.com\:lun1/192.168.56.101\,3260\,1/default
Для работы с этим файлом можно использовать любой текстовый редактор.
# nano /etc/iscsi/nodes/iqn.2018-02.tecmint.com\:lun1/192.168.56.101\,3260\,1/default
Внутри этого файла будет несколько уже настроенных параметров для соответствующей цели,которые были определены во время команды « iscsiadm », выполняемой ранее.
Поскольку эта целевая / инициаторная установка Debian использует взаимный CHAP , некоторые другие параметры необходимо изменить и добавить в этот файл, а затем выполнить вход в цель iSCSI .
Изменения этого файла:
node.session.auth.authmethod = CHAP #Enable CHAP Authentication node.session.auth.username = tecmint-iscsi-user #Target to Initiator authentication node.session.auth.password = password #Target to Initiator authentication node.session.auth.username_in = debian-iscsi-target #Initiator to Target authentication node.session.auth.password_in = secretpass #Initiator to Target authentication
Вышеуказанные параметры позволят этой цели аутентифицироваться инициатору, а также позволяют инициатору пройти аутентификацию цели .
В этом конкретном файле есть другой вариант, который может потребоваться изменить в зависимости от настроек администратора, и это параметр « node.startup ».
Если после этого руководства параметр « node.startup » будет установлен на « ручной » в этой точке. Это может быть нежелательно. Если администратор хочет, чтобы цель iSCSI былаподключена при запуске системы, измените « вручную » на « автоматический »:
node.startup = automatic
После внесения указанных изменений сохраните файл и выйдите из него. На этом этапе сервис инициатора open-iscsi необходимо перезапустить, чтобы прочитать эти новые изменения и подключиться к цели iSCSI .
Это может быть выполнено с помощью одной из следующих команд в зависимости от используемой системы инициализации.
# service open-iscsi restart (For sysv init systems) # systemctl restart open-iscsi (For systemd init systems)
Restart Open Инициатор iSCSI
Обратите внимание, что в зеленом поле выше, инициатор iSCSI смог войти в цель . Чтобы еще раз подтвердить, что цель iSCSI действительно доступна инициатору , мы можем проверить систему на наличие дополнительных дисковых накопителей, которые доступны с помощью команды lsblk и проверки вывода для дополнительных дисков
# lsblk
Проверка целевого диска iSCSI
Другая команда, которая может быть использована инициатором для подтверждения подключения к цели, — это iscsiadm как таковой:
# iscsiadm -m session
Подтверждение соединения с целью ISCSI
Последнее место для подтверждения соединения будет на самой цели с помощью команды « tgtadm » для перечисления любых подключений iSCSI.
# tgtadm --mode conn --op show --tid 1
Image Sensing Systems Inc Company Profile
IndustryScientific & Technical Instr.
SectorTechnology
Employees
55
Equity Type
ORD
Image Sensing Systems, Inc. is a provider of software-based products and solutions for the intelligent transportation systems (ITS) industry. The Company develops and markets video and radar processing products for use in traffic, security, police and parking applications, such as intersection control, highway, bridge and tunnel traffic management, venue security, entry control and traffic data collection. The Company operates through two segments: Intersection and Highway. Video products are sold in the Intersection segment. Radar products are sold in the Highway segment. The Company’s family of products, which it markets as Autoscope video or video products (Autoscope) and RTMS radar or radar products (RTMS), provides end users with the tools that manage traffic flow and support driver safety. Its technology analyzes signals from sensors and transmits the information to management systems and controllers or directly to users.
Read More
Настройка iSCSI initiator[править]
iSCSI-initiator — клиент подключающийся к iSCSI-target.
Установим пакет open-iscsi запустим и добавим в автозагрузку сервис iscsid:
# apt-get install open-iscsi # systemctl enable iscsid # systemctl start iscsid
Присоединим iSCSI хранилище к нашему кластеру:
Для этого выполним команды:
Посмотреть доступные для подключения target-ы можно с помощью команды:
# iscsiadm -m discovery -t sendtargets -p 10.10.10.202
Подключить target-ы:
# iscsiadm -m node --login
То же самое нужно выполнить для второго подключения к серверу.
Настроим автоматическое подключение iSCSI-target-ов. Для этого необходимо поменять следующие параметры:
В файле /etc/iscsi/iscsid.conf:
node.startup = automatic
В файле /etc/iscsi/send_targets/<TargetServer>,<Port>/st_config
discovery.sendtargets.use_discoveryd = Yes
Вместо <TargetServer> подставляем IP адреса серверов.
В итоге при загрузке у нас должны подключаться два устройства (/dev/sdb, /dev/sdc).
Implementations
Operating systems
The dates in the following table denote the first appearance of a native driver in each operating system. Third-party drivers for Windows and Linux were available as early as 2001, specifically for attaching IBM’s IP Storage 200i appliance.
| OS | First release date | Version | Features |
|---|---|---|---|
| i5/OS | 2006-10 | i5/OS V5R4M0 | Target, Multipath |
| VMware ESX | 2006-06 | ESX 3.0, ESX 4.0, ESXi 5.x, ESXi 6.x | Initiator, Multipath |
| AIX | 2002-10 | AIX 5.3 TL10, AIX 6.1 TL3 | Initiator, Target |
| Windows | 2003-06 | 2000, XP Pro, 2003, Vista, 2008, 2008 R2, Windows 7, Windows 8, Windows Server 2012, Windows 8.1, Windows Server 2012 R2, Windows 10, Windows Server 2016 | Initiator, Target, Multipath |
| NetWare | 2003-08 | NetWare 5.1, 6.5, & OES | Initiator, Target |
| HP-UX | 2003-10 | HP 11i v1, HP 11i v2, HP 11i v3 | Initiator |
| Solaris | 2002-05 | Solaris 10, OpenSolaris | Initiator, Target, Multipath, iSER |
| Linux | 2005-06 | 2.6.12, 3.1 | Initiator (2.6.12), Target (3.1), Multipath, iSER, VAAI |
| OpenBSD | 2009-10 | 4.9 | Initiator |
| NetBSD | 2002-06 | 4.0, 5.0 | Initiator (5.0), Target (4.0) |
| FreeBSD | 2008-02 | 7.0 | Initiator (7.0), Target (10.0), Multipath, iSER, VAAI |
| OpenVMS | 2002-08 | 8.3-1H1 | Initiator, Multipath |
| macOS | 2008-07 | 10.4— | N/A |
Targets
Most iSCSI targets involve disk, though iSCSI tape and medium-changer targets are popular as well. So far, physical devices have not featured native iSCSI interfaces on a component level. Instead, devices with Parallel SCSI or Fibre Channel interfaces are bridged by using iSCSI target software, external bridges, or controllers internal to the device enclosure.
Alternatively, it is possible to virtualize disk and tape targets. Rather than representing an actual physical device, an emulated virtual device is presented. The underlying implementation can deviate drastically from the presented target as is done with virtual tape library (VTL) products. VTLs use disk storage for storing data written to virtual tapes. As with actual physical devices, virtual targets are presented by using iSCSI target software, external bridges, or controllers internal to the device enclosure.
In the security products industry, some manufacturers use an iSCSI RAID as a target, with the initiator being either an IP-enabled encoder or camera.
Converters and bridges
Multiple systems exist that allow Fibre Channel, SCSI and SAS devices to be attached to an IP network for use via iSCSI. They can be used to allow migration from older storage technologies, access to SANs from remote servers and the linking of SANs over IP networks. An iSCSI gateway bridges IP servers to Fibre Channel SANs. The TCP connection is terminated at the gateway, which is implemented on a Fibre Channel switch or as a standalone appliance.
iSCSI Multipathing
The following types of sessions can be implemented for multipathing under iSCSI:
- using General Storage Multipathing Technologies, which have been settled on top of the iSCSI protocol regardless of the transmission technology
- using iSCSI Multiple Connections per Session (MC/S)
General Storage Multipathing Technologies – so-called Multipath I/O
For storage multipathing that should operate independently of the transmission technology there are two areas:
- Storage multipathing by the operating system (such as the Linux device mapper, MPIO)
- Storage multipathing by software solutions from the storage device manufacturer (such as EMC Powerpath)
The Storage Multipathing Technologies article provides details regarding these options.
iSCSI Multiple Connections per Session (MC/S)
Beyond that, iSCSI also provides options for multipathing over MC/S (Multiple Connections per Session) directly in the protocol. In order to be able to use MC/S, both the iSCSI Initiator and the iSCSI Target must support MC/S.
| Initiator | MC/S Support? | Additional information |
|---|---|---|
| Linux Open-iSCSI Software Initiator | no | ISCSI Multipathing under Linux |
| Microsoft iSCSI Software Initiator | yes |
| Target | MC/S Support? | Additional information |
|---|---|---|
| EMC CLARiiON | no | |
| EMC Celerra | yes | |
| NetApp | yes |
Подключение к iSCSI
Подключение к таргету с сервера под Linux
iscsiadm -m discovery -t st -p 192.168.1.23
iscsiadm -m node --targetname iqn.2010-09.org.openindiana:02:c3ef53a4-fe7d-c15d-dc45-dcdd4ed099d1 -p 192.168.1.23 --login
Отобразить доступные блочные устройства:
parted -l или fdisk -l
Настройка таргета на идентификацию инициаторов с использованием CHAP
itadm modify-target -a chap <target-iqn>
Создать контекст описывающий инициатора.
itadm create-initiator -s <initiator-iqn> itadm modify-initiator --chap-name <user_name> <initiator-iqn> itadm modify-initiator --chap-secret <initiator-iqn>
Пример:
itadm modify-initiator -s iqn.2013-02.net.colobridge.pro-book:01:8de284ad181 itadm modify-initiator --chap-user probook iqn.2013-02.net.colobridge.pro-book:01:8de284ad181 itadm modify-initiator --chap-secret iqn.2013-02.net.colobridge.pro-book:01:8de284ad181 Enter CHAP secret: Secret must be between 12 and 255 characters
Контроль:
itadm list-initiator -v INITIATOR NAME CHAPUSER SECRET iqn.2013-02.net.colobridge.pro-book:01:8de284ad181 probook set
На хосте — клиенте под Linux прописать параметры CHAP в файле /etc/iscsi/iscsid.conf
node.session.auth.username = <имя> node.session.auth.password = <пароль> discovery.sendtargets.auth.username = <имя> discovery.sendtargets.auth.password = <пароль>
Монтирование iSCSI target на хосте под Solaris
Настройка авторизации chap:
iscsiadm modify initiator-node --chap-name <user_name> <initiator-iqn> iscsiadm modify initiator-node --chap-secret <initiator-iqn> iscsiadm modify initiator-node --authentication chap <initiator-iqn>
svcadm enable iscsi_initiator
iscsiadm add discovery-address x.x.x.x
iscsiadm modify discovery –sendtargets enable
iscsiadm list target -S
Пролистать доступные диски:
devfsadm -i iscsi format < /dev/null
iSCSI Multipathing
Для включения многоканального доступа к таргетам надо выполнить на клиенте:
scsiadm modify discovery –static enable
Проверить файл /kernel/drv/iscsi.conf
Там должно быть значение
mpxio-disable="no"
Установить статические конфигурации:
iscsiadm add static-config iqn.2010-09.org.openindiana:02:c3ef53a4-fe7d-c15d-dc45-dcdd4ed099d1,10.100.30.73:3260 iscsiadm add static-config iqn.2010-09.org.openindiana:02:8b99aac1-18f3-6f69-9701-da43ddfdf1c6,192.168.1.23:3260
Проверьте /var/adm/messages
Вы должны увидеть degraded после первой команды и optimal после ввода команды второй статической конфигурации.
Проконтролируйте вывод dmesg:
dmesg | grep multipath
Скоро……
iSCSI Components
For iSCSI communication, the following components talk with each other:
- iSCSI Initiator
- iSCSI Target
iSCSI Initiator
A client in an iSCSI storage network is called the iSCSI Initiator Node (or simply, ‘iSCSI Initiator’). This iSCSI Initiator can connect to a server (the iSCSI Target). In doing so, the iSCSI Initiator sends SCSI commands to the iSCSI Target. These SCSI commands are packaged in IP packets for this purpose.
The following forms of iSCSI Initiators are available:
- iSCSI Hardware Initiator
QLogic iSCSI Adapters like the QLA4050C or QLE4060C
: a PCI-X or PCIe card, which implements the iSCSI functionality. Such a card is also called an iSCSI HBA. In the server’s operating system, such an iSCSI HBA appears to be a RAID controller or an FC HBA. With an iSCSI HBA, booting a server through iSCSI is possible. Examples are:
- iSCSI Software Initiator: an iSCSI Initiator implemented by software. The computing operations of the iSCSI initiator are performed by the server’s CPU in this solution (and not by hardware components on a proprietary PCI-X or PCIe card). Thanks to the increased performance of modern server CPUs, this is no longer a problem. Standard network cards are used on the hardware side for communication with the iSCSI Target. Examples of this are:
- VMware iSCSI Software Initiator for VMware ESX/ESXi
As long as booting from iSCSI is not a criterion, nothing speaks against the use of iSCSI Software Initiators. With some additional configuration effort, booting from the network with the iSCSI Software Initiator really is possible. iSCSI Software Initiators are less expensive, widely distributed and very stable. Even iSCSI over 10 Gbit Ethernet will be able to be easily implemented in the future using normal 10 Gbit Ethernet adapter cards.
iSCSI Target
A server in an iSCSI storage network is called the iSCSI Target Node (or simply, ‘iSCSI Target’). Such an iSCSI Target can provide one or more so-called logical units (LUs). The abbreviation “LUN” is often used for the term “logical unit” (although this abbreviation actually means “LU Number” or “logical unit number”).
The following forms of iSCSI Targets are available:
- as Software as iSCSI Target Software for installation on a standard server:
- Windows: Microsoft iSCSI Software Target 3.3
iSCSI Server implements the iSCSI Target functionality in various manners:
- Some iSCSI Storage Arrays have precisely one iSCSI Target (the Storage Array itself)
- Other iSCSI Storage Arrays have several iSCSI Targets, such as.
- a iSCSI Target per phys. Interface:
- NetApp
- EMC CLARiiON
- a iSCSI Target per LUN:
- Dell/EqualLogic
- HP/LeftHand
- Any configuration iSCSI Targets desired:
- a iSCSI Target per phys. Interface:
Настройка Multipath[править]
Сам по себе open-iscsi не умеет подключаться к нескольким IP одного target-а. При одновременном подключении мы получили два блочных устройства. Для решения этой проблемы существует multipath, который находит диски с одинаковым идентификаторами и обрабатывает их как один диск.
Установим необходимый пакет:
# apt-get install multipath-tools
Редактируем файл /etc/multipath.conf:
defaults {
user_friendly_names yes
}
Добавляем сервис в автозагрузку и запускаем его:
# systemctl enable multipathd # systemctl start multipathd
Multipath обработает наши iSCSI устройства, сделает из них одно, и положит его в каталог /dev/mapper
Посмотреть обработанные multipath устройства можно командой:
# multipath -ll mpatha (360000000000000000e00000000010001) dm-0 QEMU,QEMU HARDDISK size=10G features='0' hwhandler='0' wp=rw |-+- policy='service-time 0' prio=1 status=active | `- 3:0:0:1 sdb 8:16 active ready running `-+- policy='service-time 0' prio=1 status=enabled `- 4:0:0:1 sdc 8:32 active ready running
Отключить устройство можно командой:
# multipath -f mpatha
Trending Stocks
Create Alert
Add to Portfolio
Add to/Remove from a Portfolio
Add to Watchlist
Add Position
Position added successfully to:
Create Alert
New!
Create Alert
Website
- As an alert notification
- To use this feature, make sure you are signed-in to your account
Mobile App
- To use this feature, make sure you are signed-in to your account
- Make sure you are signed-in with the same user profile
| Name | Last | High | Low | Chg. | Chg. % | Vol. | Time | ||
|---|---|---|---|---|---|---|---|---|---|
| Apple | 129.04 | 131.00 | 126.00 | +4.23 | +3.39% | 225.70M | 31/08 | ||
| Tesla | 498.32 | 500.14 | 440.11 | +55.64 | +12.57% | 118.37M | 31/08 | ||
| Boeing | 171.82 | 175.27 | 171.70 | -3.98 | -2.26% | 16.26M | 31/08 | ||
| Microsoft | 225.53 | 228.70 | 224.31 | -3.38 | -1.48% | 28.77M | 31/08 | ||
| 293.20 | 296.88 | 291.55 | -0.46 | -0.16% | 17.35M | 31/08 | |||
| AMD | 90.82 | 92.64 | 85.05 | +5.27 | +6.16% | 90.66M | 31/08 | ||
| Visa A | 211.99 | 215.96 | 211.56 | -3.72 | -1.72% | 9.33M | 31/08 | ||
| NVIDIA | 534.98 | 543.00 | 521.51 | +9.07 | +1.72% | 12.52M | 31/08 | ||
| Exxon Mobil | 39.94 | 40.72 | 39.90 | -0.75 | -1.84% | 25.26M | 31/08 | ||
| Amazon.com | 3,450.96 | 3,495.00 | 3,405.00 | +49.16 | +1.45% | 4.19M | 31/08 |
Компоненты[править | править код]
Стандарт iSNS определяет четыре компонента:
Протокол iSNSPправить | править код
iSNSP это такой протокол, который определяет, каким образом клиенты и сервера iSNS общаются между собой. Он предназначен для использования на различных платформах, включая коммутаторы и конечные объекты. iSNSP основывается на сообщениях запросов и ответов, которые вместе формируют полную транзакцию.
Клиенты iSNSправить | править код
iSNS-клиентами могут быть как устройства хранения данных, предоставляющие свои услуги по сети, так и компьютеры, пользующиеся (опосредованно через сети передачи данных) услугами сетевых устройств хранения данных. iSNS-клиенты взаимодействуют с iSNS-серверами по протоколу iSNSP.
Устройства хранения данных (например iSCSI Target или FC Storage), используя протокол iSNSP, регистрируются на iSNS-сервере, предоставляя ему информацию об атрибутах устройства, в результате чего:
- а) становятся членами Домена Обнаружения (Discovery Domain, DD);
- б) могут загрузить с iSNS-сервера информацию о других зарегистрированных устройствах хранения,
- в) могут получать от iSNS-сервера асинхронные уведомления о событиях, произошедших в их Домене Обнаружения (rfc4171, п.2.1.2.),
- г) могут обязаться уведомлять iSNS-сервер об изменениях своего состояния (доступности) (rfc4171, п.2.3.2.).
Компьютеры, пользующиеся через сеть услугами устройств хранения данных (iSCSI-инициаторы), — получают от iSNS-сервера информацию о доступных в их Домене Обнаружения устройствах хранения данных, а также оповещения о появлении новых и удалении (недоступности) существовавших устройств хранения данных.
Серверы iSNSправить | править код
iSNS серверы реагируют на запросы iSNS протокола, а также на запросы, сделанные iSNS клиентами, использующими iSNSP. iSNS серверы инициируют уведомления об изменениях в iSNSP и хранят информацию, надлежащим образом прошедшую проверку подлинности и представляющую собой заявку на регистрацию в базе данных iSNS.
Базы данных iSNSправить | править код
Базы данных iSNS это информационные хранилища (репозитории) для iSNS серверов. Они хранят информацию об атрибутах клиентов iSNS, причём каталоги хранения могут отличаться в зависимости от реализации iSNS, например, они могут хранить атрибуты клиента в каталоге LDAP.
Адресация
iSCSI использует TCP (обычно TCP-порты 860 и 3260) для самого протокола, с высокоуровневыми именами, используемыми для адресации объектов внутри самого протокола. Специальные имена присваиваются как iSCSI-инициаторам (initiators), так и целям (targets). iSCSI обеспечивает три формата имен:
iSCSI-типизированные имена (iSCSI Qualified Name) IQN
- буквенная аббревиатура iqn
- дата (гггг-мм), когда блок присвоения имен завладел доменом
- имя домена в обратном порядке (org.example)
- необязательное «:», служащее префиксом для имени хранилища, указанного блоком присвоения имен.
| Type | . | дата | . | имя домена | имя хранилища | |
|---|---|---|---|---|---|---|
| iqn | . | 2018-12 | . | com.example | storage:diskarrays-sn-a1235512 | |
| iqn | . | 2018-12 | . | com.example | storage:disk2.sys.prof |
Расширенный уникальный идентификатор (Extended Uniq Identifier) EUI
Формат: eui.{EUI-64-битный адрес} (прим. eui.02004567A425678D)
T11 администрация сетевого адреса (T11 Network Address Authority) NAA
Формат: naa.{NAA 64- или 128-битный идентификатор} (прим. naa.52004567BA64678D)
Имена формата IQN используются чаще всего, они определяются датой, поскольку у доменного имени может истечь срок или оно может быть приобретено кем-то другим.
Обычно участники обмена в iSCSI определяются с помощью трех или четырех полей:
- Имя хоста или IP-адрес (прим. iscsi.example.com)
- Номер порта
- iSCSI-имя (в одном из 3 форматов)
- Необязательный протокол аутентификации с косвенным согласованием.
iSCSI Communication
As mentioned above, an iSCSI Initiator and an iSCSI Target talk with each other. The conversation is always started by the iSCSI Initiator. One or more iSCSI Connections may be used for a conversation (for each iSCSI connection a dedicated TCP connection is used). One such conversation is called an iSCSI Session.
The following image shows the schematic construction of an iSCSI setup:
iSCSI Session Types
Under iSCSI, there are two types of sessions:
- Normal operational session: which involves an unlimited session.
- Discovery-session: this type of session serves only for target discovery. The iSCSI Target may permit SendTargets text requests in such a session.
The type of iSCSI session is defined during iSCSI login.
