LUN 大于主机适配器允许的大小

LUN 大于主机适配器允许的大小

我们有HP DL-360-g9带有 Raid 控制器的服务器HP240,目前我们总共安装了 4 个磁盘,其中 2 个(镜像)用于操作系统,LVM 组中有 2 个(1TB)单独磁盘。现在我们的存储空间不足,决定添加更多磁盘,因此我们在服务器中添加了 2x1TB 磁盘,但它们现在显示在 Linux CentOS7 中fdisk -l。我们做了以下

echo "- - -" > /sys/class/scsi_host/host0/scan

在 /var/log/messages 中看到

[16507042.745884] scsi 0:0:0:0: lun4194304 has a LUN larger than allowed by the host adapter
[16507042.745892] scsi 0:0:0:0: lun4194560 has a LUN larger than allowed by the host adapter
[16507042.745895] scsi 0:0:0:0: lun4194816 has a LUN larger than allowed by the host adapter

这是scsi

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: H240ar           Rev: 4.02
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 00
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.02
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 01
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.02
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 02
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.02
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 00 Lun: 4194240
  Vendor: HP       Model: H240ar           Rev: 4.02
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 00 Lun: 4194496
  Vendor: HP       Model: H240ar           Rev: 4.02
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 00 Lun: 4194752
  Vendor: HP       Model: H240ar           Rev: 4.02
  Type:   RAID                             ANSI  SCSI revision: 05

在 /var/log/messages 中显示已检测到磁盘

hpsa 0000:03:00.0: scsi 0:0:5:0: masked Direct-Access     ATA      Samsung SSD 850  PHYS DRV SSDSmartPathCap- En- Exp=0
hpsa 0000:03:00.0: scsi 0:0:6:0: masked Direct-Access     ATA      Samsung SSD 850  PHYS DRV SSDSmartPathCap- En- Exp=0

为什么我的磁盘显示非常大的LUN数字,我应该在 modprobe.conf 中设置max_lun=xxxxxx以增加其数字?

或者我应该告诉 RAID 控制器处理磁盘而不是操作系统?

相关内容