Linux

iSCSI Target (IET) – VMWare sample attach storage

Pubblicato il
twitterlinkedin

Requisiti.
disporre degli header del kernel (# yum install kernel-devel openssl-devel gcc rpm-build)
scaricare il pacchetto iscsi-target (http://sourceforge.net/projects/iscsitarget/files/iscsitarget/1.4.20.2/iscsitarget-1.4.20.2.tar.gz/download)
disporre il pacchetto (iscsitarget-1.4.20.2.tar.gz) in /usr/src

Installazione iscsitarget.

# cd /usr/src
# tar zxfv iscsitarget-1.4.20.2.tar.gz
# cd iscsitarget-1.4.20.2.tar.gz
# make
# make install
# chkconfig –add iscsi-target
# chkconfig iscsi-target on

 

Configurazione iscsitarget.
# cd /etc/iet
# nano ietd.conf

Target iqn.2010-12.iscsi.virtual.local:iSCSI01
        Lun 0 Path=/dev/sdc,Type=fileio,IOMode=wb
        Alias iSCSI01
        MaxConnections 4
        InitialR2T No
        ImmediateData Yes
        MaxRecvDataSegmentLength 262144
        MaxXmitDataSegmentLength 262144

# nano initiators.allow

iqn.2010-12.iscsi.virtual.local:iSCSI01 192.168.0.0/24, 10.0.0.0/24

twitterlinkedin