如何在 Linux 中枚举 SAS 地址/WWN?

kdt*_*kdt 3 linux sas centos6

我在服务器中有一些 SAS 设备,我想找出它们的 SAS 地址是什么。我怎样才能在 Linux 中做到这一点?我正在使用 CentOS 6。

pol*_*ial 5

它们应该在 /dev/disk/by-id 中可用,在您的机器上它应该是这样的:

[root@ae1 ~]# ls -l /dev/disk/by-id/

total 0

lrwxrwxrwx 1 root root  9 Feb 11  2011 scsi-3600050e0d1806400285a0000c0590000 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 11  2011 scsi-3600050e0d1806400285a0000c0590000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 11  2011 scsi-3600050e0d1806400285a0000c0590000-part2 -> ../../sda2
Run Code Online (Sandbox Code Playgroud)