This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_iscsi [2022/02/02 15:40] val [Debian/Ubuntu] |
сервис_iscsi [2024/10/21 09:40] (current) val [Сервис iSCSI] |
||
---|---|---|---|
Line 3: | Line 3: | ||
* [[http://ru.wikipedia.org/wiki/ISCSI|ISCSI wikipedia]] | * [[http://ru.wikipedia.org/wiki/ISCSI|ISCSI wikipedia]] | ||
* [[https://habrahabr.ru/post/97529/|Настройка ISCSI initiator в linux]] | * [[https://habrahabr.ru/post/97529/|Настройка ISCSI initiator в linux]] | ||
+ | |||
+ | * [[https://nvme.smb-solution.ru/roce/|RoCE — RDMA over Converged Ethernet]] | ||
===== iSCSI initiator ===== | ===== iSCSI initiator ===== | ||
Line 9: | Line 11: | ||
* [[https://support.qnap.ru/hc/ru/articles/360000714933-%D0%9F%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BA-iSCSI-Target-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%BD%D0%BE%D0%B9-%D0%BD%D0%B0-%D1%81%D0%B5%D1%82%D0%B5%D0%B2%D0%BE%D0%BC-%D1%85%D1%80%D0%B0%D0%BD%D0%B8%D0%BB%D0%B8%D1%89%D0%B5-%D1%81-%D0%9E%D0%A1-Linux|Подключение к iSCSI Target, созданной на сетевом хранилище с ОС Linux]] | * [[https://support.qnap.ru/hc/ru/articles/360000714933-%D0%9F%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BA-iSCSI-Target-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%BD%D0%BE%D0%B9-%D0%BD%D0%B0-%D1%81%D0%B5%D1%82%D0%B5%D0%B2%D0%BE%D0%BC-%D1%85%D1%80%D0%B0%D0%BD%D0%B8%D0%BB%D0%B8%D1%89%D0%B5-%D1%81-%D0%9E%D0%A1-Linux|Подключение к iSCSI Target, созданной на сетевом хранилище с ОС Linux]] | ||
+ | * [[https://wiki.debian.org/SAN/iSCSI/open-iscsi|Debian as an iSCSI Initiator]] | ||
<code> | <code> | ||
Line 20: | Line 23: | ||
nodeN# iscsiadm -m node | nodeN# iscsiadm -m node | ||
- | nodeN# Не всегда срабатывает после перезагрузки, можно прописать в /etc/rc.local | + | nodeN# |
iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node3:3260" --login | iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node3:3260" --login | ||
iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node4:3260" --login | iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node4:3260" --login | ||
Line 28: | Line 31: | ||
nodeN# lsblk | nodeN# lsblk | ||
- | |||
- | # grep -r 'DEVNAME=sd' /sys/devices/platform/ 2>/dev/null | ||
- | |||
- | # grep -r 192.168.X /sys/devices/platform/ 2>/dev/null | grep persistent_address | ||
</code> | </code> | ||
* [[Сервис multipath]] | * [[Сервис multipath]] | ||
Line 40: | Line 39: | ||
node.startup = automatic | node.startup = automatic | ||
... | ... | ||
+ | </code> | ||
+ | * Не всегда срабатывает после перезагрузки, можно добавить как здесь: [[https://bugzilla.redhat.com/show_bug.cgi?id=864036|Bug 864036 - iSCSI session are not restored after reboot]] | ||
+ | <code> | ||
+ | # cat /etc/rc.local | ||
</code><code> | </code><code> | ||
+ | #!/bin/sh | ||
+ | |||
+ | iscsiadm -m node -l | ||
+ | </code><code> | ||
+ | nodeN# chmod +x /etc/rc.local | ||
+ | |||
nodeN# init 6 | nodeN# init 6 | ||
Line 48: | Line 57: | ||
* [[https://help.ubuntu.ru/wiki/%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE_%D0%BF%D0%BE_ubuntu_server/%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%BE%D0%B5_%D1%81%D0%B2%D1%8F%D0%B7%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D1%83%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%81%D1%82%D0%B2/overview|Обзор установки DM-Multipath]] | * [[https://help.ubuntu.ru/wiki/%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE_%D0%BF%D0%BE_ubuntu_server/%D0%BC%D0%BD%D0%BE%D0%B6%D0%B5%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D0%BE%D0%B5_%D1%81%D0%B2%D1%8F%D0%B7%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D1%83%D1%81%D1%82%D1%80%D0%BE%D0%B9%D1%81%D1%82%D0%B2/overview|Обзор установки DM-Multipath]] | ||
* [[https://unlix.ru/%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-mpio-iscsi-luns-%D0%BD%D0%B0-linux/|Подключение MPIO iSCSI LUNs на Linux]] | * [[https://unlix.ru/%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-mpio-iscsi-luns-%D0%BD%D0%B0-linux/|Подключение MPIO iSCSI LUNs на Linux]] | ||
+ | |||
+ | <code> | ||
+ | iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node3:3260" -o delete | ||
+ | iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node4:3260" -o delete | ||
+ | iscsiadm -m node --targetname "virtual-ceph-test-pool1-rbd1:iscsi" --portal "node5:3260" -o delete | ||
+ | </code> | ||
==== Windows ==== | ==== Windows ==== | ||