Red Hat 的 luxadm disp 等效项?

Red Hat 的 luxadm disp 等效项?

是否有相当于:

luxadm disp *disk*

对于红帽?我需要检查某个磁盘的 SAN 的所有设备地址是否都在线。

答案1

命令

systool -b scsi -v

Device = "1:0:0:2"
Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.1/host1/rport-1:0-0/target1:0:0/1:0:0:2"
delete              = <store method only>
device_blocked      = "0"
dh_state            = "detached"
iocounterbits       = "32"
iodone_cnt          = "0x6b8e2e"
ioerr_cnt           = "0x0"
iorequest_cnt       = "0x6b8e2e"
model               = "OPEN-V          "
queue_depth         = "32"
queue_type          = "none"
rescan              = <store method only>
rev                 = "6008"
scsi_level          = "4"
state               = "running"
timeout             = "60"
type                = "0"
uevent              = <store method only>
vendor              = "HP      "

正是我需要的。

答案2

lsscsi,请参阅:http://linux.die.net/man/8/lsscsi,可能就是您正在寻找的。

相关内容