====== ISCSI ====== ===== Descripción ===== ISCSI (Internet SCSI) es un mecanismo para compartir dispositivos pero a nivel de hardware. En otras palabras, se monta un disco por la red pero como si fuera SCSI. ===== Prerequistos =====  Kernel 2.6 preferiblemente ===== Configurando Servidor (IET - ISCSI EnterpriseTarget) ===== 1. Descargue el paquete, descomprima, compile e instale iscsitarget-0.4.15.tar.gz\\ \\ 2. Edite el archivo de configuracion /etc/ietd.conf\\ He aqui el gran problema .. realmente . no mucho .. se anexa un ejemplo, en el cual se comparte una particion y no se usa contraseña.\\ \\ 3. Confirme que levante al inicio iscsi-target\\ \\ \\ %%**%% Si quiere configurar con FreeNAS lo mejor .. http:%%//%%doc.freenas.org/index.php/ISCSI ===== Configurando Cliente (Open SCSI) ===== ==== 1. Instale el paquete ==== > yum install iscsi-initiator-utils\\ > apt-get install open-iscsi ==== 2.  Localice el servidor ==== > iscsiadm -m discovery -t sendtargets -p 192.168.8.212    ( puede usar tambien 192.168.8.212:3260)\\ > /etc/init.d/iscsi restart ==== 3. Verifique que esta localizado ==== > fdisk -l\\ > tail -f /var/log/messages\\ \\ Debe presentarse como un disco comun y corriente. Se puede particionar, formatear y todo. ==== 4. Dejelo listo en fstab y montelo ==== > /dev/sdb1 /mnt/iscsi ext3 _netdev 0 0\\ > mount -a\\ \\ Aunque como es dinamico es chevere usar LABEL=.. ==== 5. OJO con que iscsi .. suba al arranque ==== Mire dmesg ===== Problemas ===== ==== 1. Si el instale_mrtg.sh no le funciona ==== - ===== Referencias ===== - Servidor   http:%%//%%iscsitarget.sourceforge.net/  --\\ - Cliente   http:%%//%%www.open-iscsi.org/ --\\ - http:%%//%%www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html --\\ - http:%%//%%fedoranews.org/mediawiki/index.php/Going_Enterprise_-_setup_your_FC4_iSCSI_target_in_5_minutes --\\ -   FIN ============================================================== ==============================================================# Example iscsi target configuration ## Everything until the first target definition belongs# to the global configuration.# Right now this is only the user configuration used# during discovery sessions. "IncomingUser" specifies credentials the# initiator has to provide - several of these are supported. If mutual# CHAP shall be employed, "OutgoingUser" specifies the user/pass# combination the target will provide - only one is supported.# Leave them alone (keep them commented out) if you don't want to use# authentication for discovery sessions.  #iSNSServer 192.168.1.16#iSNSAccessControl No  #IncomingUser joe secret #OutgoingUser jack 12charsecret  # Targets definitions start with "Target" and the target name.# The target name must be a globally unique name, the iSCSI# standard defines the "iSCSI Qualified Name" as follows:# # iqn.yyyy-mm.[:identifier]# # "yyyy-mm" is the date at which the domain is valid and the identifier# is freely selectable. For further details please check the iSCSI spec.  Target iqn.2008-01.com.colombiamovil:dk1        # Users, who can access this target. The same rules as for discovery        # users apply here.        # Leave them alone if you don't want to use authentication.        #IncomingUser joe secret        #OutgoingUser jim 12charpasswd        # Logical Unit definition        # You must define one logical unit at least.        # Block devices, regular files, LVM, and RAID can be offered        # to the initiators as a block device.        #Lun 0 Path=/dev/sdc,Type=fileio         Lun 0 Path=/dev/sda3,Type=fileio        # Alias name for this target        # Alias Test        # various iSCSI parameters        # (not all are used right now, see also iSCSI spec for details)        # MaxConnections                1        InitialR2T              Yes        ImmediateData           No        MaxRecvDataSegmentLength 8192        MaxXmitDataSegmentLength 8192        MaxBurstLength          262144        FirstBurstLength        65536        DefaultTime2Wait        2        DefaultTime2Retain      20        MaxOutstandingR2T       8        DataPDUInOrder          Yes        DataSequenceInOrder     Yes        ErrorRecoveryLevel      0        HeaderDigest            CRC32C,None        DataDigest              CRC32C,None        # various target parameters        Wthreads                8 \\ \\ ============================================================== ============================================================== 27-Diciembre-2007J.E.Gomez v1.0 Primera version ---- __**Advertencia**__ Este documento es privado y es de uso exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal. ----