- RHEL 7: The
lsscsi --scsi_id -gutility 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 ?
本文介绍了如何在RHEL7系统中利用lsscsi工具,特别是通过--scsi_id和--scsi_id-g选项,来查询系统内所有SCSI磁盘的标识符,包括其对应的/dev/sg设备路径。
2859

被折叠的 条评论
为什么被折叠?



