Table of Contents

iSCSI

The client (inititator) has the ip 192.168.200.200, the server (target) has the ip 192.168.200.10

iSCSI target

The scenario: the iscsi target serves its target from a software-raid1. On top of that we have an lvm2 logical volume.

Install the required software (running Ubuntu 12.04 LTS)

aptitude install iscsitarget iscsitarget-dkms
/etc/ietd/ietd.conf
Target iqn.2012-12.local.srv:target0
        IncomingUser user1 passwd
        OutgoingUser
        Lun 0 Path=/dev/vg0/data,Type=blockio
        Alias srvtgt0
        MaxConnections  1
/etc/ietd/initiators.allow
iqn.2012-12.local.srv:target0 192.168.200.200
/etc/ietd/targets.allow
iqn.2012-12.local.srv:target0 192.168.200.200

iSCSI initiator

Install the required software (running Debian Squeeze)

aptitude install open-iscsi
/etc/iscsi/iscsid.conf
[...]

node.startup = automatic

node.session.auth.authmethod = CHAP
node.session.auth.username = user1
node.session.auth.password = passwd

[...]
# check for targets:
iscsiadm -m discovery -t sendtargets -p 192.168.200.10:3260
 
# connect:
iscsiadm --mode node --targetname iqn.2012-12.local.srv:target0 --portal 192.168.200.10:3260 --login
 
# verify:
iscsiadm --mode session
tcp: [1] 192.168.200.10:3260,1 iqn.2012-12.local.srv:target0
networking/iscsi.txt · Last modified: 2012-12 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready