This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
wiki:os:linux:iscsi [2018/01/22 08:49] root |
wiki:os:linux:iscsi [2018/07/27 16:07] (current) root |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== iSCSI ====== | ====== iSCSI ====== | ||
- | ===== iSCSI Target ===== | + | ===== iSCSI Target |
<code bash> | <code bash> | ||
chkconfig tgtd on | chkconfig tgtd on | ||
Line 9: | Line 9: | ||
</ | </ | ||
+ | ===== iSCSI Target targetcli (new method)===== | ||
+ | **Zapnutí služby:** | ||
+ | < | ||
+ | systemctl enable target | ||
+ | systemctl start target | ||
+ | </ | ||
+ | |||
+ | **targetcli** | ||
+ | <code bash> | ||
+ | # přidání blokových zařízení | ||
+ | backstores/ | ||
+ | backstores/ | ||
+ | |||
+ | ls | ||
+ | |||
+ | # vytvoření iqn: | ||
+ | iscsi/ create | ||
+ | |||
+ | ls | ||
+ | |||
+ | cd iscsi/ | ||
+ | |||
+ | # vytvoření LUNů | ||
+ | cd luns | ||
+ | create / | ||
+ | create / | ||
+ | |||
+ | # Vypnutí autentizace a autorizace: | ||
+ | cd tpg1 | ||
+ | set attribute authentication=0 | ||
+ | set attribute generate_node_acls=1 | ||
+ | cd /iscsi | ||
+ | set discovery_auth enable=0 | ||
+ | |||
+ | # vypnutí výchozího read-only: | ||
+ | cd tpg1 | ||
+ | set attribute demo_mode_write_protect=0 | ||
+ | </ | ||
===== iSCSI Initiator ===== | ===== iSCSI Initiator ===== |