我有一台运行 Kubuntu 20.04 的机器,在 HP Z420 上,有 4 个硬盘(在软件 RAID 配置中)。使用 5.4.0 内核时运行良好,但升级到 5.8.0-43-generic 后,它无法启动,只能看到 4 个硬盘中的 2 个 - 它再也看不到的硬盘连接到英特尔公司 C602 芯片组 4 端口 SATA 存储控制单元(8086:1d6b,isci 内核模块)。当我重新启动到 5.4.0-65-generic 时,一切恢复正常(经过 2 小时的 RAID 重新同步和 fsck :( )。以下是 5.4.0 的情况(现在还没有勇气再次尝试启动到 5.8):
$ sudo lsscsi -v
[2:0:0:0] disk ATA WDC WD1001FALS-0 0K05 /dev/sda
dir: /sys/bus/scsi/devices/2:0:0:0 [/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/host2/port-2:0/end_device-2:0/target2:0:0/2:0:0:0]
[2:0:1:0] disk ATA WDC WD1001FALS-0 0K05 /dev/sdb
dir: /sys/bus/scsi/devices/2:0:1:0 [/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/host2/port-2:1/end_device-2:1/target2:0:1/2:0:1:0]
[3:0:0:0] disk ATA Hitachi HDS72101 A41A /dev/sdc
dir: /sys/bus/scsi/devices/3:0:0:0 [/sys/devices/pci0000:00/0000:00:1f.2/ata3/host3/target3:0:0/3:0:0:0]
[4:0:0:0] disk ATA Hitachi HDS72101 A41A /dev/sdd
dir: /sys/bus/scsi/devices/4:0:0:0 [/sys/devices/pci0000:00/0000:00:1f.2/ata4/host4/target4:0:0/4:0:0:0]
[5:0:0:0] cd/dvd hp CDDVDW SH-216ALN HA5A /dev/sr0
dir: /sys/bus/scsi/devices/5:0:0:0 [/sys/devices/pci0000:00/0000:00:1f.2/ata5/host5/target5:0:0/5:0:0:0]
list_ndevices: scandir: /sys/class/nvme/: No such file or directory
NVMe module may not be loaded
$ sudo lspci -v -s 0000:02:00.0 -nn
02:00.0 Serial Attached SCSI controller [0107]: Intel Corporation C602 chipset 4-Port SATA Storage Control Unit [8086:1d6b] (rev 05)
Subsystem: Hewlett-Packard Company C602 chipset 4-Port SATA Storage Control Unit [103c:1589]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at da87c000 (64-bit, prefetchable) [size=16K]
Memory at da400000 (64-bit, prefetchable) [size=4M]
I/O ports at d000 [size=256]
Capabilities: [98] Power Management version 3
Capabilities: [c4] Express Endpoint, MSI 00
Capabilities: [a0] MSI-X: Enable+ Count=2 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [138] Alternative Routing-ID Interpretation (ARI)
Capabilities: [180] Transaction Processing Hints
Capabilities: [140] Single Root I/O Virtualization (SR-IOV)
Kernel driver in use: isci
Kernel modules: isci
$ sudo lspci -v -s 0000:00:1f.2 -nn
00:1f.2 RAID bus controller [0104]: Intel Corporation C600/X79 series chipset SATA RAID Controller [8086:2826] (rev 05)
Subsystem: Hewlett-Packard Company C600/X79 series chipset SATA RAID Controller [103c:1589]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 41
I/O ports at e0f0 [size=8]
I/O ports at e0e0 [size=4]
I/O ports at e0d0 [size=8]
I/O ports at e0c0 [size=4]
I/O ports at e020 [size=32]
Memory at df348000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Capabilities: [b0] PCI Advanced Features
Kernel driver in use: ahci
Kernel modules: ahci
在内核 5.8 中,有日立驱动器,但没有 WDC 驱动器......
我该如何让新内核正常工作?我更新了 grub 配置,默认使用旧的 5.4.0 内核,但这似乎不是一个好的长期方法...