Посмотри состояние iscsi после логина (iscsiadm -m session -P 3), если
там есть что-то, то в районе |grep disk оно будет примерно такого вида:
Target: iqn.*****
Current Portal: ****
Persistent Portal: ****
**********
Interface:
**********
Iface Name: default
Iface Transport: tcp
Iface Initiatorname: iqn.****
Iface IPaddress: *****
Iface HWaddress: <empty>
Iface Netdev: <empty>
SID: 1
iSCSI Connection State: LOGGED IN
iSCSI Session State: LOGGED_IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 8192
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: Yes
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 7 State: running
scsi7 Channel 00 Id 0 Lun: 0
Attached scsi disk sdj State: running
On 01.08.2011 13:07, Dmitriy Sirant wrote:
Добрый день
Очень странная ситуация. Есть 2 сервера Debian Stable. На том который начинался
как тестинг а потом перешел в stable все работает, а на втором,
свежеустановленом 6.0.2 с той-же конфигурацией - не работает.
Стоит udev, open-iscsi. Подключаем iscsi (делаем дискавери, ставим
автоматическое подключение) - в логах никаких ошибок, но нету /dev/sd*, нет
/dev/disk/by-*
Останавливаю open-iscsi, делаю руками:
root@xen2:/home/lex# iscsid -d 3
root@xen2:/home/lex# tail /var/log/syslog -f
Aug 1 11:56:48 xen2 iscsid: pid 18600 caught signal -15
Aug 1 11:57:44 xen2 kernel: [128190.446354] Loading iSCSI transport class
v2.0-870.
Aug 1 11:57:44 xen2 kernel: [128190.460831] iscsi: registered transport (tcp)
Aug 1 11:57:56 xen2 kernel: [128202.016685] iscsi: registered transport (iser)
Aug 1 11:58:03 xen2 iscsid: iSCSI logger with pid=18638 started!
Aug 1 11:58:04 xen2 iscsid: transport class version 2.0-870. iscsid version
2.0-871
Aug 1 11:58:04 xen2 iscsid: iSCSI daemon with pid=18639 started!
Aug 1 11:58:04 xen2 iscsid: InitiatorName=iqn.1993-08.org.debian:xen2
Aug 1 11:58:04 xen2 iscsid: InitiatorAlias=xen2
Aug 1 11:58:04 xen2 iscsid: Max file limits 1024 1024
root@xen2:/home/lex# iscsiadm --mode node --targetname
iqn.1986-03.com.sun:sdc2009 --portal 192.168.132.36:3260 --login
Logging in to [iface: default, target: iqn.1986-03.com.sun:sdc2009, portal:
192.168.132.36,3260]
Login to [iface: default, target: iqn.1986-03.com.sun:sdc2009, portal:
192.168.132.36,3260]: successful
root@xen2:/home/lex# tail /var/log/syslog -f
Aug 1 11:59:09 xen2 kernel: [128274.871564] scsi49 : iSCSI Initiator over
TCP/IP
Aug 1 11:59:09 xen2 iscsid: Allocted session 0xc90c50
Aug 1 11:59:09 xen2 iscsid: connecting to 192.168.132.36:3260
Aug 1 11:59:09 xen2 iscsid: connected local port 38131 to 192.168.132.36:3260
Aug 1 11:59:09 xen2 iscsid: expecting event 11, got 106, handling...
Aug 1 11:59:09 xen2 iscsid: login response status 0000
Aug 1 11:59:10 xen2 iscsid: login response status 0000
Aug 1 11:59:10 xen2 iscsid: deleting a scheduled/waiting thread!
Aug 1 11:59:10 xen2 iscsid: connection1:0 is operational now
Aug 1 11:59:10 xen2 iscsid: Releasing session 0xc90c50
root@xen2:/home/lex# ls /dev/disk/by-path/
pci-0000:00:1f.2-scsi-0:0:0:0 pci-0000:00:1f.2-scsi-0:0:0:0-part2
pci-0000:00:1f.2-scsi-1:0:0:0 pci-0000:00:1f.2-scsi-1:0:0:0-part2
pci-0000:00:1f.2-scsi-0:0:0:0-part1 pci-0000:00:1f.2-scsi-0:0:0:0-part3
pci-0000:00:1f.2-scsi-1:0:0:0-part1 pci-0000:00:1f.2-scsi-1:0:0:0-part3
Что это может быть ? Как узнать проблема в iscsi или udev ? Версии на обоих
серверах одинаковые.
--
To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e39b64d.8020...@gmail.com