From: sergey@pl.energy.gov.ua To: Community@altlinux.ru Subject: [Comm] Настройка iSCSI (target + initiator) Date: Wed, 20 Aug 2003 10:24:24 +0300 Message-ID: <200308201024.24275.> (raw) Добрый день всем! Обращаюсь за помощью к тем у кого сабж работает в продакшн (буду также очень признателен всем, кто окажет посильную помощь). А кроме того хотелось-бы получить отзывы о работе сего чуда.... Предисловие.... Возникла потребность в создании распределенного RAID-а. Сначала я смотрел в сторону NBD/eNBD, поскольку там нет привязки к конкретному типу устройств (можно даже файлы отдавать через сетку), но после испытаний обнаружилось, что NBD сильно грузит процессор (на 1 сессии перекачки файла загрузка доходит до 37%), что меня сильно опечалило. Теперь вот пытаюсь поднять iSCSI (unh_iscsi-1.3-19b, kernel-2.4.20(21)) Вобщем нужна помощь в получении рабочей связки target + initiator на разных хостах. На сегодняшний день мне удалось получить доступ к 1 HDD из 3 в наличии.... При попытке подключения ко 2-му на target-машине в лог пишется: ======================================================== Aug 19 18:28:09 appsrv kernel: target_negotiate.c:check_flags:158: ***ERROR*** Initiator name not given in initial login Aug 19 18:28:09 appsrv kernel: target_negotiate.c:target_security_negotiate:561: ***ERROR*** check login failed Aug 19 18:28:09 appsrv kernel: iscsi_target.c:handle_login:1486: ***ERROR*** Parameter negotiation failed Aug 19 18:28:09 appsrv kernel: iscsi_target.c:iscsi_rx_thread:691: ***ERROR*** Trouble in handle_login =============================================================== хотя все имена прописаны и 1 из дисков подключается..... Заранее всем сенькс!!! Мои конфиги: =============== TARGET ====================================== #!/bin/sh export PATH=$PATH:/opt/unh/iscsi/bin HBA=0 # remove previous versions /sbin/rmmod unh_iscsi_target /sbin/rmmod unh_scsi_target # load new ones here=`pwd` /sbin/insmod /opt/unh/iscsi/modules/`uname -r`/unh_scsi_target.o /sbin/insmod /opt/unh/iscsi/modules/`uname -r`/unh_iscsi_target.o cd $here ############## Configure Target ############### iscsi_manage target set TargetPortalGroupTag=1 host=$HBA iscsi_manage target set HeaderDigest=CRC32C,None host=$HBA iscsi_manage target set DataDigest=CRC32C,None host=$HBA iscsi_manage target set MaxConnections=256 host=$HBA iscsi_manage target set MaxOutstandingR2T=1 host=$HBA iscsi_manage target set InitialR2T=No host=$HBA iscsi_manage target set DataPDUInOrder=No host=$HBA iscsi_manage target set DataSequenceInOrder=No host=$HBA ############## Error Recovery ################# iscsi_manage target set ErrorRecoveryLevel=1 host=$HBA iscsi_manage target force r2tp=2 host=$HBA iscsi_manage target snack d=y host=$HBA iscsi_manage target snack s=y host=$HBA iscsi_manage target snack h=1 host=$HBA =============== END CONFIG TARGET ================== ================== INITIATOR ================================= #!/bin/sh export PATH=$PATH:/opt/unh/iscsi/bin IP=XXX.XXX.XXX INITIATOR_NAME=iqn.2002-10.edu.unh.iol.iscsi.draft20-initiator TARGET_NAME=iqn.2002-10.edu.unh.iol.iscsi.draft20-target: rmmod unh_iscsi_initiator insmod /opt/unh/iscsi/modules/`uname -r`/unh_iscsi_initiator.o export HBA="`/bin/basename /proc/scsi/iscsi_initiator/* 2>/dev/null`" echo ============================================================ iscsi_manage init restore host=$HBA iscsi_manage init force host=$HBA iscsi_manage init set TargetName=$TARGET_NAME"0" host=$HBA iscsi_manage init set InitiatorName=$INITIATOR_NAME host=$HBA iscsi_manage init set ErrorRecoveryLevel=1 host=$HBA iscsi_manage init set InitiatorAlias=UNH-Draft20-Initiator host=$HBA iscsi_manage init set ImmediateData=Yes host=$HBA iscsi_manage init set MaxConnections=256 host=$HBA iscsi_manage init set SessionType=Normal host=$HBA iscsi_manage init setp SendTargets=All host=$HBA iscsi_config up ip=$IP port=3260 target=0 host=$HBA lun=0 echo ============================================================ echo sleep..... sleep 2 echo ============================================================ iscsi_manage init restore host=$HBA iscsi_manage init force host=$HBA iscsi_manage init set TargetName=$TARGET_NAME"1" host=$HBA iscsi_manage init set InitiatorName=$INITIATOR_NAME host=$HBA iscsi_manage init set ErrorRecoveryLevel=1 host=$HBA iscsi_manage init set InitiatorAlias=UNH-Draft20-Initiator host=$HBA iscsi_manage init set ImmediateData=Yes host=$HBA iscsi_manage init set SessionType=Normal host=$HBA iscsi_manage init setp SendTargets=All host=$HBA iscsi_manage init set MaxConnections=256 host=$HBA iscsi_config up ip=$IP port=3260 target=1 host=$HBA ================== END CONFIG INITIATOR ==========================
reply other threads:[~2003-08-20 7:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200308201024.24275. \ --to=sergey@pl.energy.gov.ua \ --cc=Community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git