This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
сервис_iscsi [2022/02/03 11:38] val [Debian/Ubuntu] |
сервис_iscsi [2023/05/17 13:08] val [Debian/Ubuntu] |
||
---|---|---|---|
Line 20: | Line 20: | ||
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 28: | ||
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 36: | ||
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 | ||