1. 程式人生 > >在rhel7中使用lsscsi --scsi_id 命令返回所有scsi裝置的scsi identifier

在rhel7中使用lsscsi --scsi_id 命令返回所有scsi裝置的scsi identifier

  • RHEL 7: The lsscsi --scsi_id -g utility from the lssci package can be used to return the scsi identifier associated with all scsi disks within the system (but only scsi disk, not all devices).
[[email protected] etc]# lsscsi --scsi_id
[0:2:0:0]    disk    AVAGO    MR-SAS3316       4.74  /dev/sda   36f80f41fe9c3f0002305604d0f7eea16
[0:2:1:0]    disk    AVAGO    MR-SAS3316       4.74  /dev/sdb   36f80f41fe9c3f000230560520fce45e6
[
[email protected]
etc]# lsscsi --scsi_id -g [0:2:0:0] disk AVAGO MR-SAS3316 4.74 /dev/sda 36f80f41fe9c3f0002305604d0f7eea16 /dev/sg0 [0:2:1:0] disk AVAGO MR-SAS3316 4.74 /dev/sdb 36f80f41fe9c3f000230560520fce45e6 /dev/sg1 [[email protected] etc]#

參考自:

https://access.redhat.com/solutions/319453


How are SCSI ID generated ?