在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).
[root@localhost 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
[root@localhost 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 
[root@localhost etc]#

参考自:

https://access.redhat.com/solutions/319453
How are SCSI ID generated ?

猜你喜欢

转载自blog.csdn.net/msdnchina/article/details/83384246