###Listing 3: iSCSI-Target auf storage1 einrichten

~ # mkdir -p /srv/storage/
~ # dd if='/dev/zero' of='/srv/storage/myblock1' bs='1M' count='30000'
~ # dd if='/dev/zero' of='/srv/storage/myblock2' bs='1M' count='10'
~ # zypper install 'iscsitarget' 'iscsitarget-kmp-default'
~ # yast iscsi-server
-->Targets 
   Target: iqn.storage1 
   Identifier: myblock1
   -->Add
      Path: /srv/storage/myblock1
      -->OK
   -->Next 
      No Authentication
   -->Next 
-->Finish

~ # yast iscsi-server
-->Targets 
   Target: iqn.storage1 
   Identifier: myblock2
   -->Add
      Path: /srv/storage/myblock2
      -->OK
   -->Next 
      No Authentication
   -->Next 
-->Finish

~ # grep -v '^$\| *#' /etc/ietd.conf
Target iqn.storage1:myblock1
Lun 0 Path=/srv/storage/myblock1,Type=fileio
Target iqn.storage1:myblock2
Lun 0 Path=/srv/storage/mysbd1,Type=fileio
~ # netstat -natup | grep 'ietd'
tcp     0     0 0.0.0.0:3260     0.0.0.0:*     LISTEN     9945/ietd           
tcp     0     0 :::3260          :::*          LISTEN     9945/ietd           
~ # iptables -L -n; # check that firewall does not block port 3260
