- 论坛徽章:
- 0
|
本帖最后由 mopyman 于 2012-09-10 16:02 编辑
HBA卡为QLogic QLE2462,有两个光纤口,分别连接到阵列的两个控制器,另一台服务器也是同样的配置,也是相同的HBA卡用两条光纤跳线连接到同一个磁盘阵列。但同一时刻只会有一个服务器mount阵列上的lun,另一台只作为后备。
现在另一台服务器已经mount了磁盘阵列,现在安装另一台服务器里遇到问题,无法为两条路径生成设备名sdx
dmesg输出
Sep 10 15:08:04 vmsvr02 kernel: [ 10.640863] qla2xxx [0000:05:00.0]-500c:1: LIP reset occurred (f7f7).
Sep 10 15:08:04 vmsvr02 kernel: [ 10.797478] qla2xxx [0000:05:00.0]-5009:1: LIP occurred (f7f7).
Sep 10 15:08:04 vmsvr02 kernel: [ 10.801290] qla2xxx [0000:05:00.0]-500a:1: LOOP UP detected (4 Gbps).
Sep 10 15:08:04 vmsvr02 kernel: [ 11.114591] qla2xxx [0000:05:00.1]-500c:4: LIP reset occurred (f7f7).
Sep 10 15:08:04 vmsvr02 kernel: [ 11.202684] qla2xxx [0000:05:00.1]-5009:4: LIP occurred (f7f7).
Sep 10 15:08:04 vmsvr02 kernel: [ 11.206610] qla2xxx [0000:05:00.1]-500a:4: LOOP UP detected (4 Gbps).
Sep 10 15:08:04 vmsvr02 kernel: [ 11.302897] scsi 1:0:0:0: Direct-Access LSI INF-01-00 0760 PQ: 1 ANSI: 5
Sep 10 15:08:04 vmsvr02 kernel: [ 11.308537] scsi 1:0:0:0: rdac: LUN 0 (RDAC) (unowned)
Sep 10 15:08:04 vmsvr02 kernel: [ 11.308680] scsi 1:0:0:0: Attached scsi generic sg2 type 0
Sep 10 15:08:04 vmsvr02 kernel: [ 11.706820] scsi 4:0:0:0: Direct-Access LSI INF-01-00 0760 PQ: 1 ANSI: 5
Sep 10 15:08:04 vmsvr02 kernel: [ 11.712517] scsi 4:0:0:0: rdac: LUN 0 (RDAC) (unowned)
Sep 10 15:08:04 vmsvr02 kernel: [ 11.712645] scsi 4:0:0:0: Attached scsi generic sg3 type 0
已经检测到了链路,也检测到了LUN 0,但就是无法生成设备名sdx,从而也无法配置多路径
#lsscsi
[0:2:0:0] disk LSI MegaRAID 8708EM2 1.20 /dev/sda
[1:0:0:0] disk LSI INF-01-00 0760 -
[3:0:0:0] cd/dvd ATAPI DVD D DH16D4P XP51 /dev/sr0
[4:0:0:0] disk LSI INF-01-00 0760 -
已经正常运行的服务器dmesg输出则可以看出为lun生成了sdx设备名sdb和sdc:
[ 9.359011] scsi 1:0:0:0: Direct-Access LSI INF-01-00 0760 PQ: 0 ANSI: 5
[ 9.364567] scsi 1:0:0:0: rdac: LUN 0 (RDAC) (unowned)
[ 9.365057] sd 1:0:0:0: [sdb] 2924441600 512-byte logical blocks: (1.49 TB/1.36 TiB)
[ 9.365452] sd 1:0:0:0: [sdb] Write Protect is off
[ 9.365455] sd 1:0:0:0: [sdb] Mode Sense: 77 00 10 08
[ 9.365609] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9.366092] scsi 3:0:0:0: CD-ROM ATAPI DVD D DH16D4P XP51 PQ: 0 ANSI: 5
[ 9.366527] ldm_validate_partition_table(): Disk read failed.
[ 9.366544] Dev sdb: unable to read RDB block 0
[ 9.366565] sdb: unable to read partition table
[ 9.367414] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 9.372663] sd 0:2:0:0: Attached scsi generic sg0 type 0
[ 9.372730] sd 1:0:0:0: Attached scsi generic sg1 type 0
....
[ 9.731014] scsi 4:0:0:0: Direct-Access LSI INF-01-00 0760 PQ: 0 ANSI: 5
[ 9.736590] scsi 4:0:0:0: rdac: LUN 0 (RDAC) (owned)
[ 9.736809] sd 4:0:0:0: Attached scsi generic sg3 type 0
[ 9.737096] sd 4:0:0:0: [sdc] 2924441600 512-byte logical blocks: (1.49 TB/1.36 TiB)
[ 9.737453] sd 4:0:0:0: [sdc] Write Protect is off
[ 9.737455] sd 4:0:0:0: [sdc] Mode Sense: 77 00 10 08
[ 9.737603] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9.749789] sdc: sdc1
[ 9.750670] sd 4:0:0:0: [sdc] Attached SCSI disk
不知道这是否与阵列的设置或被挂载有关,以前两个都可以同时连上阵列的,当然不能同时挂载同一个lun,这样ext4文件系统会混乱
两者有一个显著的不同,就是dmesg输出中无法识别设备的输出了PQ:1,而正确识别的则输出了PQ:0,不知道这个输出是什么含义?
期待这个问题的解答,谢谢。 |
|