|
|
| (26 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| <source lang=bash>
| | *[[iscsi Grundlagen]] |
| </source>
| | *[[iscsi Begriffe und Schaubild]] |
| =Target=
| | *[[iscsi linux]] |
| ==Install==
| |
| <source lang=bash>
| |
| root@doom:~# apt-get install iscsitarget iscsitarget-dkms
| |
| </source>
| |
| ==Create a Virtual Disk==
| |
| <source lang=bash>
| |
| root@doom:~# mkdir /mnt/md0/luns/
| |
| root@doom:~# cd /mnt/md0/luns
| |
| root@doom:~# dd if=/dev/zero of=storagelun0 count=100 bs=1G
| |
| </source>
| |
| | |
| =Initiator=
| |
| ==iSCSI Initiator Install==
| |
| <source lang=bash>
| |
| root@rome:~# sudo apt-get install open-iscsi
| |
| </source>
| |
| =Initiator=
| |
| ==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>
| |
| | |
| =Links=
| |
| https://help.ubuntu.com/lts/serverguide/iscsi-initiator.html
| |
| | |
| *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/ | |