Добрый день.
Столкнулся с такой проблемой, при подключении дисковой полки по интерфейсу iSCSI, Linux создает только /dev/sg9, а блочное устройство sd не создается. Подскажите, в чем может ошибка и как ее решить?Linux s2100r02 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Apr 23 08:53:01 s2100r02 kernel: Vendor: kraftway Model: S12E-S1132-4A Rev: 373J
Apr 23 08:53:01 s2100r02 kernel: Type: Enclosure ANSI SCSI revision: 04
Apr 23 08:53:01 s2100r02 kernel: scsi 13:0:0:0: Attached scsi generic sg9 type 13
Apr 23 07:53:01 s2100r02 iscsid: connection6:0 is operational now
[root@s2100r02 /]# iscsiadm -m session -P3
iSCSI Transport Class version 2.0-871
version 2.0-871
Target: iqn.2002-10.com.infortrend:raid.sn7908589.001
Current Portal: 192.168.200.10:3260,1
Persistent Portal: 192.168.200.10:3260,1
**********
Interface:
**********
Iface Name: default
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:98e98261cfe
Iface IPaddress: 192.168.200.1
Iface HWaddress: <empty>
Iface Netdev: <empty>
SID: 7
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: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 14 State: running
scsi14 Channel 00 Id 0 Lun: 0
>[оверквотинг удален]
>
> ************************
>
> Attached SCSI devices:
>
> ************************
>
> Host Number: 14 State: running
>
> scsi14 Channel 00 Id 0 Lun: 0lsblk
>[оверквотинг удален]
>> ************************
>>
>> Attached SCSI devices:
>>
>> ************************
>>
>> Host Number: 14 State: running
>>
>> scsi14 Channel 00 Id 0 Lun: 0
> lsblklsblk - нет команды
есть следующее
[root@s2100r02 iscsi]# fdisk -l
Disk /dev/sda: 298.9 GB, 298999349248 bytes
255 heads, 63 sectors/track, 36351 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1057 8385930 82 Linux swap / Solaris
/dev/sda3 1058 35306 275105092+ 83 Linux
/dev/sda4 35307 36351 8393962+ 5 Extended
/dev/sda5 35307 35828 4192933+ 83 Linux
/dev/sda6 35829 36350 4192933+ 83 LinuxDisk /dev/sdb: 2836.8 GB, 2836888289280 bytes
255 heads, 63 sectors/track, 344898 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdd doesn't contain a valid partition table
[root@s2100r02 iscsi]# sg_map
/dev/sg0
/dev/sg1
/dev/sg2
/dev/sg3 /dev/nst0
/dev/sg4
/dev/sg5 /dev/sda
/dev/sg6 /dev/sdb
/dev/sg7 /dev/sdc
/dev/sg8 /dev/sdd
/dev/sg9
Нашел загвоздку, слишком большой размер раздела пытался примапить 5Тб.
Для теста отдал кусок в 100Гб и все получилось.