如何在lsblk中获取硬件RAID阵列的路径?

如何在lsblk中获取硬件RAID阵列的路径?

我通过下一个命令检测硬件阵列列表:

lspci -vmm | sed -E -n '/RAID bus|SCSI controller/,/^ *$/p' | tr -d '\t'

例子:

Class:RAID bus controller
Vendor:Broadcom / LSI
Device:MegaRAID SAS 2108 [Liberator]
SVendor:ASUSTeK Computer Inc.
SDevice:MegaRAID SAS 2108 [Liberator]
Rev:05
NUMANode:0

Class:Serial Attached SCSI controller
Vendor:Intel Corporation
Device:C602 chipset 4-Port SATA Storage Control Unit
SVendor:ASUSTeK Computer Inc.
SDevice:C602 chipset 4-Port SATA Storage Control Unit
Rev:06
NUMANode:0

我怎样才能找到上面每个路径的路径是什么lsblk

相关内容