|
|
| (10 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| <source lang=bash>
| | *[[iscsi Grundlagen]] |
| </source>
| | *[[iscsi Begriffe und Schaubild]] |
| | | *[[iscsi linux]] |
| | |
| =Iscsi Target=
| |
| *[[iscsi-target]] | |
| *[[tgt]] | |
| =Links=
| |
| *https://www.server-world.info/en/note?os=Ubuntu_16.04&p=iscsi&f=2 | |
| | |
| =Initiator=
| |
| =Initiator=
| |
| <source lang=bash>
| |
| root@rome:~# apt install open-iscsi
| |
| </source>
| |
| ==iSCSI Initiator Configuration==
| |
| Once the open-iscsi package is installed, edit /etc/iscsi/iscsid.conf changing the following:
| |
| node.startup = automatic
| |
| ==Discover==
| |
| <source lang=bash>
| |
| root@rome:~# iscsiadm -m discovery -t st -p 192.168.240.3 -d 3
| |
| iscsiadm: Max file limits 1024 4096
| |
| | |
| iscsiadm: starting sendtargets discovery, address 192.168.240.3:3260,
| |
| iscsiadm: connecting to 192.168.240.3:3260
| |
| iscsiadm: connected local port 59473 to 192.168.240.3:3260
| |
| iscsiadm: connected to discovery address 192.168.240.3
| |
| iscsiadm: login response status 0000
| |
| iscsiadm: discovery process to 192.168.240.3:3260 exiting
| |
| iscsiadm: disconnecting conn 0x18c7de0, fd 3
| |
| 192.168.240.3:3260,1 iqn.2020-12.org.xinux.doom:storage
| |
| </source>
| |
| ==Login==
| |
| <source lang=bash>
| |
| iscsiadm -m node --login
| |
| </source>
| |
| | |
| =Authentifizierung=
| |
| ==Target==
| |
| */etc/iet/ietd.conf
| |
| <source lang=bash>
| |
| IncomingUser initiator-admin sysadm
| |
| Target iqn.2020-12.org.xinux.doom:storage
| |
| IncomingUser initiator-admin sysadm
| |
| </source>
| |
| | |
| ==Initiator==
| |
| <source lang=bash>
| |
| # *************
| |
| # CHAP Settings
| |
| # *************
| |
| | |
| # To enable CHAP authentication set node.session.auth.authmethod
| |
| # to CHAP. The default is None.
| |
| node.session.auth.authmethod = CHAP
| |
| | |
| # To set a CHAP username and password for initiator
| |
| # authentication by the target(s), uncomment the following lines:
| |
| node.session.auth.username = initiator-admin
| |
| node.session.auth.password = sysadm
| |
| | |
| # To set a CHAP username and password for target(s)
| |
| # authentication by the initiator, uncomment the following lines:
| |
| #node.session.auth.username_in = initiator-admin
| |
| #node.session.auth.password_in = sysadm
| |
| | |
| # To enable CHAP authentication for a discovery session to the target
| |
| # set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
| |
| discovery.sendtargets.auth.authmethod = CHAP
| |
| | |
| # To set a discovery session CHAP username and password for the initiator
| |
| # authentication by the target(s), uncomment the following lines:
| |
| discovery.sendtargets.auth.username = initiator-admin
| |
| discovery.sendtargets.auth.password = sysadm
| |
| | |
| # To set a discovery session CHAP username and password for target(s)
| |
| # authentication by the initiator, uncomment the following lines:
| |
| #discovery.sendtargets.auth.username_in = initiator-admin
| |
| #discovery.sendtargets.auth.password_in = sysadm
| |
| </source>
| |
| | |
| =Links=
| |
| https://help.ubuntu.com/lts/serverguide/iscsi-initiator.html
| |
| *https://www.thomas-krenn.com/de/wiki/ISCSI_an_einen_VMware_ESXi_5.1_Host_anbinden
| |
| *http://www.pug.org/mediawiki/index.php/ISCSI_unter_Debian
| |
| *http://qare.org/2012/05/14/ubuntu-12-04-with-iscsi-target-for-vmware-esxi-4-1/
| |
| *http://linhost.info/2012/05/configure-ubuntu-to-serve-as-an-iscsi-target/
| |
| *https://library.netapp.com/ecmdocs/ECMP1654943/html/GUID-8EC685B4-8CB6-40D8-A8D5-031A3899BCDC.html
| |